Skip to content

LN

FUNCTION

LN is a data declaration statement, which declares a link and file from Dictionary-IV that can be used in the script.

SYNTAX

LN link-name [, link-name ...]

link-name the name of the link where the data file is specified.

NOTES

  • All links must be declared prior to any procedure.
  • All links must be opened prior to performing file input or output.
  • Multiple links can be declared with one LN statement as long as the link names are separated by commas or spaces.
  • This command makes the associated data file, sort file, text file, format, and sort definitions in the link available to the script.
  • When a link is opened, data, sort, and text files can be specified other than the ones associated with the link. The ability to switch these files enables multiple physical files to be used with a single link definition. For more information on opening a link see the description of the OPEN command.

EXAMPLES

LN 4SSALDT
LN 4SCUSFL, 4SINVFL

SEE ALSO

CLOSE, LA, OPEN, section on Creating Scripts in the Script-IV Developer Guide.

From the Script-IV Language Reference, version 8.9.1. Open this page in the PDF