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

JCL utility to know Vol serial for uncatalogued Dataset


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

New User


Joined: 02 Sep 2005
Posts: 39

PostPosted: Mon Mar 26, 2007 2:32 pm
Reply with quote

All-

Is there a JCL utility by which one can know the Volser for uncatalogued dataset? If not utility, is there any other way??
FYI, These uncatalogued datasets can be viewed using tape management system[TMSDSN]
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Mar 26, 2007 3:00 pm
Reply with quote

ADRDSSU - also known as DFSMSdss or DFdss - take a look at the manual to see dataset search criteria for DASD based datasets.
Back to top
View user's profile Send private message
itzphaniz

New User


Joined: 02 Sep 2005
Posts: 39

PostPosted: Mon Mar 26, 2007 3:34 pm
Reply with quote

Xpat-
Is ADRDSSU a separate utility? Do we have to pass any PARM parameters to it?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Mar 26, 2007 3:46 pm
Reply with quote

Here's a link to the manual.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2U230/3.2.2?DT=20040624151438
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: Mon Mar 26, 2007 9:38 pm
Reply with quote

Hello,

From your post it is not clear that these are dasd datasets - are they?

Many (actually, most) sites have "clean-up" jobs that run periodically to automatically delete dasd datasets that are not cataloged.

In addition for the volser(s), you will want to determine what caused the dataset to be on the dasd and not in the catalog and take steps to prevent this in the future.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 27, 2007 12:20 pm
Reply with quote

Quote:
FYI, These uncatalogued datasets can be viewed using tape management system[TMSDSN]

Just reread this, and noticed this part ......... need to see the optician again icon_wink.gif

If they are on tape and uncatalogued, the only possible problem I can see is if the tapes are on some sort of retention cycle, like keep for 8 cycles, or have an explicit EXPDT.

This should only be a problem if you are running short of tapes.
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: Tue Mar 27, 2007 7:46 pm
Reply with quote

Hi expat,

Yup, that's why i asked if the file(s) were dasd.

If they are tape datasets, and may be seen in the tape management invenrtoy, i am confused about the question.

Maybe we will get some clarifying information. . . icon_confused.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Mar 27, 2007 7:53 pm
Reply with quote

Yeah, but don't hold your breath icon_rolleyes.gif
Back to top
View user's profile Send private message
itzphaniz

New User


Joined: 02 Sep 2005
Posts: 39

PostPosted: Wed Mar 28, 2007 9:16 am
Reply with quote

>>If they are tape datasets, and may be seen in the tape management invenrtoy, i am confused about the question

They are tape datasets(only not DASD) and can be viewed using TMS.. They cannot be seen using 3.4 option! icon_cry.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Mar 28, 2007 12:26 pm
Reply with quote

And what's the problem with that.

The tape management software retains the last dataset name allocated to the tape even though it is in scratch status, replacing with a new dataset name the next time the tape is written to.
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: Wed Mar 28, 2007 7:24 pm
Reply with quote

Hello,

That is because 3.4 is catalog-driven.

If these are "good" files that are uncataloged, you will need to use the tape management reporting to prepare whatever info you need for the datasets that are being kept, but are not in the catalog. You wouldn't need an entire inventory list, just the dataset names that you are interested in.

Are these good files or have they expired and the volumes are now in scratch status? Or said differently, what do you need to use the information for? If we know what your requirement is, we can offer better suggestions.
Back to top
View user's profile Send private message
itzphaniz

New User


Joined: 02 Sep 2005
Posts: 39

PostPosted: Thu Mar 29, 2007 5:42 pm
Reply with quote

We actually need to copy these tape files to DASD. The problem is, for Tape files which are viewable using 3.4 we are able to copy to DASD[with out mentioning VOLSER], but when the tape is not catalogued, we need to specify the Volser for the copying to happen, else we were getting error.
I hope i'm clear. Please let me know if you still have any doubts?
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 Mar 29, 2007 7:38 pm
Reply with quote

Hello,

You are quite clear icon_smile.gif

From my perspective, you have 2 choices you can do on your own:

