i read a pli data file and want to replace values in null fields of db2 by '? 'depending on the indicator field.
For this purpose i use the findrep clause:
Code: Select all
OUTREC IFTHEN=(WHEN=INIT, FINDREP=(STARTPOS=71,ENDPOS=81, IN=C' 0?', OUT=C'? ?')),
the first 10 bytes are the data field and the 11th is the according indicator field as in db2.
Now i have a char field with length 60.
is there a facility to write the in= and out= string in a shorter way?
i know there is the '9X' for nine blanks.
but i need '9X' !! C'0' !! C'?'.
Is there a way to concatenate char expressions?
thanks in forward