Use

PurposeUSE 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.

Syntax

US/E/ /SF/ name

name

references the SF to be used

Example

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
--PRINT
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.

Creating A System File (SF) With Line Numbers

You can no longer SAVE a SF with line numbers, but you can create one by following this procedure:

  1. Open a log file (USE SF name LOG).

  2. In the ACCENT R editor, MODIFY the file that you want to have line numbers.

  3. Enter the PRINT command at the editor subcommand level (-).

  4. Enter the STOP command.

  5. Close the log file (USE NO SF LOG).  The log file contains the text you modified with line numbers.