@LANG
The @LANG statement is used to explicitly define the source language to Adabas Pre-Compiler.
The syntax of the statement is as follows:
Without this statement, Adabas Pre-Compiler checks for "*" in col. 7 or "DIVISION" in the first line of the source program, to determine that the source is in COBOL. PL/1 is assumed otherwise.
The following table lists the supported languages:
Language | Additional details |
COBOL | ANSI COBOL for all operating systems |
COBOL/II | COBOL/II or COBOL/LE for IBM |
COBOL/LE | COBOL/LE for IBM |
FORTRAN/VMS | FORTRAN 77 only for VMS |
PLI | PL/1 for all operating systems |
ADA | ADA language |
It is recommended to put the @LANG statement in the parameter’s file in order to avoid wrong language generation.