1) re-catalog the files.
2) run the copy jobs and include the volser(s) in the DD statements.

Either way, you will have to "mention" the volser somewhere - if you may need to do this multiple times, i'd suggest re-cataloging. Some sites make it harder to use uncataloged tapes. If yours does this, you will be ahead to re-catalog them. Keep in mind that you can re-catalog them without actually having a DD statement that allocates a physical derive.

You might also check with your tape management people and see if they have a preference and/or a suggestion. They may already have a something in place to (re)catalog existing tapes.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 29, 2007 7:44 pm
Reply with quote

And look out for multi volume datasets
Back to top
View user's profile Send private message
itzphaniz

New User


Joined: 02 Sep 2005
Posts: 39

PostPosted: Fri Mar 30, 2007 10:46 am
Reply with quote

>>Keep in mind that you can re-catalog them without actually having a DD statement that allocates a physical derive.

Could u elaborate on this please?
I don't think our TMS people are aware of "Re-catloging" existing tapes.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 30, 2007 12:34 pm
Reply with quote

It's an IDCAMS function.

BEWARE If you recatalog the tape you will need to ensure that the TMS is checked to see if there is an explicit expiry date allocated to teh tape. You may recatalog it, but the TMS will still kill it off at expiry date.

Why are these tapes uncatalogued - sort that out and your problem will go away. Prevent the problem rather than solve it.
Back to top
View user's profile Send private message
itzphaniz

New User


Joined: 02 Sep 2005
Posts: 39

PostPosted: Fri Mar 30, 2007 2:12 pm
Reply with quote

expat thanks for the suggestion. Could help me out with the JCL please for this IDCAMS function. I'll checout the expiry date for the tapes.

Thanks~
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 30, 2007 2:20 pm
Reply with quote

The JCL is simple
Code:

//IDCAMS   EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN    DD *

A guide to the statements to use is here
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2I230/16.0?DT=20040628101835
Back to top
View user's profile Send private message
itzphaniz

New User


Joined: 02 Sep 2005
Posts: 39

PostPosted: Fri Mar 30, 2007 3:04 pm
Reply with quote

Xpat-
from the manual wat i get is that even for re-cataloguing we need to spcify the volser. But that is main problem. We just submit a job from a web interface. Based on the dates and various parameters chosen, we get a filename.[Now this is dynamic, coz the selection of dates and parameters may vary]. So for a specific combo we may find the Volser and run the IDCAMS step. But for the many to many kinda of mapping like ours, this may not be useful.. I hope i'm clear
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Mar 30, 2007 3:09 pm
Reply with quote

Yes, it's clear. Change the JCL from the web submitted job to catalog the tape and your problem is solved.

As for specifying the volser, yes you have to. All the catalog is, is a pointer to the volume and device type on which a datset resides. The OS goes to the catalog and if it can not find the dsn entry then the job will fail with dataset not found.
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: Fri Mar 30, 2007 11:11 pm
Reply with quote

Hello,

You can do what you need with IEHPROGM.

Quote:
IEHPROGM can be used to catalog a non-VSAM sequential, ISAM, partitioned, or BDAM data set in a CVOL or an integrated catalog facility catalog. The program catalogs a data set by generating an entry, containing the data set name and associated volume information, in the index of the CVOL


If your storage management people are not familiar with this, you can use IEFBR14 with a DD statement like
Code:
//MYTAPE  DD DSN=dsn,UNIT=(CART,,DEFER),DISP=(OLD,CATLG),VOL=SER=xxxxxx


If you have several tapes to be cataloged, you can do it in one BR14 step but make sure that all but the first DD statement specifies UNIT=AFF=MYTAPE. While you will allocate the one tape drive, no mounts will be issued for any of the tapes. The DEFER tells the system not to call for a mount until the dataset is opened and with IEFBR14 it will not be opened.
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: Fri Mar 30, 2007 11:15 pm
Reply with quote

Hello,

One more thing - mentioned above - if your dataset spans multiple volumes, include all of the volsers. icon_smile.gif
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 REASON 00D70014 in load utility DB2 6
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top