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
 

 

Gerner Tape Dataset w/o VOLSER

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

New User


Joined: 08 Mar 2007
Posts: 5
Location: St Louis

PostPosted: Tue Mar 20, 2007 7:25 pm    Post subject: Gerner Tape Dataset w/o VOLSER
Reply with quote

I need to gener a tape data set either to another tape or DASD. But I don?t know the VOLSER for the ?from? dataset. Is there a way to do this?
I always thought you needed to know the VOLSER.
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 20, 2007 7:30 pm    Post subject:
Reply with quote

What do you know about the tape ?

If you use BLP processing you will need to know the RECFM & LRECL

Do you know the dataset name that you want to copy, if so, 3.4 will tell you the volser if it is catalogued.

How come you don't know the volser ?
Back to top
View user's profile Send private message
JamesK

New User


Joined: 08 Mar 2007
Posts: 5
Location: St Louis

PostPosted: Tue Mar 20, 2007 7:34 pm    Post subject:
Reply with quote

We are generating the JCL in a web based system and sending the JCL to the mainframe for execution.

I do know the RECFM and LRECL.
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 20, 2007 7:41 pm    Post subject:
Reply with quote

If you are generating the JCL and sending it to process on the mainframe, then hopefully you will know the dataset name of the output from this process, and if it will be catalogued.

May I suggest that you create the output onto DASD initially, use this to be copied onto tape or whatever and catalog the output from this step. A GDG might be useful, allowing you to keep up to 255 versions of the created dataset.

If you have a schedule package you might be able to use event triggers to trigger a copy job from DASD to tape, and include the date / time stamp in the dataset name to make it easier to find when a dataset was created should you need it later on.

Just a couple of suggestions that might make your life easier.
Back to top
View user's profile Send private message
vin78dotcom
Warnings : 2

New User


Joined: 06 Dec 2005
Posts: 7
Location: pune

PostPosted: Wed Mar 21, 2007 3:12 pm    Post subject:
Reply with quote

hi,
the problem is like the input or the from dataset is uncataloged...
so in any processing including copying the dataset ...we need to specify the VOLSER...
even the
LISTCAT ENT('tapename') . and the 3.4 ...wont work...since the tape is uncatalog
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 21, 2007 3:44 pm    Post subject:
Reply with quote

First question - is why the input dataset is uncatalogued. If it is catalogued then there is much less of a problem to resolve. Where is it created.

Do you have a tape management package that you could interface with.

Do you know the dataset name of the input dataset.
Back to top
View user's profile Send private message
vin78dotcom
Warnings : 2

New User


Joined: 06 Dec 2005
Posts: 7
Location: pune

PostPosted: Wed Mar 21, 2007 3:57 pm    Post subject:
Reply with quote

hi,
we have the dataset name.
we cant see it using 3.4 but we can view its VOLSER using TMSDSN utility...
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 21, 2007 4:04 pm    Post subject:
Reply with quote

How is the input dataset created ?
and why can it not be catalogued at creation time ?

By getting the dataset catalogued you will have the easiest solution.
Back to top
View user's profile Send private message
vin78dotcom
Warnings : 2

New User


Joined: 06 Dec 2005
Posts: 7
Location: pune

PostPosted: Wed Mar 21, 2007 4:22 pm    Post subject:
Reply with quote

i am not sure icon_sad.gif
thats wht the problem is!!!
is there any way to get the VOLSER with just the name of uncataloged dataset...
can you suggest a solution .. difficult is also fine...
Back to top
View user's profile Send private message
vin78dotcom
Warnings : 2

New User


Joined: 06 Dec 2005
Posts: 7
Location: pune

PostPosted: Wed Mar 21, 2007 4:31 pm    Post subject:
Reply with quote

i found that the JCL in which, dataset is getting created...has parameter given as
UNIT=(VTSTAPE,,DEFER),VOL=PRIVATE
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 21, 2007 4:35 pm    Post subject:
Reply with quote

You can get the volser from TMSDSN as you have said. From what I can recall from tape management software you can also get the date and time that the dataset was created. This may help eliminate some potential errors. Don't forget that the TMSDSN will still maintain all of the previous versions of this dataset in its database until a particular tape is written to again.

You can get the volser from TMSDSN using this information, you know the RECFM & LRECL, so now know what you need to know to copy the tape.

In my opinion this is NOT the safest way to do it, meaning it may be worth the effort to spend an hour or two finding out where the dataset is created and if it is possible to get it catalogued.

Do you have a scheduling package, which can register when the dataset has been created & catalogued and trigger a copy job which copies the dataset and then deletes it ready for the next process.

If not, then the JCL generated from the web application would need to be changed to (a) Get the volser using the TMSDSN method, maybe REXX (b) if you use REXX - you can invoke the copy process from within the REXX once you have the volser.

As I said above, it may be messy and it may be unsafe, and if I was your manager I'd not be 100% happy doing it this way. In fact I'd be less than 50% happy.
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 21, 2007 4:37 pm    Post subject:
Reply with quote

Great - if you can get that changed to DISP=(,CATLG,DELETE) you're there !!!

The copy job can access the dataset with DISP=(OLD,DELETE,KEEP) which deletes the dataset on sucessful copy of it.
Back to top
View user's profile Send private message
vin78dotcom
Warnings : 2

New User


Joined: 06 Dec 2005
Posts: 7
Location: pune

PostPosted: Wed Mar 21, 2007 5:20 pm    Post subject:
Reply with quote

Thanks for the reply. But copying the file is unrealistic in our scenario.
Is there a way by which we can achieve this in JCL. Any utility which wud help us finding the VOLSER. [Without using REXX]
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 21, 2007 5:23 pm    Post subject:
Reply with quote

Then why was the original point of this thread to copy the damned tape !!!
Back to top
View user's profile Send private message
vin78dotcom
Warnings : 2

New User


Joined: 06 Dec 2005
Posts: 7
Location: pune

PostPosted: Wed Mar 21, 2007 5:38 pm    Post subject:
Reply with quote

sorry for all the confusion ...
Actually the tape is getting created in of the JCLs which i suppose we cant change....
and we need to make a copy of the tape in of the new JCLs...and NDM it to different region
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 21, 2007 5:49 pm    Post subject:
Reply with quote

Quote:
Actually the tape is getting created in of the JCLs which i suppose we cant change....
and we need to make a copy of the tape in of the new JCLs...and NDM it to different region

If you can't change the JCL yourself then talk to the people responsible for the JCL and get them to change it. Just be sure that you understand what you need and that they do too.

Why do you need to copy the file to NDM it. What's wrong with using the original file.
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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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