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
 

 

How to delete members starting with P from PDS.

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

New User


Joined: 16 May 2010
Posts: 4
Location: hyderabad

PostPosted: Sun May 16, 2010 2:19 pm    Post subject: How to delete members starting with P from PDS.
Reply with quote

Hi all,

Please help me out in this issue.

can i use IDCAMS to delete members which starts with letter 'P'

if we can't Please let me know how to do so.

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

Tomhanksss

New User


Joined: 16 May 2010
Posts: 4
Location: hyderabad

PostPosted: Sun May 16, 2010 3:42 pm    Post subject: How to delete members starting with P from PDS.
Reply with quote

hello experts,

Please let me know the solution....,

if there is any other way to delete members from PDS. members are more than 150.

I know it can be done in SAS. I am working on SAS to COB conversion. So i need that to be done using utilities.

Thanks in advance.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Sun May 16, 2010 3:49 pm    Post subject:
Reply with quote

Quote:

I know it can be done in SAS


It can also be done in ISPF.
Back to top
View user's profile Send private message
Tomhanksss

New User


Joined: 16 May 2010
Posts: 4
Location: hyderabad

PostPosted: Sun May 16, 2010 3:51 pm    Post subject:
Reply with quote

Quote:
thanks for the reply.

i want a step to do that. can you provide that details.[/code]
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Sun May 16, 2010 3:57 pm    Post subject:
Reply with quote

Well, the ISPF usage in this case cant be run in a batch job.
And if you know how to do it in SAS, do it in SAS.
Back to top
View user's profile Send private message
Tomhanksss

New User


Joined: 16 May 2010
Posts: 4
Location: hyderabad

PostPosted: Sun May 16, 2010 4:13 pm    Post subject:
Reply with quote

Good one but my requirement is SAS to COB conversion
i have the code in SAS
Now i need something other than sas
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Sun May 16, 2010 4:42 pm    Post subject: Reply to: How to delete members starting with P from PDS.
Reply with quote

Certainly would be simple to do in ISPF by issuing one command (D P*), but the basic process in batch would be:

- Create a list of members of the PDS.
- Select those that start with 'P' and build a corresponding DELETE statement.
- Execute the series of DELETE statements.

There are plenty of previous topics to refine your process from:

http://www.ibmmainframes.com/viewtopic.php?=4414
http://ibmmainframes.com/viewtopic.php?t=235
http://ibmmainframes.com/viewtopic.php?t=9831
http://ibmmainframes.com/viewtopic.php?t=13908
http://www.ibmmainframes.com/viewtopic.php?=26086
http://www.ibmmainframes.com/viewtopic.php?=45095
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Mon May 17, 2010 7:16 pm    Post subject: Re: Reply to: How to delete members starting with P from PDS
Reply with quote

superk wrote:
Certainly would be simple to do in ISPF by issuing one command (D P*) ....


And where would you enter this command?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon May 17, 2010 7:27 pm    Post subject:
Reply with quote

Bill Dennis wrote:
And where would you enter this command?


From the Command Line in a 3.1 member list 5.2.4.3 D -- delete members

actually, I think you can do it from 3.1 and 3.4, but I did not bother to test.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Mon May 17, 2010 11:43 pm    Post subject:
Reply with quote

dbz,

I did try to test and could not find anywhere to enter this as a Primary Command for a member list (the apparent format of superk's response).

Option 3.1 will allow a member name mask as panel input when selecting the Delete option.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Mon May 17, 2010 11:52 pm    Post subject: Reply to: How to delete members starting with P from PDS.
Reply with quote

Might be my mistake. icon_redface.gif I remember seeing that specific command posted here years ago by someone I believe to be reputable, but to be honest I don't think I've ever tried it.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Tue May 18, 2010 2:39 pm    Post subject:
Reply with quote

command is S P* DEL from the command line
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 JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm
No new posts Online Assembler Program Starting point Aditya.Srivastava PL/I & Assembler 4 Fri Jul 08, 2016 6:48 pm
No new posts Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm


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