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
 
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: 182
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

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