View previous topic :: View next topic
|
Author |
Message |
ankita agarwal Warnings : 2 New User
Joined: 18 May 2018 Posts: 4 Location: bangalore
|
|
|
|
Hi
I want to trap the jcl error message or maxcc in rexx .Please help me on it |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Write some REXX code to do it then,
This is NOT a do my work for me forum, but a we will help you if you make some effort forum.
What have you searched for - I know for a fact that there was at one time the code to do this on this very forum. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
it seems pretty stupid to use REXX as the topic title in the rexx section |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2545 Location: Silicon Valley
|
|
|
|
SDSF provides a rexx interface that allows you to get job information. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
I want to trap the jcl error message or maxcc in rexx |
Terminology is critical in IT, where similar terms may mean very different things. And the term "maxcc" is used on a mainframe when dealing with IDCAMS -- AND ONLY IDCAMS. With JCL, you have step condition codes but those are not "maxcc" since they can come from many different programs other than IDCAMS. |
|
Back to top |
|
|
Ilavenil
New User
Joined: 16 May 2018 Posts: 4 Location: India
|
|
|
|
Just a suggestion. We can access ST panel through ISFEXEC. Using ISFBROWSE, we can traverse the job listing.
Code: |
RC=ISFCALLS("ON")
ADDRESS SDSF "ISFEXEC ST"
LRC=RC
IF LRC<>0 THEN EXIT 12
DO IX=1 TO JNAME.0
IF JNAME.IX = "BPV081RJ" THEN
DO
ADDRESS SDSF "ISFBROWSE ST TOKEN('"TOKEN.IX"')"
DO JX=1 TO ISFLINE.0
SAY ISFLINE.JX
END
END
END
RC=ISFCALLS("OFF")
EXIT |
While going through the listing, we can look for IEF142I messages and from the same we can parse the condition codes.
Hope it helps! |
|
Back to top |
|
|
|