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
 

 

Need to check for existance of a MEMBER (given) in a PDS

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

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Mon Dec 20, 2004 12:50 pm    Post subject: Need to check for existance of a MEMBER (given) in a PDS
Reply with quote

Hi All,

I have one requirement in JCL. I need to check for existance of a MEMBER (given) in a PDS. This i have to do in JCL using utilities or without. Please any one can help me by sending the JCL.

Thanks,
Reddy.
Back to top
View user's profile Send private message

ovreddy

Active User


Joined: 06 Dec 2004
Posts: 211
Location: Keane Inc., Minneapolis USA.

PostPosted: Mon Dec 20, 2004 4:39 pm    Post subject: This is one but not STARIGHT FORWARD!
Reply with quote

Hi All,

I found an indirect way and solved my problem. that is in 2 steps...

1. Write all members list to a sequential file.
2. Search for given member name ( String) in that file.

But I never agree up on this. There must be a straight forward way to do this. I leave it to moderator and other Experts.

Bye,
Reddy.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Jan 09, 2005 10:03 am    Post subject:
Reply with quote

Hi Reddy,

This might be too late for your purposes, but you could probably use sort copy (1 rec). I'm pretty sure SORT accepts PDS members as I/P (you can use a temp D/S as O/P.)

If the step returns a non-zero RC the member doesn't exist.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Jan 09, 2005 10:05 am    Post subject:
Reply with quote

A DUMMY O/P is a better choice here.
Back to top
View user's profile Send private message
sundaresanjs

New User


Joined: 29 May 2006
Posts: 18
Location: USA

PostPosted: Sun Jun 04, 2006 10:00 am    Post subject: Re: Need to check for existance of a MEMBER (given) in a PDS
Reply with quote

hi friend,

you can do it with using IEBGENER utility,

for example let us take a pds EXAMPLE.PDS
and in that we want to search for member AAA.

for this we can use this program

Code:
//job.........
//step1 exec pgm=IEBGENER
//sysut1 dd dsn=EXAMPLE.PDS(AAA),disp=SHR
//sysut2 dd dsn=aaa.ps,disp=(NEW,DELETE,DELETE),
  DCB=(LREC=80,BLKSIZE=800,FB),space=(trk,(3,3),Rlse)
//sysout dd sysout=*
//sysprint dd sysout=*
//sysin dd dummy

comment if any errors,

Regards,
Back to top
View user's profile Send private message
philipraju
Warnings : 1

New User


Joined: 16 Apr 2006
Posts: 29

PostPosted: Sun Jun 04, 2006 4:13 pm    Post subject: Hi,
Reply with quote

First Problem:
Go to 3.14 Option,list all the pds with myid.myapplication.*
and then issue " Member memname",
we will gets the PDS name.


If any corrections.....pls
Back to top
View user's profile Send private message
sundaresanjs

New User


Joined: 29 May 2006
Posts: 18
Location: USA

PostPosted: Sun Jun 04, 2006 7:07 pm    Post subject:
Reply with quote

hi friend,

in my code if you run it and get maxcc = 0 then the member is present orelse the member is not present.

thanks

Regards,
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 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
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts File Stauts 92 with member of PDS sandip_mainframe COBOL Programming 4 Fri Jun 10, 2016 12:06 pm
No new posts Syntax to check the first 4 digits of... kshirabdhi DFSORT/ICETOOL 10 Tue May 03, 2016 12:21 pm


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