Page 1 of 1

Copy 1 to 500 records from one file to another file

PostPosted: Fri Oct 05, 2007 7:42 pm
by kiran
how to copy 1 to 500 records from one file to another file by using jcl?

can anybody give the help ple...

Re: Copy 1 to 500 records from one file to another file

PostPosted: Fri Oct 05, 2007 10:04 pm
by Frank Yaeger
Here's a DFSORT job that will do what you asked for. SORTOUT must specify a MOD data set.

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  file1
//SORTOUT DD DISP=MOD,DSN=...  file2
//SYSIN    DD    *
  OPTION COPY,STOPAFT=500
/*

thank Q

PostPosted: Sat Oct 06, 2007 2:34 pm
by kiran
hi thank Q for giving the reply

Re: Copy 1 to 500 records from one file to another file

PostPosted: Sat Oct 06, 2007 11:47 pm
by Frank Yaeger
Glad I could help.