You can save SYSTEM 2000 statements in a file by using the SAS Text Editor and directing
PROC QUEST to read statements from that file by submitting the following statement:
local command file is fileref;
fileref is the ddname for the file. However, any SAS macros in the file are not expanded
because PROC QUEST submits the statements directly to SYSTEM 2000 without SAS reading
them.
The following statement lets you continue to submit statements from the Program Editor;
write it at the end of the Command File:
LOCAL COMMAND FILE IS INPUT;
If you omit this command, PROC QUEST automatically returns to the Program Editor when
it finds an end-of-file in the Command File.
Note: SYSTEM 2000 commands in a
Command File must be specified in uppercase or a syntax error occurs.
PROC QUEST enables you to use alternate user files for the
Data File,
Message File, and
Report File. They can be local files or files allocated in the
Multi-User
region.