Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Trap the jcl error message or maxcc in rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Trap the jcl error message or maxcc in rexx
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: 8735
Location: Welsh Wales

PostPosted: Fri May 18, 2018 2:34 pm    Post subject:
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 Member


Joined: 14 Mar 2007
Posts: 10535
Location: italy

PostPosted: Fri May 18, 2018 3:16 pm    Post subject: Reply to: REXX
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

Senior Member


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

PostPosted: Fri May 18, 2018 9:38 pm    Post subject: Reply to: Trap the jcl error message or maxcc in rexx
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: 8405
Location: Dubuque, Iowa, USA

PostPosted: Fri May 18, 2018 10:26 pm    Post subject: Reply to: Trap the jcl error message or maxcc in rexx
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Will this code extract 1 byte from fi... pkmurali CLIST & REXX 8 Sat Nov 10, 2018 11:13 pm
No new posts Error reading file in REXX module ashek15 CLIST & REXX 3 Wed Oct 24, 2018 4:50 am
No new posts Break Auto update screen without message packerm TSO/ISPF 2 Wed Oct 03, 2018 2:44 pm
No new posts PL/I read error for HFS files Joe Kirsch PL/I & Assembler 6 Fri Sep 28, 2018 9:13 pm
No new posts Error in IEBGENER supriyo kumar JCL & VSAM 1 Thu Sep 27, 2018 10:22 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us