markmorgan
Programmer
In the COBOL standards, when is/should the LENGTH OF verb (be) evaluated? At run-time or compile time?
The reason I ask is that I am used to using IBM OS/390 and Microfocus COBOL which both evaluate this at run-time and give correct lengths for varying length group levels (OCCURS DEPENDING ON). I am current using Fujitsu Siemens BS2000 COBOL and it appears to be evaluating it at compile time and always giving the maximum length...
It looks like I am going to have to re-code everything using the LENGTH intrinsic function to get arounf this 'feature'.
Mark.
The reason I ask is that I am used to using IBM OS/390 and Microfocus COBOL which both evaluate this at run-time and give correct lengths for varying length group levels (OCCURS DEPENDING ON). I am current using Fujitsu Siemens BS2000 COBOL and it appears to be evaluating it at compile time and always giving the maximum length...
It looks like I am going to have to re-code everything using the LENGTH intrinsic function to get arounf this 'feature'.
Mark.