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: 8794
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

Senior Moderator


Joined: 14 Mar 2007
Posts: 10714
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: 2214
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: 8569
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 Secondary index error while loading d... IMS DB/DC 2
No new posts Error 0C1 Reason Code 1 with branch i... PL/I & Assembler 3
No new posts Any examples of calling FTP from REXX? CLIST & REXX 1
No new posts SummeRx: a new framework for REXX z/OS CLIST & REXX 6
No new posts A command to change LRECL of an exist... JCL & VSAM 7
Search our Forums:

Back to Top