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

Deleting Multiple Members


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Aravind Kumar. S

New User


Joined: 28 Apr 2005
Posts: 26

PostPosted: Mon Oct 03, 2005 12:34 pm
Reply with quote

Hi all,

I 've tried this for deleting a member in a PDS,

//JobID JOB (D1),CLASS=B,MSGCLASS=R,
// MSGLEVEL=(1,1),NOTIFY=&SYSUID
// EXEC TSO
DELETE 'VE0144.DEV.COBOL(LMRM1121)'
/*

It' not working properly, And How to delete multiple(Selected) members in the PDS.
(We have to give the list of members to delete)

Plz. provide me the solution.

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

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Mon Oct 03, 2005 2:25 pm
Reply with quote

I've some doubt... that PROC is not the proc of started task?(It has different use but I never seen this)
And that delete of your sample, what is it? Is not a parm if you don't specify a dd and is not a comment... is there... but for what?
I think that your job does not mean nothing but if I'm wrong I apologize to you.
Are you sure that it does not function only for a member and not both for a ps?

You wrote another post for the same request without replying to no one.
Well I'm sure that you have your reason, but another post does not mean another, same, reply!

If you want to delete a member you must use the: IEHPROGM that's a standard utility from IBM that you can find in the Manual section looking for the utility.
This is the link:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/dgt1u104/15.0?DT=19990113105507
Another way is moving your pds excludig the member you want to delete and for this you can use IEHMOVE at this link:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/dgt1u104/14.0?DT=19990113105507

I hope in this suggest apologizing to you for my bad english.
Back to top
View user's profile Send private message
tdsvamsidhar

New User


Joined: 03 Oct 2005
Posts: 7

PostPosted: Mon Oct 03, 2005 2:30 pm
Reply with quote

Try one of these, I am sure it will work

//SORTNAM EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DELETE 'CAC090.DB.COB(ACCTS)'
/*


OR

//***************************************
//* THIS JCL DELETES A MEMBER IN THE PDS
//***************************************
//DELMEM EXEC PGM=IEHPROGM
//SYSPRINT DD SYSOUT=A,DEST=RMT1,HOLD=YES
//ANYNAME1 DD UNIT=SYSDA,VOL=SER=TSO358,DISP=SHR
//SYSIN DD *
SCRATCH MEMBER=IMX1,DSNAME=XTRNRAY.CPY,VOL=SYSDA=TSO358
/*
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Mon Oct 03, 2005 3:08 pm
Reply with quote

Hi Tdsvamsidhar,


Code:
//SORTNAM EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DELETE 'CAC090.DB.COB(ACCTS)'
/*


Are you sure that it wil work? because We generallly use IDCAM utility to delete the PS and not PDS.

Regards

Rupesh
Back to top
View user's profile Send private message
tdsvamsidhar

New User


Joined: 03 Oct 2005
Posts: 7

PostPosted: Mon Oct 03, 2005 3:12 pm
Reply with quote

Hi Rupesh,

That works fine, In fact I have tested and posted it. Just make a test and let me know.

Regards,
Vamsi
Back to top
View user's profile Send private message
Aravind Kumar. S

New User


Joined: 28 Apr 2005
Posts: 26

PostPosted: Mon Oct 03, 2005 3:19 pm
Reply with quote

hi,

But , in a single stretch i've to delete some 50 -60 members.

the jcl has to take the list from a member( contains the list of members to delete ) and it shud delete those members from another PDS.

Is it possible.?

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

New User


Joined: 03 Oct 2005
Posts: 7

PostPosted: Mon Oct 03, 2005 3:28 pm
Reply with quote

Hi,

Just create a seq dataset (asssume USER.DATA.MEMS) with all Delete instructions for your memebers as follows

DELETE 'USER.DATA.SET(MEM1)'
DELETE 'USER.DATA.SET(MEM2)'
.....
.....
So on and then

You replace the SYSIN with the dataset like below

//SORTNAM EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DSN=USER.DATA.MEMS,DISP=SHR
/*

Then it will delete all the ones in the dataset USER.DATA.MEMS.

Hope this helps, let me know if something is wrong....
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Mon Oct 03, 2005 3:33 pm
Reply with quote

That's new... and I must apologize...
I remember that in the past IDCAMS didn't allow to delete the member. It's a wonderful news...
Back to top
View user's profile Send private message
tdsvamsidhar

New User


Joined: 03 Oct 2005
Posts: 7

PostPosted: Mon Oct 03, 2005 3:49 pm
Reply with quote

But I have tested and posted it and may be this is an enhancement of IDCAMS.
Back to top
View user's profile Send private message
Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 463

PostPosted: Mon Oct 03, 2005 3:57 pm
Reply with quote

HI Tdsvamsidhar,

Yes I also tested this jcl and it is working fine.

Thanks a lot for your information. I calso come to know this now only.

Thanks

Rupesh
Back to top
View user's profile Send private message
Gautam512

Active User


Joined: 05 Oct 2005
Posts: 308
Location: Vizag / US

PostPosted: Fri Mar 03, 2006 10:29 pm
Reply with quote

interesting one to know....

thanks for posting.......
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
No new posts Deleting a Tape file JCL & VSAM 14
Search our Forums:

Back to Top