View previous topic :: View next topic
|
Author |
Message |
Mayos
New User
Joined: 11 Apr 2005 Posts: 16
|
|
|
|
Hello,
Can someone offer a suggestion on how to uncatalog a data set? Do I need to run a job to do uncatalog it?
Thanks. |
|
Back to top |
|
|
MF_query
New User
Joined: 13 Apr 2005 Posts: 1
|
|
|
|
You can use IEFBR14 to do so.
Code:
//MYJOB JOB CLASS=A,MSGCLASS=A,REGION=256K,MSGLEVEL=(1,1)
//UNCATG EXEC PGM=IEFBR14
//STEP01 DD DSN=NEED.TOBE.UNCATALOGED,
// DISP=(MOD,UNCATLG,UNCATLG),
// UNIT=SYSDA,SPACE=(TRK,(0)) |
|
Back to top |
|
|
andycool
New User
Joined: 12 Apr 2005 Posts: 64
|
|
|
|
Hi,
As mentioned by MF_query, the IEFBR14 utility is normally used to delete the datasets in a job wch are to be used again. By setting the DISP ie the disposition parameter you can retain or delete or uncatlg the dataset.
DISP=(MOD,UNCATLG,UNCATLG) denotes:
1 MOD: the dataset already exists. If its to be created it ll be NEW instaed of MOD
2 UNCATLG: Uncatalog the dataset if the the job runs fine.
3 UNCATLG: Uncatalog the dataset if the the job does not run fine.
Similarly:
DISP=(NEW,CATLG,DELETE) denotes:
1 NEW: Dataset not on disk, to be created new in the further steps.
2 CATLG: Catalog it if the job runs fine.
3 DELETE: Delete it if the job does not run fine.
Thanks. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Mayos wrote: |
Do I need to run a job to do uncatalog it (sic)?
|
No. The TSO ALLOCATE command will also work:
Code: |
TSO ALLOC DD(X) DA('MY.DSN') REUSE OLD UNCATALOG DELETE
TSO FREE DD(X)
|
|
|
Back to top |
|
|
vinoddevkar
New User
Joined: 13 Apr 2005 Posts: 9 Location: pune
|
|
|
|
Hi,
In primary option menu,we have an option to uncatalog,otherwise we can use line level commands such as ......
_____u____ abc.sss.ccc ,this will uncatalog ur dataset. |
|
Back to top |
|
|
|