Notice I used only 1 blank in the BEGIN condition rather than 5 as you did.
BEGIN=(3,5,CH,NE,C' '),
DFSORT pads the constant on the right with blanks to the length of the field, so in this case the C' ' will be padded to 5 blanks. This is really handy when you have a large field, e.g. 256 bytes - just code one blank instead of 256 blanks.
It works fine, thanks very much. It´s great. Now, I´ve found that I´ve got to go further, and, this time it´s more complicated to explain and I´m afraid I can´t do this icetool.
I don´t know if it is clear. What I´m trying to do is to repeat Column A as many times as Column B - C says with the information in each case, (first time first information, second time second information and so on).
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Quote:
How about any other repetitive character?
It would have been very easy if you could have something like… (1,10,CH,EQ,10C'-')
Nope. Just pads with blanks for C constant or binary zeros for X constant.
Of course, if you really need 10C'-', you could use INREC OVERLAY to add 10C'-' at the end of the record, compare to that with OUTFIL INCLUDE and then remove it with OUTFIL BUILD. Or you could generate a Symbol using INREC with 10C'-' and use the symbol in INCLUDE.
How about any other repetitive character?
It would have been very easy if you could have something like… (1,10,CH,EQ,10C'-')
Nope. Just pads with blanks for C constant or binary zeros for X constant.
Of course, if you really need 10C'-', you could use INREC OVERLAY to add 10C'-' at the end of the record, compare to that with OUTFIL INCLUDE and then remove it with OUTFIL BUILD. Or you could generate a Symbol using INREC with 10C'-' and use the symbol in INCLUDE.
Yeah... I have seen couple of examples by you using symbol at this forum.