Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

SOURCE option

The parameters for this option determine whether the compilation unit will be read from SYSDTA, from a cataloged BS2000 file, from a PLAM library or from a POSIX file.

Format

SOURCE = *SYSDTA / <filename 1..54> / <c-string 1..1024 with-low> / *LIBRARY-ELEMENT(...)


*LIBRARY-ELEMENT(...)


|

LIBRARY = <filename 1..54>


|

,ELEMENT = <composed-name 1..40>(...)


|


<composed-name>(...)


|


|

VERSION = *HIGHEST-EXISTING / *UPPER-LIMIT / <composed-name 1..24>


SOURCE = *SYSDTA
The compilation group is read from the SYSDTA system file. In interactive mode, this is assigned to the terminal by default. If SYSDTA was assigned to the compilation unit file with the ASSIGN-SYSDTA command before starting the compilation run, the SOURCE option may be omitted.

SOURCE = <filename 1..54>
The <filename> parameter is used to assign a cataloged file. After compilation there is a TFT entry for the link name SRCFILE, which is linked with the file name <filename>. The file must be “SYSDTA-compatible”, i.e. an ASSIGN-SYSDTA command for this file must run error-free.

SOURCE = <c-string 1..1024 with-low>
If the POSIX subsystem is available, this parameter can be used to request a source file from the POSIX file system. <c-string> defines the name of the POSIX file. If <c-string> does not include a directory name, the compiler will look for the source file under the specified file name in the home directory of the current BS2000 user ID. If the file is in any other directory, <c-string> must include the absolute path name.

This operand is not available in COBOL-BC.

SOURCE = *LIBRARY-ELEMENT(...)
This parameter specifies a PLAM library and an element (member) held in that library.

LIBRARY = <filename 1..54>
Name of the PLAM library in which the compilation group is stored as an element. After compilation there is a TFT entry for the link name SRCLIB, which is linked with the file name <filename> of the PLAM library.

ELEMENT = <composed-name 1..40>(...)
Name of the library element in which the compilation group is stored.

VERSION = *HIGHEST-EXISTING / *UPPER-LIMIT / <composed-name 1..24>
Version designation of the library element. If no version or *HIGHEST-EXISTING is specified, the compiler reads the version of the element with the highest version designation present in the library. If *UPPER-LIMIT is specified, the compiler reads the version of the element with the highest possible version number (indicated by LMS with “@”).