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

Tape dataset in JCL


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

New User


Joined: 29 Sep 2007
Posts: 93
Location: chenna/i-

PostPosted: Thu Apr 19, 2012 6:57 pm
Reply with quote

Hi,


I want to add a Tape dataset in my job.

That dataset was used by many applications.

From mon to thurs they are referring that dataset as Disk but on friday they are referring as TAPE.

Now if i want to add that dataset in my job means in DISP=SHR mode.

how to code in my jcl?

Please guide me.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Apr 19, 2012 7:16 pm
Reply with quote

when a job uses a tape dataset, the other jobs which require that tape would wait until the tape is available.
you cannot read a tape at two places at the same time.
Quote:
From mon to thurs they are referring that dataset as Disk but on friday they are referring as TAPE.
Could you please explain a little more in detail on whats happening.
Quote:
Now if i want to add that dataset in my job means in DISP=SHR mode.
You can add DISP=SHR but the tape dataset will not be shared.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Apr 19, 2012 7:35 pm
Reply with quote

sivasaras wrote:
Hi,


I want to add a Tape dataset in my job.

[...]
how to code in my jcl?

Please guide me.

If, as your question seems to imply, your program is using this data set only to read from, why do you think it would be defined differently from a data set residing on DASD?
Back to top
View user's profile Send private message
sivasaras

New User


Joined: 29 Sep 2007
Posts: 93
Location: chenna/i-

PostPosted: Thu Apr 19, 2012 7:55 pm
Reply with quote

Currently the dataset is coded as disp-shr mode in my jcl because the dataset is owned by some other upstream application.


now my question is i want to refer the dataset as disk from mon to thurs and frid i need to refer as TAPE

how i have to code that in my jcl for this scenario?
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Thu Apr 19, 2012 8:12 pm
Reply with quote

If the dataset is cataloged, then it should not matter.

Your JCL should not changed.

The catalog will tell the system where to look for the dataset.

Input datasets (and their names) should be device independent.
Back to top
View user's profile Send private message
sivasaras

New User


Joined: 29 Sep 2007
Posts: 93
Location: chenna/i-

PostPosted: Thu Apr 19, 2012 8:15 pm
Reply with quote

When my job referrring the dataset it is showing as Volume not available and it is abended.

So i want to overcome this issue in the next run.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Thu Apr 19, 2012 8:19 pm
Reply with quote

Since we have not seen your JCL or the actual error message, it is difficult to help.

Why are just finding out about this circumstance now?

Patient: If I wrap my elbow will it work better?

Doctor: You elbow does not need to be wrapped in order to work.

Patient: But the bone is sticking out of the skin.

Doctor: Why did you not say that before?
Back to top
View user's profile Send private message
sivasaras

New User


Joined: 29 Sep 2007
Posts: 93
Location: chenna/i-

PostPosted: Thu Apr 19, 2012 8:25 pm
Reply with quote

MS0740I2+052 NO AVAILABLE OFFLINE DEVICES ELIGIBLE FOR ALLOCATION


this is the error message in the jcl.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Thu Apr 19, 2012 8:31 pm
Reply with quote

From the tiny glimpse of information you have provided, it appears that there are no tapes drives online for which to mount the tape.

The message does not say 'Volume not available'. Or is that another message you didn't show us?

This is my best guess.

This has nothing to do with the JCL itself.

Call the operator and ask them to vary a tape drive online and try again.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Apr 19, 2012 8:31 pm
Reply with quote

why not talk to Your support ?
the chances of solving on a forum problems due to site setup/configuration are pretty slim
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Apr 19, 2012 8:37 pm
Reply with quote

If mon-thurs it is possible for two (or more) jobs to run with the same input dataset at the same time, that becomes a problem on Fridays.

Mon-thurs you have a resource which can be used simultaneously. Friday it becomes sequential-only.

Yes, something will have to change.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Apr 19, 2012 8:42 pm
Reply with quote

daveporcelan wrote:
From the tiny glimpse of information you have provided, it appears that there are no tapes drives online for which to mount the tape.

Or, possibly, that an incorrect or misspelled esoteric device is being used. Since sivasaras is too afraid to show us or anyone else the JCL, however, no more can be said.
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 Deleting a Tape file JCL & VSAM 14
Search our Forums:

Back to Top