View previous topic :: View next topic
|
Author |
Message |
varalakshmi.G
New User
Joined: 04 Jun 2007 Posts: 55 Location: Hyderabad
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
kovur
New User
Joined: 15 Nov 2007 Posts: 36 Location: India
|
|
|
|
Hi Aaru,
Can we use IDCAMS in this case instead of IKJEFT01? |
|
Back to top |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
inamadugu Warnings : 1 New User
Joined: 23 Aug 2007 Posts: 18 Location: Delhi
|
|
|
|
Aaru,
Thank you for clarifying. |
|
Back to top |
|
|
kovur
New User
Joined: 15 Nov 2007 Posts: 36 Location: India
|
|
|
|
thank you Aaru. |
|
Back to top |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
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 |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
If above is the case, then go in to the PDS and give the following in the command line
All the member names starting with PTSS will be deleted. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1050 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1050 Location: Richmond, Virginia
|
|
|
|
Is this doc'd in the F1 help? |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1050 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
I believe the F1 help is actually an abstract of the fine manuals.
O. |
|
Back to top |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
Back to top |
|
|
|