COBOL Manual for TNS/E Programs (H06.03+)
Program Execution
HP COBOL Manual for TNS/E Programs—520347-003
12-7
ASSIGN Command
block-size
is an integer accepted by TACL as specifying block size. block-size
determines the block size.
Usage Considerations:
•
Places for ASSIGN Commands
You can give ASSIGN commands individually at the TACL prompt before you enter
the RUN command, or you can place the ASSIGN commands in an EDIT-format
file and use the OBEY command to execute all the commands in the file. You could
also include the RUN command in the OBEY command file.
•
Special COBOL Names for Operating System Files
See Operating system file names and Special names for operating system files.
•
Interaction Between ASSIGN Command and OPEN Statement
The interaction between the exclusion-specification of the ASSIGN
command and the exclusion-mode of the OPEN statement is:
°
If an exclusion-mode is given in the OPEN statement, that value is used
regardless of any ASSIGN command settings.
°
If the OPEN statement has no exclusion-mode but the ASSIGN command
for the file does give an exclusion-specification, the ASSIGN
command value is used.
°
If neither the exclusion-mode of the OPEN statement nor the exclusion-
specification of the ASSIGN command is present, the COBOL default
mode is active (see OPEN).
Note. To see what ASSIGN commands are currently in force, enter just ASSIGN followed by a
carriage return.
Example 12-2. #TEMP
17>ASSIGN temp-file,#TEMP
18>RUN program
...
* File created on run-time default volume
OPEN I-O temp-file
...
* File purged
CLOSE temp-file
...
* New empty file created
OPEN I-O temp-file
...
* File automatically closed and purged
STOP RUN.
...










