The End-DS is output before the last subfield of a DS. This seems to only happen if the DS is the last D-Spec and is followed only by a C/FREE and free form C-Spec lines of code.
Fixed format RPG:
D MYFLD1 S 3a
D MYDS DS QUALIFIED
D MYFLD4 3a
D MYFLD5 +3 LIKE(MYFLD1)
C/FREE
*inLR = *ON;
return;
The
End-DS
is output before the last subfield of a DS. This seems to only happen if the DS is the last D-Spec and is followed only by a C/FREE and free form C-Spec lines of code.Fixed format RPG:
Wrong output:
Expected output: