View previous topic :: View next topic
|
Author |
Message |
itzphaniz
New User
Joined: 02 Sep 2005 Posts: 39
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
itzphaniz
New User
Joined: 02 Sep 2005 Posts: 39
|
|
|
|
Xpat-
Is ADRDSSU a separate utility? Do we have to pass any PARM parameters to it? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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. . . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Yeah, but don't hold your breath |
|
Back to top |
|
|
itzphaniz
New User
Joined: 02 Sep 2005 Posts: 39
|
|
|
|
>>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! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
itzphaniz
New User
Joined: 02 Sep 2005 Posts: 39
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
You are quite clear
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
And look out for multi volume datasets |
|
Back to top |
|
|
itzphaniz
New User
Joined: 02 Sep 2005 Posts: 39
|
|
|
|
>>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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
itzphaniz
New User
Joined: 02 Sep 2005 Posts: 39
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
Back to top |
|
|
itzphaniz
New User
Joined: 02 Sep 2005 Posts: 39
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
One more thing - mentioned above - if your dataset spans multiple volumes, include all of the volsers. |
|
Back to top |
|
|
|