Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Uncatalog a data set

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Uncatalog a data set
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    Post subject: Re: Uncatalog a data set
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    Post subject:
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

Moderator Team Head


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

PostPosted: Wed Apr 13, 2005 3:26 pm    Post subject: Re: Uncatalog a data set
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    Post subject: Re: Uncatalog a data set
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    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 Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm
No new posts Fetching data from JHS as per the cur... arunsoods All Other Mainframe Topics 4 Wed Nov 22, 2017 1:54 pm
No new posts Extract Record using range of Data scorp_rahul23 DFSORT/ICETOOL 3 Wed Nov 15, 2017 11:54 pm
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm
This topic is locked: you cannot edit posts or make replies. Can a alphanumeric data be moved to a... nico_neoz COBOL Programming 10 Mon Oct 30, 2017 8:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us