Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Handling Rexx Abend

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
trushant.w

New User


Joined: 22 Sep 2013
Posts: 81
Location: pune india

PostPosted: Thu Jan 08, 2015 6:42 pm    Post subject: Handling Rexx Abend
Reply with quote

I have allocate dataset and i am reading the member ARG1 in this REXX as below.

Code:
ALLOCATE DA('XXXX.YYYY.ZZZZ("ARG1")')
                                              F(INDD) SHR RESUE"


"EXECIO 0 DISKR INDD (OPEN"


"EXECIO 1 DISKR INDD (STEM LINE."


Now when the member ARG1 is not present in the pds i am getting
system Abend code 013,reason code 00000024.

My requirement is when this member ARG1 is not present in PDS program should not abend and it just bypass the program.


Please check and share your thoughts.
Back to top
View user's profile Send private message

David Robinson

Active User


Joined: 21 Dec 2011
Posts: 175
Location: UK

PostPosted: Thu Jan 08, 2015 6:56 pm    Post subject:
Reply with quote

Use SYSDSN to check if the member exists.
Back to top
View user's profile Send private message
Paul Voyner

New User


Joined: 26 Nov 2012
Posts: 51
Location: Switz

PostPosted: Fri Jan 09, 2015 12:45 pm    Post subject:
Reply with quote

Code:
IF SYSDSN("'your.dsn(mem)'") <> 'OK' THEN DO ....
Back to top
View user's profile Send private message
trushant.w

New User


Joined: 22 Sep 2013
Posts: 81
Location: pune india

PostPosted: Fri Jan 09, 2015 5:46 pm    Post subject:
Reply with quote

thanks for your inputs David and Paul icon_smile.gif

It worked for me.
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 IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us