Purpose: USE directs ACCENT R to begin reading a specified System File (SF) at the edit level and to treat each line of input as though it had been typed at the terminal.
US/E/ /SF/ name
name |
references the SF to be used |
The contents of a SF named SCHOOL are first illustrated with the LIST command. The edit level is then invoked with the DEFINE command to create the Schema Definition (SD) CURRICULUM. After the contents of PUB.REP are displayed, the USE editing command is issued on SF PUB.REP. The results of ACCENT R reading the SF at the edit level are revealed with a final PRINT editing command.
*LIST SF PUB_REP
INSERT 1,1
CO_ID,CHAR,4
NAME,CHAR,20
PHONE,INT,10
END
*DEFINE SD CONTACTS
--USE SF PUB_REP
0001 CO_ID,CHAR,4
0002 NAME,CHAR,20
0003 CITY,CHAR,220
0004 PHONE,INT,10
NOTES: USE SF is often used to insert external pieces of code, like subroutines.
There is also a USE command available at the command level that performs several additional functions.
You can no longer SAVE a SF with line numbers, but you can create one by following this procedure:
Open a log file (USE SF name LOG).
In the ACCENT R editor, MODIFY the file that you want to have line numbers.
Enter the PRINT command at the editor subcommand level (-).
Enter the STOP command.
Close the log file (USE NO SF LOG). The log file contains the text you modified with line numbers.