Space parameter while Copying GDG into Tape.

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

Space parameter while Copying GDG into Tape.

Postby Shanthi_Palani » Thu Sep 13, 2018 3:28 pm

Hi Experts,
Please help me with the below.
I have a PS file and it gets copied into a gdg file every month. This GDG file will reside in tape. I don't see anywhere we have given space parameter. On what basis it will take the space or it will copy the entire contents from the source file.

//Infile dd dsn= source PS file, display=she
//Outfile dd dsn=target GDG file, disp=(new,catlg),
//. Unit=cart,label=(2,SL), Volume=aff=*.output1

Actually this time the PS file is having large number of records as compared to other months(5 times than that of the prev month). And hence the jobs that copies this PS file failed with space abend as they didn't cater for the space correctly.
But this GDG file copy step went fine.
The said gdg job has series of backup datasets.

Thank you.
Posts: 10
Joined: Mon Oct 10, 2016 3:08 pm
Has thanked: 6 times
Been thanked: 0 time

Re: Space parameter while Copying GDG into Tape.

Postby steve-myers » Thu Sep 13, 2018 3:56 pm

The JCL SPACE parameter is ignored when the data set specified by the DD statement is assigned to a tape drive.

By the way, for at least the 1,000,000th time. There is no such thing as a "PS file." The correct term is "sequential data set." "PS" refers to a data set organization and is only used with the DSORG parameter in the DCB specification. Do not use it in any other context.

These users thanked the author steve-myers for the post:
Shanthi_Palani (Tue Oct 09, 2018 6:01 pm)
Global moderator
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Space parameter while Copying GDG into Tape.

Postby Terry Heinze » Thu Sep 13, 2018 10:44 pm

If you suspect you're going to need more than 5 tape volumes, use the VOL=(,,,N) parameter which will allocate N volumes of tape and N is a multiple of 5.
.... Terry
Terry Heinze
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 12 times
Been thanked: 11 times

Return to JCL


  • Related topics
    Last post