Page 1 of 1

Limit the display of records while copy.

Posted: Mon Jan 04, 2016 4:22 pm
by Seema Jain
Hi,

Some of the files are on tape and have a very huge volume of data. I am trying to bring it on disk to see the records. Could anyone tell me how to limit the display of records on disk while copying from tape. I do not want take copy of al the data, I just want to see some sample data. I am using the following JCL:

Code: Select all

//STEP1 EXEC PGM=SORT 
//SYSOUT DD SYSOUT=* 
//SORTIN DD DSN=my.tape.dataset,DISP=SHR 
//SORTOUT DD DSN=my.disk.dataset, 
// DISP=(,CATLG,DELETE), 
// UNIT=WORK,SPACE=(CYL,(50,100),RLSE) 
//SYSIN DD * 
OPTION COPY 
/*
Can anyone please guide me on this. Thanks in advance.

Re: Limit the display of records while copy.

Posted: Mon Jan 04, 2016 4:56 pm
by William Collins
There are a number of ways. You can look at, amongst others to which these should lead you in the manual, STOPAFT and SAMPLE.

Re: Limit the display of records while copy.

Posted: Tue Feb 09, 2016 12:02 pm
by Seema Jain
Thanks for your help William Collins. This JCL has worked for me

Code: Select all

//STEP1 EXEC PGM=SORT 
//SYSOUT DD SYSOUT=* 
//SORTIN DD DSN=my.tape.dataset,DISP=SHR 
//SORTOUT DD DSN=my.disk.dataset, 
// DISP=(,CATLG,DELETE), 
// UNIT=WORK,SPACE=(CYL,(50,100),RLSE) 
//SYSIN DD * 
OPTION COPY 
STOPAFT=500
/*