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 REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm


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