Skip to main content

Problem:

I'm getting a precompile error when I try to generate a program with AMB 6.0 that generates fine with AMB 5.0.  AMB 6.0 doesn't handle the continuation of the literal shown below.

SCOBOL:

              ---- ----1---- ----2---- ----3---- ----4---- ----5---- ----6---- ----7--

              DISPLAY 'EXCEPTION FILE IS EMPTY.JOB ENDED NORMALLY WITH  

              ...     ' RETURN-CODE 0002'                               

Precompile error generated by AMB 6.0

              DISPLAY 'EXCEPTION FILE IS EMPTY.JOB ENDED NORMALLY WITH PG010300 ??? Error: Invalid literal continuation on line (1520)

???

Resolution:

I found this reference in our docs. The old version generator would allow mal-formed continuations to go through without errors. The mal-formed continuations could actually result in text strings to be truncated with no error message. The AMB generator is now set to catch these coding errors.

To continue a long string in S-COBOL the first line should have an ending quote.

I've tested with the && and the syntax that works for me is to put the ending quote on the first line and then put this syntax on the second line to finish the continued text.

... && 'continued text here'

Old KB# 2531

#MFDS
#EnterpriseDeveloper