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: 179
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
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Default Message in Rexx cvnlynn CLIST & REXX 9 Wed Aug 02, 2017 12:38 am
No new posts Calling CLIST through job and REXX Sahasra K CLIST & REXX 19 Tue Aug 01, 2017 10:25 am


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