Limit the display of records while copy.

IBM's Sort Product, ICETOOL, ICEMAN and ICEGENER.
Post Reply
Seema Jain
New Member
Posts: 4
Joined: Sun Dec 20, 2015 11:58 pm

Limit the display of records while copy.

Post 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.
Last edited by Anuj Dhawan on Tue Feb 09, 2016 12:04 pm, edited 1 time in total.
Reason: Added code tags.
William Collins
Global Moderator
Global Moderator
Posts: 490
Joined: Sun Aug 25, 2013 7:24 pm

Re: Limit the display of records while copy.

Post 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.
Seema Jain
New Member
Posts: 4
Joined: Sun Dec 20, 2015 11:58 pm

Re: Limit the display of records while copy.

Post 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
/*
Last edited by Anuj Dhawan on Tue Feb 09, 2016 12:05 pm, edited 1 time in total.
Reason: Added code tags.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DFSort, ICETOOL, ICEMAN, ICEGENER.”