IBM REXX Question:

How to code rexx in jcl to read in a lpar
cpu usage file and select 1. date, time 2. some system names 3. cpu usage for each system. The input file has hourly reporting. The output file (CSV)is for excel use. Run in batch mode. Output in FB?