akshatgarg
New User
Joined: 01 Jul 2005 Posts: 1 Location: Gurgaon,India
|
|
|
|
Hi,
I have a file which is in FBA format 909 bytes. But my application needs the file in FB format 908 bytes. I want to copy the data into the FB file. Can someone please advise?
Thanks,
Akshat |
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You failed to mention where the one byte of data is to be removed from - the beginning, the end, or somewhere in the middle. This would be your best option:
Code: |
//COPY EXEC PGM=SORT
//SORTIN DD DSN=FBA 909 ...
//SORTOUT DD DSN=FB 908 ...,RECFM=FB
//SYSOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OUTREC FIELDS=(1:2,908) <= strip first byte
<or>
OUTREC FIELDS=(1:1,908) <= strip last byte
|
|
|