IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Trap the jcl error message or maxcc in rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ankita agarwal
Warnings : 2

New User


Joined: 18 May 2018
Posts: 4
Location: bangalore

PostPosted: Fri May 18, 2018 2:08 pm
Reply with quote

Hi
I want to trap the jcl error message or maxcc in rexx .Please help me on it
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri May 18, 2018 2:34 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Fri May 18, 2018 3:16 pm
Reply with quote

it seems pretty stupid to use REXX as the topic title in the rexx section
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2545
Location: Silicon Valley

PostPosted: Fri May 18, 2018 9:38 pm
Reply with quote

SDSF provides a rexx interface that allows you to get job information.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri May 18, 2018 10:26 pm
Reply with quote

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
View user's profile Send private message
Ilavenil

New User


Joined: 16 May 2018
Posts: 4
Location: India

PostPosted: Thu May 24, 2018 5:09 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top