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
 

 

Tape dataset in JCL

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

New User


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

PostPosted: Thu Apr 19, 2012 6:57 pm    Post subject: Tape dataset in JCL
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: 1445
Location: Azeroth

PostPosted: Thu Apr 19, 2012 7:16 pm    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Thu Apr 19, 2012 7:35 pm    Post subject: Re: Tape dataset in JCL
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: 90
Location: chenna/i-

PostPosted: Thu Apr 19, 2012 7:55 pm    Post subject:
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: 645
Location: Pennsylvania

PostPosted: Thu Apr 19, 2012 8:12 pm    Post subject:
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: 90
Location: chenna/i-

PostPosted: Thu Apr 19, 2012 8:15 pm    Post subject:
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: 645
Location: Pennsylvania

PostPosted: Thu Apr 19, 2012 8:19 pm    Post subject:
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: 90
Location: chenna/i-

PostPosted: Thu Apr 19, 2012 8:25 pm    Post subject:
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: 645
Location: Pennsylvania

PostPosted: Thu Apr 19, 2012 8:31 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10201
Location: italy

PostPosted: Thu Apr 19, 2012 8:31 pm    Post subject: Reply to: Tape dataset in JCL
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Thu Apr 19, 2012 8:37 pm    Post subject: Reply to: Tape dataset in JCL
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: 1738
Location: Bloomington, IL

PostPosted: Thu Apr 19, 2012 8:42 pm    Post subject:
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    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 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 Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts stacking files on a tape Pedro JCL & VSAM 7 Wed Aug 17, 2016 11:11 pm
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm


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