Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

continuation character 1

Status
Not open for further replies.

debakadeb

Programmer
Oct 13, 2001
2
US
What is the continuation character when you want to continue a display to then next line in the source code?
 
The easiest way to continue a DISPLAY stmt to the next line (if that's what you meant) is:

Code:
DISPLAY 'word1 '
        'word2 '
        'word3'
This displays as:

word1 word2 word3

You can also intersperse Datanames for display.

To continue a literal in a VALUE clause or in a Procedure Division stmt (including the DISPLAY stmt, if you like) is:

Code:
 Cols 7    12                               72
      ^    ^                                ^
                   'xxxxxxxxxxxxxxxxxxxxxxxxx
      -            'x'

HTH, Jack.
 
Thanks Jack,

I was trying to continue a literal (it was that little hyphen that was missing). That was one of the things my instructor failed to go over in class -- and I tend to be wordy so I needed that little bit of information :).

Thanks for responding.

Deb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top