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

Handling Rexx Abend


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 199
Location: UK

PostPosted: Thu Jan 08, 2015 6:56 pm
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: 52
Location: UK

PostPosted: Fri Jan 09, 2015 12:45 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
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 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