Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
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
 
How to catalog an uncataloged dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
trgk03

New User


Joined: 20 Jan 2006
Posts: 12
Location: kochi

PostPosted: Tue Nov 27, 2007 3:49 pm    Post subject: How to catalog an uncataloged dataset
Reply with quote

Hi All,

How can i catalog an uncataloged dataset ? One of the GDG has been uncataloged and we want it back.
Is there any utility/job for this ? Request for help on this.

Regards
S D
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Tue Nov 27, 2007 3:53 pm    Post subject:
Reply with quote

S D,

If you know the volume, you can do it from 3.2 screen.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Nov 28, 2007 7:58 am    Post subject: Reply to: How to catalog an uncataloged dataset
Reply with quote

Hi Murali,
you are making the assumption that the dataset is on disk and is still available, that would not work too well if the dataset is on tape/cart
and would also need to know the label number.

Gerry
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Nov 28, 2007 8:51 am    Post subject:
Reply with quote

Gerry,

Quote:
you are making the assumption that the dataset is on disk

You are right icon_smile.gif . Since the TS has not told anything whether the dataset is on tape or dasd..... I assumed its on disk.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 29, 2007 12:55 am    Post subject: Re: Reply to: How to catalog an uncataloged dataset
Reply with quote

gcicchet wrote:
Hi Murali,
you are making the assumption that the dataset is on disk and is still available, that would not work too well if the dataset is on tape/cart
and would also need to know the label number.

Gerry


Only in the case of a multi dataset volume though.

But back to the OP ...........
Has the GDG generation been rolled off or genuinely uncatalogued ?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Thu Nov 29, 2007 4:37 am    Post subject:
Reply with quote

Hi,

I don't understand waht you mean by "Only in the case of a multi dataset volume though".

I still can't see how you would catalog a tape/cart via 3.2


Gerry
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Nov 29, 2007 10:26 pm    Post subject:
Reply with quote

You can try IEFBR14 w/DISP=(OLD,CATLG) and VOL=SER=xxxxxx and UNIT=SYSDA.

If it's a tape code UNIT=(TAPE,,DEFER). Check w/librarian if you use a TMS.

PS UNIT names may differ in your shop.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Nov 29, 2007 11:49 pm    Post subject:
Reply with quote

You only need to know the label number for a multi dataset volume, i.e. a tape that has more than one dataset catalogued to it, because if one tape has only one dataset then the default is label 1.

However, it might be nice if the OP came back to us at some stage.
Back to top
View user's profile Send private message
trgk03

New User


Joined: 20 Jan 2006
Posts: 12
Location: kochi

PostPosted: Fri Nov 30, 2007 6:43 pm    Post subject: Reply to: How to catalog an uncataloged dataset
Reply with quote

I got the JCL to catalog an uncataloged dataset and it works;;

//SRA4621C JOB (DUPB0000000,NM),
// 'CATALOG DATASET',
// MSGCLASS=J,
// CLASS=Y,
// USER=USERNAME
//*
//**************JOB OVERVIEW********************
//* PURPOSE: CATALOG AN UNCATALOGED DATASET
//*
//DEFINE EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE NVSAM -
(NAME(XXX.YYY.B.DAILY.ABC.G3045V00) -
VOLUMES(PX3821) -
DEVT(3490))
/*
Back to top
View user's profile Send private message
dinesh_deadman
Warnings : 1

New User


Joined: 10 Aug 2007
Posts: 38
Location: Chicago

PostPosted: Wed Oct 28, 2009 11:56 pm    Post subject: Same topic re-vitalised
Reply with quote

Hello:

I am trying to catalog an uncataloged data set that was created in the prior job (JOB A) - it is a flat file. Here is how it was defined.

//DATA DD DISP=(NEW,CATLG,DELETE),
// DSN=XXXDASD.YY.XXXXXXX.D126,
// UNIT=(SYSDA,01),VOL=REF=DEV.XXXXXXX.DISK,
// SPACE=(CYL,(20,10),RLSE)

This is just an fyi, infact in the same job 5 other files were also created and all with the same definition.

Once the job (prior one - JOB A) ended, I checked to see the output in the spool and there I found that this specific file wasn't cataloged. Here is the message.

IEF287I XXXDASD.YY.XXXXXXX.D126 NOT CATLGD 2

As some people have already suggested in this post, I tried 3.2 and also IDCAMS. Nothing seems to work.

Strangely, when I try to check in 3.4, it does appear but when I browse it, it fails and throws an error message - DATASET NOT FOUND.

Can somebody help me here please?

Dinesh
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8151
Location: East Dubuque, Illinois, USA

PostPosted: Thu Oct 29, 2009 12:12 am    Post subject:
Reply with quote

The NOT CATLGD 2 message means the data set was not cataloged because there is an identical entry already in the catalog. In ISPF 3.4, you can put a slash (/) beside the data set name, then use option 11 to uncatalog it. You can then go to the volume the data set was created on in your job (the job output will give you the volume serial) and catalog that data set by putting a slash then using option 10.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Thu Oct 29, 2009 12:36 am    Post subject:
Reply with quote

Hello,

Before getting too frisky mucking about with catalog entries, you need to make sure of what you have.

What is the content of the already cataloged dataset? Is it still valuable?

Once you decide what is to be done and correct the current situation, you also need to correct the process to delete the dataset in a timely manner (i.e. before the next cycle is run). Many processes do "housekeeping" at the beginning and/or the end of a run to make sure this does not happen.
Back to top
View user's profile Send private message
dinesh_deadman
Warnings : 1

New User


Joined: 10 Aug 2007
Posts: 38
Location: Chicago

PostPosted: Thu Oct 29, 2009 12:53 am    Post subject:
Reply with quote

Hello:

Robert Sample -> I tried to see what datasets are on that specific Volume, and it appears that this one isn't there.

Dick Scherrer -> The data in this dataset isn't all that important and more over it is in test region.

Thanks to you both for providing the potential solutions.

I renamed the output dataset in JOB A and reran that step alone and the new one that's created looks good.

Thanks again.

Dinesh
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8151
Location: East Dubuque, Illinois, USA

PostPosted: Thu Oct 29, 2009 1:17 am    Post subject:
Reply with quote

Are the data sets under SMS control? If so, you have to check the job output to see what specific volume was used for that run since SMS will ignore your volume specification and use any volume in the storage pool that it considers a candidate volume. Looking on the one volume you think it is on may be incorrect if SMS is involved.
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 Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us