View previous topic :: View next topic
|
Author |
Message |
hmurali Warnings : 1 New User
Joined: 08 Mar 2005 Posts: 17
|
|
|
|
SYSEX200 DD DSN=&HLQ..&DBCOPY..SEX200&LOCAT&GEN,
DISP=(,CATLG),
UNIT=CART,VOL=(,RETAIN,,,REF=*.SYSEX175),
LABEL=(75,SL,EXPDT=99000),
RECFM=FB,LRECL=4096,BLKSIZE=16384,
DCB=SYS3.GDG.MODEL
What does the REF=*.sysex175 mean?
Please let me know also what happens if two dd statement refer back to the same SYSex175 clause. |
|
Back to top |
|
|
cpuhawg
Active User
Joined: 14 Jun 2006 Posts: 331 Location: Jacksonville, FL
|
|
|
|
REF tell the system to obtain volume serial numbers from an earlier DD statement. Your DD statement indicates you are trying to add the 75th dataset to a set of tapes that already has 74 datasets.
If two DD statements refer back to the same SYSEX175 DD statement, it is perfectly normal as long as the two DD statements are not in the same job step. If they were in the same step, there would be a contention issue between the two DD statements both trying to mount the same volume serial numbers. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
The REF parameter is a "refer-back". It refers back(wards) to a prior dd statement. Do not refer to a dd in a step not yet executed.
In your case it is telling the system to create "this" file(&HLQ..&DBCOPY..SEX200&LOCAT&GEN) on the same volume that the referred-to dd is on (=*.SYSEX175). |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Just to close the loop, the SYSEX175 DD stmt should contain the RETAIN param to keep the vol mounted until it's used by SYSEX200.
BTW, if the system needs (and can't get) a tape drive, it may dismount the vol anyway and remount it when the drive becomes available again. |
|
Back to top |
|
|
|