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: 8714
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: 10516
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: 2114
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: 8391
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 Encoding using rexx pkmurali CLIST & REXX 2 Sat Sep 08, 2018 1:05 am
No new posts Error while trying to open an AIX in ... amitc23 CICS 4 Tue Sep 04, 2018 12:15 pm
No new posts SOAP Message Handler Application Inte... John Poulakos CICS 1 Fri Aug 24, 2018 1:05 am
No new posts Pre-Compiler Bug with DSNH520I message? John Poulakos DB2 1 Thu Aug 09, 2018 9:00 pm
No new posts Can we call QMF proc from REXX ? batu544 CLIST & REXX 6 Fri Aug 03, 2018 11:03 am

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