View previous topic :: View next topic
|
Author |
Message |
Sathish Gurumoorthy
New User
Joined: 12 Feb 2009 Posts: 33 Location: Chennai, India
|
|
|
|
I have an input file with LRECL 274 and format FB
i want to copy the input file to a output file with header and trailer.
Header should be current julian date YYDDD at position 10 and trailer should be the total detail record count in position 1
can anyone help on this? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
You can use a DFSORT job like the following:
Code: |
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file (FB/274)
//SORTOUT DD DSN=... output file (FB/274)
//SYSIN DD *
OPTION COPY
OUTFIL HEADER1=(10:YDDDNS=(YD)),
TRAILER1=(COUNT=(M11,LENGTH=5))
/*
|
|
|
Back to top |
|
|
|