Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Take the job details from Spool and generate/send the report.

Status
Not open for further replies.

shuhaibk54

Technical User
Jun 12, 2012
18
IN
Hi All,and special Hi to REXXhead

I Have requirement to take all the submitted jobs details and send/create the report(Automation) using rexx code.Can any one please help me out to complete this task ..


Thanks,
Shuhaib
 
What do you mean by "automation"?

What are "all the submitted job details"?

You can use SDSF to retrieve things from the spool (job details?).

The more clearly you explain what you want to do, the more likely someone can offer a suggestion.
 
My actuall requierment is to perform .. we would be submitting some set of jobs to complete some task .as soon as its completes my plan to run my program to perform pick up all jobs details there in spool(today) infomation such as sumitted date,return code etc..Please help me know If i need to make it clear again ...


Thanks,
Shuhaib
 
You can do what you want by using SDSF in batch (assuming your system uses SDSF).

Implementation might be via REXX, but the info you need will be in the SDSF documentation. IIRC, there is a REXX interface to SDSF, but i've not used this.
 
Hi Shuhaibk,

This can be done using the REXX interface to SDSF. The manual can be found at the following link:

REXX INTERFACE REDBOOK

The outline of the method to be followed is as follows:

1. Use ISFCALLS to add the host command environment

2. Go to ST for the job status in the SDSF address using ISFEXEC to issue the command

3. System commands such as ST, DA, etc. will be executed via ISFEXEC

4. Filter commands suchas OWNER, PREFIX, etc. can be performed by setting SDSF variables (E.g. ISFPREFIX = "KMP*") followed by ADDRESS SDSF "ISFEXEC ST" to apply the filter

5. The columns displayed on ST such as Jobname, JOBID, etc. can be accessed via stems that are populated when ST is executed. E.g. JNAME.7 contains the name of the job on the sevent row of the JOBNAME column in the ST list

6. Line commands like P, ?, etc. can be performed via ISFACT using the Token stem

If I have confused you completely [bigsmile], have a look at the following SDSF manual which has an excellent chapter on "Using SDSF with REXX Programming" with loads of examples to perform routine SDSF tasks using REXX:

SDSF MANUAL

If you can specify your requirements in greater detail, I can steer you in the right direction.

Have fun!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top