View previous topic :: View next topic
|
Author |
Message |
trushant.w
New User
Joined: 22 Sep 2013 Posts: 81 Location: pune india
|
|
|
|
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 |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
Use SYSDSN to check if the member exists. |
|
Back to top |
|
|
Paul Voyner
New User
Joined: 26 Nov 2012 Posts: 52 Location: UK
|
|
|
|
Code: |
IF SYSDSN("'your.dsn(mem)'") <> 'OK' THEN DO .... |
|
|
Back to top |
|
|
trushant.w
New User
Joined: 22 Sep 2013 Posts: 81 Location: pune india
|
|
|
|
thanks for your inputs David and Paul
It worked for me. |
|
Back to top |
|
|
|