Skip to content

Source Code Formats

Source code formats

CitOESQL supports the following source code formats:

  • Fixed, which corresponds to traditional COBOL with the source code in columns 8-72 and the indicator in column 7.

  • Variable, which extends the right margin from column 72 to column 256 and the indicator column remains in column 7.

  • Free, or Terminal, format. In this format the indicator in column 1 is optional, source code can start in column 1 or 2 and extend to column 248.

The source code format is specified by the SOURCEFORMAT directive, for example:

 citoesql -sourceformat=variable gs.cbl

on the command line, or

 $SET SQL(sourceformat=variable)

at the start or a source file, or

 sourceformat=variable

or

 SQL(sourceformat=variable)

in directives file.

Back to top