hello,
I am having trouble with parse and unable to find what is wrong.
I have several records starting with '#', variable length and ending with blanks.
so I thought parsing the lines would work fine.
Except that I am not able to see what is the issue in the following:
thank you Garry
but it didn't make a difference .
Still getting the same error
Code:
SYSIN :
INREC PARSE=(%01=(STARTAFT=BLANKS,FIXLEN=4), +
%02=(STARTAT=C'#',ENDBEFR=C' '), +
*
%03=(FIXLEN=5)), +
BUILD=(%01,C' ',%02,C' ',%03,C' ')
SORT FIELDS=(01,40,CH,A)
WER813I INSTALLATION OPTIONS IN MFX LOAD LIBRARY WILL BE USED
WER268A INREC STATEMENT : SYNTAX ERROR
The following is a sample of the data in the input file:
LN3T.X33.BRTFILE L01P #BR85.ISX.CRB.wcrx.** 1043, 1301,
LN3T.X33.BRTFILE L01P #BR85.ISX.CRB.ctsx.** 1584 50
What I would like to get out of this sort is L01P as %01, #BR85.*.** as %02, and 1043, as %03.
The trouble is none of them start in the same position. %02 is variable length, and %03 could contain a comma.