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
 

 

Existence of a member in a PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rehanaaigss

New User


Joined: 30 Jan 2008
Posts: 8
Location: chennai

PostPosted: Fri Feb 08, 2008 11:56 am    Post subject: Existence of a member in a PDS
Reply with quote

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
View user's profile Send private message

ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Fri Feb 08, 2008 12:51 pm    Post subject:
Reply with quote

I would recommend using REXX's SYSDSN function and set a return code appropriately.

O.
Back to top
View user's profile Send private message
rehanaaigss

New User


Joined: 30 Jan 2008
Posts: 8
Location: chennai

PostPosted: Fri Feb 08, 2008 2:14 pm    Post subject:
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 08, 2008 3:19 pm    Post subject:
Reply with quote

Have you investigated the use of IDCAMS PRINT ?

You get RC12 if the member does bot exist
Back to top
View user's profile Send private message
rehanaaigss

New User


Joined: 30 Jan 2008
Posts: 8
Location: chennai

PostPosted: Fri Feb 08, 2008 5:03 pm    Post subject:
Reply with quote

Can u please tell me how to code it using IDCAMS PRINT ? if member exists, what will happen?
Back to top
View user's profile Send private message
rehanaaigss

New User


Joined: 30 Jan 2008
Posts: 8
Location: chennai

PostPosted: Fri Feb 08, 2008 7:11 pm    Post subject:
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Feb 08, 2008 7:25 pm    Post subject:
Reply with quote

Here is the link to the IDCAMS manual, so take a look at the PRINT command.

http://publib.boulder.ibm.com/cgi-bin/bookmgr/FINDBOOK?filter=access+method+services&Collection=0

How do you code what you want - execute, or not, the second step depending on the condition returned from the IDCAMS PRINT step.
Back to top
View user's profile Send private message
rehanaaigss

New User


Joined: 30 Jan 2008
Posts: 8
Location: chennai

PostPosted: Tue Feb 12, 2008 5:26 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Agni

New User


Joined: 22 Nov 2007
Posts: 83
Location: Chennai

PostPosted: Tue Feb 12, 2008 6:10 pm    Post subject: Reply to: Existence of a memeber in a PDS
Reply with quote

Hi rehanaaigss,

Thanks for sharing this. It would be great if u post the JCL also.

Cheers
Agni.
Back to top
View user's profile Send private message
rehanaaigss

New User


Joined: 30 Jan 2008
Posts: 8
Location: chennai

PostPosted: Tue Feb 12, 2008 6:19 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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