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

How to catalog an uncataloged dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1436
Location: Bangalore,India

PostPosted: Tue Nov 27, 2007 3:53 pm
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: 1702
Location: Australia

PostPosted: Wed Nov 28, 2007 7:58 am
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: 1436
Location: Bangalore,India

PostPosted: Wed Nov 28, 2007 8:51 am
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: 8797
Location: Welsh Wales

PostPosted: Thu Nov 29, 2007 12:55 am
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: 1702
Location: Australia

PostPosted: Thu Nov 29, 2007 4:37 am
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Nov 29, 2007 11:49 pm
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
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: 32
Location: Chicago

PostPosted: Wed Oct 28, 2009 11:56 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Oct 29, 2009 12:12 am
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

Moderator Emeritus


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

PostPosted: Thu Oct 29, 2009 12:36 am
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: 32
Location: Chicago

PostPosted: Thu Oct 29, 2009 12:53 am
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Oct 29, 2009 1:17 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top