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

How do I exclude 1 volume of a 134 volume Tape Dataset??


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

New User


Joined: 27 Feb 2008
Posts: 3
Location: Ireland

PostPosted: Thu Feb 28, 2008 6:36 am
Reply with quote

Hi,
I have a Tape Dataset which consists of 134 physical volumes, one of which is missing or lost - eg Volume N99999. I am comparing this Tape Dataset against 20 others using the Fileaid Utility Program.

However the job abends as a result of the missing volume.

I still need to compare the other 133 volumes to ensure all the records on these are contained on the other 20 Tape Datasets

I realise I could specify all 133 available volumes in the parm VOL=SER=(Vol1,Vol2,.....Vol133) which would be very laborious but I guess I have faith in there actually being a logical method of excluding the missing volume.

Therefore my question is:
- Does anyone know of any way or statement that allows me to exclude just the missing or lost volume in my JCL, rather than specify all 133 available ones? Or even any other workaround??

Any help would be much appreciated.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Feb 28, 2008 6:41 am
Reply with quote

Normally, we wait a small period to see if any replies show up from our quireies....
CICS Guy wrote:
Back in my VSE days, I'd just mount a tapemarked volume and respond to the error messages with an 'ignore'......
I'd assume the that can be done with MVS, but I don't know for sure.....
Is there anything I can add?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Feb 28, 2008 7:27 am
Reply with quote

Hello,

I'm not aware of any "command" that would let you "skip a volume", but you might create a "new" empty volume with the same volume serial number and volume sequence number as the missing physical volume.

Once the volume was initialized, i'd create new headers and trailers (physical files 1 and 3) and in the second physical file, write one "dummy" record with the proper dcb info. This may or may not be trivial depending on how tightly controlled your "tape" environment is.

You might talk with your storage management and see if they have a recommendation on how to re-create the missing volume or if they have some alternative.
Back to top
View user's profile Send private message
Paul Reynolds

New User


Joined: 27 Feb 2008
Posts: 3
Location: Ireland

PostPosted: Thu Feb 28, 2008 4:05 pm
Reply with quote

Thanks for the replies guys.

CICS Guy - No the job just abends, there is no message to respond to.

Dick - I have already talked to Storage Management. They didn't suggest your option or any alternative. Good idea but I think I'd be quicker hardcoding the available volumes.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Thu Feb 28, 2008 9:15 pm
Reply with quote

Hi Paul,

Quote:
I think I'd be quicker hardcoding the available volumes.
Might be quicker, but i'd suggest running a smaller test with a "missing" volume sequence number (say a test file of 3 volumes) to be sure you won't pass 100+ before hitting an "out of seq" abend.
Back to top
View user's profile Send private message
Paul Reynolds

New User


Joined: 27 Feb 2008
Posts: 3
Location: Ireland

PostPosted: Thu Feb 28, 2008 9:25 pm
Reply with quote

Thanks, will do that.

Paul.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Feb 28, 2008 9:34 pm
Reply with quote

The only thing I can think of is ............

Copy the dataset to another tape dataset, using DISP=(,CATLG,CATLG) which will keep the accumulated data up until that point, and then do a volume restart ( Can't for the life of me recall the syntax for it ) using DISP=MOD at the next available volume sequence number.

Apart from that, Dicks' dummy volume idea is the next best thing.
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Feb 28, 2008 9:51 pm
Reply with quote

Paul Reynolds wrote:
CICS Guy - No the job just abends, there is no message to respond to.
Huh?
What is the error message?
What do you do when the missing volume is needed to be mounted?
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Fri Feb 29, 2008 3:43 am
Reply with quote

Hi Expat,
this is what you are unable to recall icon_smile.gif

Code:
//            VOL=(,,3) 


if you want to start from 3rd volume ie. the volume sequence number


Gerry
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Feb 29, 2008 12:43 pm
Reply with quote

Thanks Gerry, Saved me a trek to the JCL reference,

Knew it was something like that - but couldn't recall which comma it was
Must have been yet another senior moment icon_eek.gif
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 Exclude rows with > than x occurre... DFSORT/ICETOOL 6
Search our Forums:

Back to Top