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 Multiple Members

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Deleting Multiple Members
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    Post subject:
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    Post subject: Re: Deleting Multiple Members
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: 464

PostPosted: Mon Oct 03, 2005 3:08 pm    Post subject: Re: Deleting Multiple Members
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    Post subject: I am sure it works
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    Post subject:
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    Post subject: You can do like this
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    Post subject:
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    Post subject: I too had the same opinion
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: 464

PostPosted: Mon Oct 03, 2005 3:57 pm    Post subject: Re: Deleting Multiple Members
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: 309
Location: Vizag / US

PostPosted: Fri Mar 03, 2006 10:29 pm    Post subject: Re: Deleting Multiple Members
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    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 Converting multiple VB files to FB fi... Viswanath Reddy JCL & VSAM 6 Mon Aug 08, 2016 11:49 pm
No new posts Execute multiple DB2 Load commands in... faizm DB2 4 Wed Aug 03, 2016 12:53 pm
This topic is locked: you cannot edit posts or make replies. JCL MULTIPLE STEP EXECUTION QUERY Susanta JCL & VSAM 18 Sat Jul 30, 2016 1:17 pm
No new posts Multiple parameters Csongor All Other Mainframe Topics 16 Thu Jun 09, 2016 7:54 pm
No new posts Define Alias for multiple Data sets u... sandy98669 JCL & VSAM 4 Fri May 27, 2016 1:07 pm


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