Joined: 26 Apr 2004 Posts: 3314 Location: Charlotte,NC USA
I don't know of any way to directly access the spool, using REXX or otherwise. There are two options that I'm aware of:
1. Most user's have the authority to use the TSO STATUS and OUTPUT commands to check the status of their job and to retrieve that job's JES output once it's in the OUTPUT spool.
2. Or, they use one of the spool management products that are usually available: IBM's SDSF, CA's SYSVIEW, or Triangle System's IOF. I believe all of these have a batch interface, and SDSF offers a REXX interface.
Joined: 03 Jul 2007 Posts: 1174 Location: Chennai - India
Thilak,
I had worked on a similar requirement before.
- Used SDSF in batch to extract the contents of the DD where CPU time is present (This job was submitted using REXX)
- Then Using Rexx we need to find the exact line where CPU time occurs and then fetch the data. You can use POS, Substring etc to get the exact CPU time.