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
 

 

deleting the members in a pds

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

New User


Joined: 04 Jun 2007
Posts: 55
Location: Hyderabad

PostPosted: Tue Nov 20, 2007 1:38 pm    Post subject: deleting the members in a pds
Reply with quote

hi

is there any option to delete the members in a pds.will it work by giving the high qualifier like ex: PTSS** for the members to be deleted in pds.
Back to top
View user's profile Send private message

Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 2:12 pm    Post subject: Reply to: deleting the members in a pds
Reply with quote

Varalakshmi,

Quote:
is there any option to delete the members in a pds.


If you looking for a TSO command, here it is

Code:
TSO DEL 'HLQ.COB.COB(MEM1)'


Quote:
will it work by giving the high qualifier like ex: PTSS**


No, it wont work
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 2:25 pm    Post subject: Reply to: deleting the members in a pds
Reply with quote

TSO DELETE in batch.

Code:
//TMP      EXEC PGM=IKJEFT01,REGION=2M               
//SYSTSPRT DD   SYSOUT=*                             
//SYSTSIN  DD   *                                     
  DELETE 'HLQ.COB.COB(CHES3)'                     
/*                                                   


Quote:
will it work by giving the high qualifier like ex: PTSS**


No, it won't.
Back to top
View user's profile Send private message
kovur

New User


Joined: 15 Nov 2007
Posts: 37
Location: India

PostPosted: Tue Nov 20, 2007 2:57 pm    Post subject: Reply to: deleting the members in a pds
Reply with quote

Hi Aaru,

Can we use IDCAMS in this case instead of IKJEFT01?
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 3:10 pm    Post subject: Reply to: deleting the members in a pds
Reply with quote

Kovur,

Welcome to the forum.

Quote:
Can we use IDCAMS in this case instead of IKJEFT01?


Yes,

Code:
//STEP     EXEC PGM=IDCAMS                   
//SYSPRINT DD  SYSOUT=*                       
//SYSIN    DD  *                             
 DELETE 'HLQ.COB.COB(CHES2)'               
/*                                           
Back to top
View user's profile Send private message
inamadugu
Warnings : 1

New User


Joined: 23 Aug 2007
Posts: 18
Location: Delhi

PostPosted: Tue Nov 20, 2007 3:21 pm    Post subject: Reply to: deleting the members in a pds
Reply with quote

Aaru,

Thank you for clarifying.
Back to top
View user's profile Send private message
kovur

New User


Joined: 15 Nov 2007
Posts: 37
Location: India

PostPosted: Tue Nov 20, 2007 3:23 pm    Post subject: Reply to: deleting the members in a pds
Reply with quote

thank you Aaru.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Nov 20, 2007 3:26 pm    Post subject: Re: deleting the members in a pds
Reply with quote

varalakshmi.G wrote:
hi

is there any option to delete the members in a pds.will it work by giving the high qualifier like ex: PTSS** for the members to be deleted in pds.

Do you mean that, delete all the members starting with PTSS**?
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Nov 20, 2007 3:44 pm    Post subject:
Reply with quote

If above is the case, then go in to the PDS and give the following in the command line
Code:
S  PTSS* D

All the member names starting with PTSS will be deleted.
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Tue Nov 20, 2007 6:58 pm    Post subject:
Reply with quote

I never knew the S XXX* D format.

Works, I see, with other line commands, like E, to step thru each member in EDIT mode. To do this, one can also use the E line command by the dataset and follow the dataset name with (XXX* - all beginning XXX) or (%%%%%%%P - all length 8 ending P).

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

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Nov 20, 2007 8:07 pm    Post subject:
Reply with quote

Quote:
I never knew the S XXX* D format.


Here are some short TSO commands

Code:

S XXX* R
=> for mass rename

S XXX* C
=> for mass copy

S XXX* E
=> for mass EDIT

S XXX* D
=> for mass delete
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Tue Nov 20, 2007 9:37 pm    Post subject:
Reply with quote

Is this doc'd in the F1 help?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Nov 21, 2007 12:36 am    Post subject:
Reply with quote

krisprems -

It is an ISPF command, not TSO.


Phil -

The SELECT (abbreviated as S) command is well documented in the fine manual.

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

Active Member


Joined: 31 Oct 2006
Posts: 961
Location: Richmond, Virginia

PostPosted: Wed Nov 21, 2007 1:17 am    Post subject:
Reply with quote

I'm OK with manuals, but since the ISPF F1 help is loaded with excellent info, I'm wondering if this version of S is somewhere there.

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

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Wed Nov 21, 2007 2:04 am    Post subject:
Reply with quote

I believe the F1 help is actually an abstract of the fine manuals.

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

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Wed Nov 21, 2007 7:55 am    Post subject:
Reply with quote

Quote:
krisprems -

It is an ISPF command, not TSO.

Yes, it was by mistake icon_wink.gif
here is the link for the fine manual
Any TSO command, REXX exec, or CLIST set by the Open Command field on the Workplace Settings panel.
E
Edit
V
View
B
Browse
D
Delete member
R
Rename member
M
Move
C
Copy
G
Reset
P
Print member
J
Submit
T
TSO command action
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 Single step utility for compare and u... ramprakashn JCL & VSAM 5 Fri Apr 29, 2016 3:43 pm
No new posts Differences between copying members b... E.LAI TSO/ISPF 8 Wed Mar 30, 2016 12:35 pm
No new posts Savings by Deleting Unused datasets swathykrishnan All Other Mainframe Topics 13 Fri Jul 10, 2015 6:26 pm
No new posts JCL to replace string in all PDS members bhamarekm All Other Mainframe Topics 8 Thu May 28, 2015 8:44 pm
No new posts Issue with copying PDS members to ano... Senthilkumar k CLIST & REXX 13 Mon Apr 20, 2015 1:28 pm


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