View previous topic :: View next topic
|
Author |
Message |
Smita Sebastian
New User
Joined: 30 May 2007 Posts: 7 Location: India
|
|
|
|
I have a fixed length sorted input file of length 80 bytes. My requirement is to copy bytes 10 to 80 of the input file to the output file. Hence the length of the resultant output file should be 70.
Thanks,
S |
|
Back to top |
|
|
cvadlamudi
New User
Joined: 19 Apr 2007 Posts: 68 Location: India
|
|
|
|
Hi,
Please use this step
Code: |
//S1 EXEC PGM=SORT
//SORTIN DD DSN=INPUTFILE FB/80
//SORTOUT DD DSN=OUTFILE FB/70
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTREC BUILD=(1:10,70)
/*
|
|
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Smita,
Your specification of bytes 10 to 80 will give you a 71 byte record, not a 70 byte record
Garry. |
|
Back to top |
|
|
Smita Sebastian
New User
Joined: 30 May 2007 Posts: 7 Location: India
|
|
|
|
Hi -
Thankyou for your response. I shall try that out. It was a typo...I am expecting the output file to be bytes 11 thru 80 of the input file, hence 70 bytes.
Thanks,
S |
|
Back to top |
|
|
|