TACL Reference Manual
UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual—429513-018
8-21
ASSIGN Command
ASSIGN Command
Use the ASSIGN command to assign names of actual files to logical file names used in
programs (such as those written in COBOL, FORTRAN, and other programming
languages) and, optionally, to specify the characteristics of such files. If you omit the
parameters of the ASSIGN command, ASSIGN displays the assigned values for all
assignments currently in effect.
logical-unit
is the name to which a file name or file attributes are assigned. For logical-
unit, specify one of these:
*. logical-file
program-unit.logical-file
logical-file
Both program-unit and logical-file names consist of 1 to 31 alphanumeric,
hyphen (-), or circumflex (^) characters.
The exact meanings of program-unit, the asterisk (*), and logical-file depend on the
application; in general:
•
program-unit is the name used in the source program to which the file-name
assignment is to apply.
•
* applies the assignment to all program units in the object program file being run.
•
logical-file is the name of the file as given in the source program.
For details on treatment of ASSIGN and PARAM commands by other programming
languages, see the appropriate language manual.
actual-file-name
is the name of the actual physical file. A partial file name is not expanded;
however, the application process can expand the file name using the default
information passed in the startup message.
If you omit both actual-file-name and create-open-spec, the current
assignment value for logical-unit is displayed.
If you omit actual-file-name but include create-open-spec, spaces are
passed in the actual-file-name field of the assign message.
create-open-spec
is a file-creation or file-open specification that sets certain file attributes. For
create-open-spec, specify one of these:
ASSIGN [ logical-unit [ , [ actual-file-name ]
[ , create-open-spec ] ... ] ]