View previous topic :: View next topic
|
Author |
Message |
joelacs0710
New User
Joined: 30 Oct 2007 Posts: 10 Location: China
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
This is the requirement given so I can not create the job in another dataset. |
Apologies, but that requirement is total nonsense. . .
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
Back to top |
|
|
|