The LABEL (LABEL ODT) command attaches a file name to the ODT from which you enter the command. You cannot use this command at a remote ODT.
When you enter this command, the MCP clears the screen of the ODT and then displays the file name you have entered on line 2 of the display, regardless of the setting of the FIRST option of the TERM (Terminal) command.
When you assign a logical file name to an ODT, automatic display mode (ADM) is stopped until one of the following conditions takes place:
-
You enter an ADM (Automatic Display Mode) command.
-
You close the program.
-
You enter the command CL SC <unit number>.
Syntax

Explanation
LABEL <file name>
Attaches the specified file name to the ODT from which you enter the command. When a program attempts to open an input ODT file with a file name that matches the label name, the system assigns the file to the matching ODT. A program can override this normal assignment if it specifies the UNITNO file attribute. When a program attempts to open an output ODT file, the system assigns a SCRATCH ODT (an ODT that has no label specification).
Any input to the attached file must be preceded by the delta character. All other input is treated as normal ODT input.
To indicate end-of-file (EOF) to the attached file, enter a delta character followed by ?END.
Example
LABEL ODTINPUT
ODTINPUT.
PER SC
-------SC STATUS------- 1 S C R A T C H 3 ODTINPUT
Considerations for Use
You can clear label assignment by using one of the following commands:
-
CL
-
RESTRICT
-
??MARC
A halt/load also clears label assignment.