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 PO member Using IDCAMS

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

New User


Joined: 30 Oct 2007
Posts: 10
Location: China

PostPosted: Sun Sep 28, 2008 12:54 pm    Post subject: Delete PO member Using IDCAMS
Reply with quote

Hi All,

I have some requirements which is to delete a member in PO dataset. The problem is that the job that I will run is a member of the PO Dataset that the other needs to be deleted.

JOB: ABCDE.TEST.INSTJCL(DELETEJ)

//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DELETE ABCDE.TEST.INSTJCL(JOB0001)
/*
//

So when I run the job it has an error :
IKJ56241I DATA SET IS ALLOCATED TO ANOTHER JOB OR USER
IDC0548I ** MEMBER JOB0001 NOT DELETED
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8

Is there any parameter that we can use so that the dataset will not be in use when we run the job.

Note: This is the requirement given so I can not create the job in another dataset.

Thanks.
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: Sun Sep 28, 2008 2:26 pm    Post subject:
Reply with quote

Hello,

Quote:
This is the requirement given so I can not create the job in another dataset.
Apologies, but that requirement is total nonsense. . . icon_cry.gif

You might just delete the member online. . . Why submit a job at all if this is something you personally need to do?

In tso/ispf, go to "Command" (usually opton 6) and submit from there (make sure you are not "in" the dataset at the time).
Code:
SUB 'THE.JCLPDS(THEMBR)'
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Mon Sep 29, 2008 4:12 am    Post subject:
Reply with quote

Hi,

the solution to this problem was provided by Genesis786.

http://ibmmainframes.com/viewtopic.php?t=34166


Gerry
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