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

Delete PO member Using IDCAMS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Sun Sep 28, 2008 2:26 pm
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: 1702
Location: Australia

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

Hi,

the solution to this problem was provided by Genesis786.

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
Search our Forums:

Back to Top