View previous topic :: View next topic
|
Author |
Message |
rehanaaigss
New User
Joined: 30 Jan 2008 Posts: 8 Location: chennai
|
|
|
|
Hi,
please let me know if anyone knows how to find an existence of a member in a PDS? How to code it in JCL? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I would recommend using REXX's SYSDSN function and set a return code appropriately.
O. |
|
Back to top |
|
|
rehanaaigss
New User
Joined: 30 Jan 2008 Posts: 8 Location: chennai
|
|
|
|
I have heard of using GETPDS in JCL to find out the existence of a member in a PDS. But not sure how to make use of this? Can anyone please help me in this? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Have you investigated the use of IDCAMS PRINT ?
You get RC12 if the member does bot exist |
|
Back to top |
|
|
rehanaaigss
New User
Joined: 30 Jan 2008 Posts: 8 Location: chennai
|
|
|
|
Can u please tell me how to code it using IDCAMS PRINT ? if member exists, what will happen? |
|
Back to top |
|
|
rehanaaigss
New User
Joined: 30 Jan 2008 Posts: 8 Location: chennai
|
|
|
|
If a particual member(job) exists in a PDS, that job has to be excuted; otherwise control has to come out.. How can i code this in JCL? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
Back to top |
|
|
rehanaaigss
New User
Joined: 30 Jan 2008 Posts: 8 Location: chennai
|
|
|
|
Hi,
I made use of 'LISTDS' to findout the availability of a member in a PDS. It is working fine.
Thanks for all........ |
|
Back to top |
|
|
Agni
New User
Joined: 22 Nov 2007 Posts: 83 Location: Chennai
|
|
|
|
Hi rehanaaigss,
Thanks for sharing this. It would be great if u post the JCL also.
Cheers
Agni. |
|
Back to top |
|
|
rehanaaigss
New User
Joined: 30 Jan 2008 Posts: 8 Location: chennai
|
|
|
|
Here is the JCL:
//P1 EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
LISTDS 'T54V01H.TEST.JCL(XXXX)'
If the specified member is not available, RC of this step will be 4. If the specified PDS itself doesn't exist, RC will be 8. |
|
Back to top |
|
|
|