Alias:
DO-SYNTAX-CHECK
The compilation run is terminated after checking the syntax of one or more source programs. No object code is generated.
CHECK-SYNTAX | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
SOURCE =
This option specifies one or more source programs for which a syntax check is to beperformed.
A source program can be read from the system file SYSDTA, a cataloged BS2000 file, a PLAM library or a POSIX file.
Note that if the source program is entered from SYSDTA, only one source program can be read per CHECK-SYNTAX statement.
SOURCE = *SYSDTA
Input is accepted from the system file SYSDTA. SYSDTA is assigned to the terminal in interactive mode but can be reassigned to a cataloged file or a PLAM library element with the ASSIGN-SYSDTA command (see also "Notes on input via SYSDTA (C/C++-Compiler, #39)").
SOURCE = <filename 1..54>
<filename> is used to specify the name of a cataloged BS2000 file.
SOURCE = <posix-pathname>
Only a file name is permitted as <posix-pathname>. See "Compiler I/O in the POSIX file system" for a description of the term <posix-pathname>.
SOURCE = *LIBRARY-ELEMENT(...)
This option is used to specify a PLAM library and an element in it.
LIBRARY = <filename 1..54>
<filename> assigns the name of a PLAM library.
LIBRARY = *LINK(...)
LINK-NAME = <filename 1..8>
<filename> is the link name for a PLAM library. The link name must be assigned to the library name by means of the ADD-FILE-LINK command before the compiler is called.
ELEMENT = <composed-name 1..64 with-under>(...)
<composed-name> identifies the fully-qualified name of an element from the PLAM library specified earlier. The element must be of type S.
VERSION = *HIGHEST-EXISTING
If the element specification contains no version ID, the compiler uses the element with the highest existing version.
VERSION = <composed-name 1..24 with-under>
The compiler uses the element with the specified version.
Note
Implicit inclusion for template instantiation does not take place (unlike to the COMPILE statement).