Return code of the JOB



IBM's Command List programming language & Restructured Extended Executor

Return code of the JOB

Postby Ramsee » Tue Mar 18, 2014 9:38 pm

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.
Ramsee
 
Posts: 25
Joined: Wed Nov 20, 2013 6:08 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Return code of the JOB

Postby BillyBoyo » Tue Mar 18, 2014 9:42 pm

There seem to be a lot of these tasks about. Is it a contest?
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Return code of the JOB

Postby steve-myers » Tue Mar 18, 2014 10:41 pm

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Return code of the JOB

Postby dick scherrer » Wed Mar 19, 2014 12:08 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Return code of the JOB

Postby Ramsee » Wed Mar 19, 2014 12:35 pm

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
Ramsee
 
Posts: 25
Joined: Wed Nov 20, 2013 6:08 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Return code of the JOB

Postby dick scherrer » Wed Mar 19, 2014 7:18 pm

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 . . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Return code of the JOB

Postby Pedro » Wed Mar 19, 2014 9:33 pm

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?
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times

Re: Return code of the JOB

Postby Pedro » Thu Mar 20, 2014 1:52 am

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.
Pedro Vera
User avatar
Pedro
 
Posts: 686
Joined: Thu Jul 31, 2008 9:59 pm
Location: Silicon Valley
Has thanked: 0 time
Been thanked: 53 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post