Page 1 of 1

Return code of the JOB

PostPosted: Tue Mar 18, 2014 9:38 pm
by Ramsee
Hi All,
Warm greetings!!

I need your suggestions/help for the following requirement.

I have a File that contains List of JOBNAME's in it, need to find the latest return code of the JOB (listed in the inpput file) and write them into an output file.

Please guide me how to proceed furhter in REXX.

Re: Return code of the JOB

PostPosted: Tue Mar 18, 2014 9:42 pm
by BillyBoyo
There seem to be a lot of these tasks about. Is it a contest?

Re: Return code of the JOB

PostPosted: Tue Mar 18, 2014 10:41 pm
by steve-myers
The usual way to perform this task is to analyze type 30 records in SMF to obtain job return codes, unless there is a second data set containing job return codes that was not specified in the task definition. Unfortunately, Rexx cannot read SMF data, so it does not seem possible to perform this task using Rexx. There is another problem in the task definition: duplicate jobnames.

Re: Return code of the JOB

PostPosted: Wed Mar 19, 2014 12:08 am
by dick scherrer
Hello,

These jobs should be run by the scheduling software for the system.

The scheduling system "knows" these return codes. Suggest you speak with your scheduling people.

Unless this is not a "real" requirement but rather a competition or training exercise.

Re: Return code of the JOB

PostPosted: Wed Mar 19, 2014 12:35 pm
by Ramsee
Hi All,

I was able to extract the list of all the JOB's return code is other than MAXCC=0 in a FILE using the SAR Utility.
The issue is there may be some of the JOB's ended with MAXCC=0 in the second run, in this case i need not write the JOBNAME in the file.

Here i need a better way to filter the list of JOB's latest RC.

Please let me know a better idea to know the latest RC of the JOB.

Regards,
Ramsee

Re: Return code of the JOB

PostPosted: Wed Mar 19, 2014 7:18 pm
by dick scherrer
Hello,

Whether you continue with your current input or swich to SMF input or use something else, you will still need to determine which are multiple runs and which are a problem run that has been successfully rerun . . .

Re: Return code of the JOB

PostPosted: Wed Mar 19, 2014 9:33 pm
by Pedro
need to find the latest return code of the JOB (listed in the inpput file)

what does that mean? Is the return code included in the input file?

Re: Return code of the JOB

PostPosted: Thu Mar 20, 2014 1:52 am
by Pedro
There seem to be a lot of these tasks about. Is it a contest?

I have seen this occasionally, where there are swarms of the same question from different people. My wild guess is that a mangler learns that some other company is doing something, so they decide to do it too.