View previous topic :: View next topic
|
Author |
Message |
luttapi
New User
Joined: 05 Jun 2007 Posts: 24 Location: kerala
|
|
|
|
HI,
I want to add a counter at the 57th byte to 61th byte of the record.
suppose my input records are follows:
aaaaaa
bbbbbb
cccccc
ddddd
ffffffff
ggggg
hhhhh
output should be
aaaaaa 00001
bbbbbb 00002
cccccc 00003
ddddd 00004
ffffffff 00005
ggggg 00006
hhhhh 00007 |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Here's a DFSORT job that will do what you asked for:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
INREC OVERLAY=(57:SEQNUM,5,ZD)
/*
|
|
|
Back to top |
|
|
|