View previous topic :: View next topic
|
Author |
Message |
sivasaras
New User
Joined: 29 Sep 2007 Posts: 93 Location: chenna/i-
|
|
|
|
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 |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1744 Location: Tirupur, India
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
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 |
|
|
sivasaras
New User
Joined: 29 Sep 2007 Posts: 93 Location: chenna/i-
|
|
|
|
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 |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
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 |
|
|
sivasaras
New User
Joined: 29 Sep 2007 Posts: 93 Location: chenna/i-
|
|
|
|
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 |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
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 |
|
|
sivasaras
New User
Joined: 29 Sep 2007 Posts: 93 Location: chenna/i-
|
|
|
|
MS0740I2+052 NO AVAILABLE OFFLINE DEVICES ELIGIBLE FOR ALLOCATION
this is the error message in the jcl. |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
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 |
|
|
|