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
 

 

Delete a PDS member

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

New User


Joined: 01 Jul 2008
Posts: 32
Location: chennai

PostPosted: Thu Sep 16, 2010 7:58 am    Post subject: Delete a PDS member
Reply with quote

Hi all,

In STEP 1 i Run a Batch SPUFI using IKJFT01

while the query is taken from

XXXX.YYYYY.ZZZZ(MEMBER)

and in STEP2 I want to Delete this MEMBER using IDCAMS

While deleting it says XXXX.YYYYY.ZZZZ is in use.

Can this STEP2 be done in the same JCL

My requirement is once i run the query i want to empty the PDS member
or delete the member.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Sep 16, 2010 8:13 am    Post subject:
Reply with quote

Hello,

How did the query get into this member?

Suggest you post the jcl for the job and diagnostic info generated by the run.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Sep 16, 2010 9:10 am    Post subject:
Reply with quote

Quote:
While deleting it says XXXX.YYYYY.ZZZZ is in use.


TS probably has a disp=OLD in a dd statement for the pds(mem)

but, that is just a guess, it is early and for some reason just had to make a post.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Sep 16, 2010 9:25 am    Post subject: Reply to: Delete a PDS member
Reply with quote

Hi Dick,

Quote:
it is early and for some reason just had to make a post.
Welcome to Thursday icon_smile.gif

I haven't gotten out of Wednesday yet. . . icon_wink.gif

d
Back to top
View user's profile Send private message
edwin_infy

New User


Joined: 01 Jul 2008
Posts: 32
Location: chennai

PostPosted: Thu Sep 16, 2010 10:58 am    Post subject: Reply to: Delete a PDS member
Reply with quote

I will Edit that MEMBER by creating it newly, I have Used DISP=SHR only

Any Suggestion to free this pds once this SPUFI runs.

I want to delete the same at the end of job.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Sep 16, 2010 11:03 am    Post subject: Re: Reply to: Delete a PDS member
Reply with quote

edwin_infy wrote:
I will Edit that MEMBER by creating it newly, I have Used DISP=SHR only

Any Suggestion to free this pds once this SPUFI runs.

I want to delete the same at the end of job.


Blah, blah, blah, blah, blah....

Dich Scherrer wrote:
Suggest you post the jcl for the job and diagnostic info generated by the run.


we are not interested in your summations.
You have a problem that you can not solve.
you need help solving the problem.
Give us the info that we need and we can help you.

Did you bother to exit the member before running the Job?
Back to top
View user's profile Send private message
edwin_infy

New User


Joined: 01 Jul 2008
Posts: 32
Location: chennai

PostPosted: Thu Sep 16, 2010 3:34 pm    Post subject: Reply to: Delete a PDS member
Reply with quote

Yes . I had opened this PDS and Ran the JCL.

That was a mistake. Sorry
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Sep 16, 2010 4:16 pm    Post subject:
Reply with quote

no need to be sorry,
glad you were able to resolve your problem.

in the jes 1 or jes 3 dsid, not only did it say ds not available,
it often, though not always, will include the info as what job has the exclusive on the file.
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 find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts Delete record or Reset RC code using ... mpawan Compuware & Other Tools 4 Tue Jul 26, 2016 3:52 pm


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