NET/MASTER Network Control Language (NCL) Programmer's Guide
Working With Edit Files
Working With Files
106160 Tandem Computers Incorporated 12–103
The following screen shows the results of executing the commands:
(07:05) ----------------------------------------------------------------------
START OPSYS SEND EDIT GET $DATA2.JOHNNCLS.EDITFILE!
NNM1468 TEXT EDITOR - T9601B30 - (08MAR87)
NNM1456 CURRENT FILE IS $DATA2.JOHNNCLS.EDITFILE
NNM0999 *END*
START OPSYS EOF EDIT
START OPSYS SEND FUP PURGE $DATA2.JOHNNCLS.EDITFILE !
NNM1456 $DATA2.JOHNNCLS.EDITFILE PURGED.
NNM1456 1 FILE PURGED
NNM0999 *END*
_____________________________________________________________________________
---------- ------------------ NonStop NET/MASTER D30 ---------------- --------
M=>
To create an edit file (called EDITFILE) from an existing entry-sequenced file (called
ENTRYFIL), use the following EDIT command:
OPSYS SEND EDIT GET ENTRYFIL PUT EDITFILE
This command transfers all records from the entry-sequenced file to the edit file.
Note You must ensure that the record length of the entry-sequenced file is not too long, so that you can transfer
records to the edit file. If not, a message similar to the following is displayed:
NNM1468 TEXT EDITOR - T9601B30 - (08MAR87)
NNM1456 - WARNING -
NNM1456 INPUT RECORD LENGTH TRUNCATED TO 255 BYTES
Opening the File for Access
by NonStop NET/MASTER
MS
The UDBCTL OPEN command opens a file for access by NonStop NET/MASTER MS.
The following code segment uses the INTCMD verb to execute the UDBCTL OPEN
command from an NCL process:
…
SAY "Opening "&filename
INTCMD "UDBCTL OPEN="&filename" ID="&id
INTREAD
…