IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

deleting the members in a pds


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1287
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 2:12 pm
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: 1287
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 2:25 pm
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: 36
Location: India

PostPosted: Tue Nov 20, 2007 2:57 pm
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: 1287
Location: Chennai, India

PostPosted: Tue Nov 20, 2007 3:10 pm
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
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: 36
Location: India

PostPosted: Tue Nov 20, 2007 3:23 pm
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
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
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

Senior Member


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

PostPosted: Tue Nov 20, 2007 6:58 pm
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
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

Senior Member


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

PostPosted: Tue Nov 20, 2007 9:37 pm
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: 2358
Location: Israel

PostPosted: Wed Nov 21, 2007 12:36 am
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

Senior Member


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

PostPosted: Wed Nov 21, 2007 1:17 am
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: 2358
Location: Israel

PostPosted: Wed Nov 21, 2007 2:04 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Deleting a Tape file JCL & VSAM 14
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts Duplicate several members of/in one l... JCL & VSAM 7
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts REXX editmacro to compare two members... CLIST & REXX 7
Search our Forums:

Back to Top