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

Uncatalog a data set


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mayos

New User


Joined: 11 Apr 2005
Posts: 16

PostPosted: Tue Apr 12, 2005 5:19 pm
Reply with quote

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
View user's profile Send private message
MF_query

New User


Joined: 13 Apr 2005
Posts: 1

PostPosted: Wed Apr 13, 2005 11:35 am
Reply with quote

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
View user's profile Send private message
andycool

New User


Joined: 12 Apr 2005
Posts: 64

PostPosted: Wed Apr 13, 2005 12:08 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Apr 13, 2005 3:26 pm
Reply with quote

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
View user's profile Send private message
vinoddevkar

New User


Joined: 13 Apr 2005
Posts: 9
Location: pune

PostPosted: Wed Apr 13, 2005 4:59 pm
Reply with quote

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
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 Store the data for fixed length COBOL Programming 1
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top