View previous topic :: View next topic
|
Author |
Message |
rajandhla
Active User
Joined: 18 Oct 2005 Posts: 182 Location: Luton UK
|
|
|
|
Hi Guys,
My requirement there is file has a record layout has a variable with s9(12) comp3 ,starts from the position from 107 byte, in that file in need to enter the number 988567546732
using outrec control card for all the records in the file..
Please let me know,
Regards
Jai |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
An s9(12) comp3 field is a 7-byte PD field, so 988567546732 would be P'988567546732' (X'0988567546732C'). Here are two ways to do what you asked for with DFSORT:
Code: |
//S1 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
INREC OVERLAY=(107:+988567546732,TO=PD,LENGTH=7)
/*
|
Code: |
//S2 EXEC PGM=ICEMAN
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=... input file
//SORTOUT DD DSN=... output file
//SYSIN DD *
OPTION COPY
INREC OVERLAY=(107:X'0988567546732C')
/*
|
|
|
Back to top |
|
|
rajandhla
Active User
Joined: 18 Oct 2005 Posts: 182 Location: Luton UK
|
|
|
|
Thanks frank
Regards
jai |
|
Back to top |
|
|
|