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 Usergroups Profile Log in to check your private messages Log in
 

 

JCL utility to know Vol serial for uncatalogued Dataset
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: JCL utility to know Vol serial for uncatalogued Dataset
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: 8593
Location: Back in jolly old England

PostPosted: Mon Mar 26, 2007 3:00 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Mar 26, 2007 3:46 pm    Post subject:
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

Site Director


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

PostPosted: Mon Mar 26, 2007 9:38 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 27, 2007 12:20 pm    Post subject:
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

Site Director


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

PostPosted: Tue Mar 27, 2007 7:46 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Tue Mar 27, 2007 7:53 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Mar 28, 2007 12:26 pm    Post subject:
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

Site Director


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

PostPosted: Wed Mar 28, 2007 7:24 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Thu Mar 29, 2007 7:38 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Mar 29, 2007 7:44 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Mar 30, 2007 12:34 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Mar 30, 2007 2:20 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Mar 30, 2007 3:09 pm    Post subject:
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Best IMS DB Unload Utility jjabez10 IMS DB/DC 12 Thu Sep 22, 2016 11:15 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts Any docs / links for isub- cobol comp... SRICOBSAS COBOL Programming 4 Fri Aug 26, 2016 2:35 pm


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