Page 1 of 1

Copy first record

PostPosted: Mon Dec 24, 2007 1:59 pm
by madhavmannem
Hou to copy first record ?

Re: Copy first record

PostPosted: Mon Dec 24, 2007 9:59 pm
by Frank Yaeger
You can use a DFSORT job like this to copy the first record:

//S1    EXEC  PGM=ICEMAN
//SYSOUT    DD  SYSOUT=*
//SORTIN DD DSN=...  input file
//SORTOUT DD DSN=...   output file
//SYSIN    DD    *
  OPTION COPY,STOPAFT=1
/*