mounting a multi-reel tape file



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

mounting a multi-reel tape file

Postby Daimy Peter » Thu Apr 21, 2011 4:25 pm

Which JCL subparameter allows for mounting a multi-reel tape file onto the same physical drive?
Daimy Peter
 
Posts: 1
Joined: Thu Nov 25, 2010 2:49 pm
Has thanked: 0 time
Been thanked: 0 time

Re: a jcl question

Postby Robert Sample » Thu Apr 21, 2011 6:05 pm

Look at UNIT=AFF
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: mounting a multi-reel tape file

Postby steve-myers » Thu Apr 21, 2011 9:03 pm

I think Daimy Peter means to mount the tape volumes serially on one drive. This is the JCL and system default. For a multiple volume disk dataset, the system will "mount" all the volumes on multiple drives; it's been more than 30 years since removable disk drives were a common option.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: mounting a multi-reel tape file

Postby NicC » Fri Apr 22, 2011 12:35 am

Common description of UNIT=AFF: use the same tape unit for this DD as for that DD. For a dataset spanning multiple tape volumes the same unit is used for the next tape as for the previous. You cannot, as far as I know, mount volume 1 of 2 on one unit and volume 2 of 2 on another unit.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: mounting a multi-reel tape file

Postby steve-myers » Fri Apr 22, 2011 1:08 am

For input -
//INPUT    DD  DSN=dataset-name,UNIT=(tape,2),
//             VOL=SER=(vol1,vol2),DISP=OLD

If the dataset is cataloged, you can omit the VOLUME parameter, and code UNIT=(,2).

For output -
//OUTPUT   DD  DSN=dataset-name,UNIT=(tape,2),DISP=(NEW,...)

None of this is very desirable any more since most shops use virtual tape of some sort, tape library systems, or tape drive attachments to auto load tape volumes.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post