Other Available Command Processor Commands
Several commands are available at the Stat/Transfer prompt which are the same as operating system commands. You can also get help from the command line and, if you wish, you can produce a log of your transfer session.
Operating System Commands
Changing Directory
You can change directories by typing the cd command, just as you do at the operating system prompt. Note that the cd command given with no parameters will return the current directory.
Changing Drive (Windows)
You can change drives by typing the drive letter followed by a colon, just as you do at the DOS prompt.
Listing Files
You can obtain a list of files by using the dir or ls command. For example,
dir *.xls
will list all files with the extension .xls files in the current directory.
Running Other Programs and OS Commands
You can execute operating system commands and run other programs from the Stat/Transfer command line by preceding the program name and arguments with any of the following dos, shell or '!'. For example,
shell del logfile.dat
dos del logfile.dat
!del logfile.
You might use the following, allowing you to unzip a file with a command given to Stat/Transfer:
!unzip sasdata.zip mysas1.sd2
where '!' has been used instead of 'dos' or 'shell'*.
A sequence of commands can be entered directly at the Stat/Transfer prompt or stored in a file for batch execution.
Quit
You can terminate your Stat/Transfer session by typing 'quit' or 'q'.
Command Processor Help
Online Help
You can reach online help from the Stat/Transfer command line by typing:
help
To return to the command line, close the HELP screen.
Help in the Command Processor
You can issue the following commands to get help without leaving the command processor:
help commands
help copy
help formats
help running
help set
help set all
help set general
help set date
help set sas
help set ascii
help set worksheet
To get a list of the available commands, type:
help help
Logging Stat/Transfer Sessions
You can log your transfer session to a file by typing:
LOG USING filename
where filename is the name of the log file.
All of the commands that you enter and all messages from Stat/Transfer will be written to the file.