Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
A little more detail would have been helpful.
Let's say you want to replace a PD field in positions 11-15 with PD zeros. You can use INREC, OUTREC or OUTFIL OVERLAY to do it. For example, you could use these DFSORT statements:
Code:
OPTION COPY
INREC OVERLAY=(11:+0,TO=PD,LENGTH=5)
or these DFSORT statements:
Code:
OPTION COPY
INREC OVERLAY=(11:X'000000000C')
If you need more specific help, give more details of what you're trying to do.
I have a similar scenario, I am creating an output file and I need packed zeroes at the 21st character of teh output file.
when this file is read, the packed zeroes will be read into PIC S9(15)V9(3) COMP-3. How do I create the packed zeroes in the o/p file??
Iam trying to create the ourec from the input file. But for positions, 194:10 char in o/p file and similarly for 212:4 char, 285:10 chars, there is no input in the inrec and i have to create the output with packed zeroes
Is the below syntax correct??