Startup Options File

 

Profile File

 

You can set options globally and automatically at startup by putting them in a file called profile.stcmd, which should be in the same directory as your Stat/Transfer program file.

 

If the file profile.stcmd is found, it will be executed as the command processor starts up.

 

If you are using Windows Vista or higher, the operating system may prevent you from saving or editing a file in the Program Files directory tree.   There are two possible solutions for this:

  1. Install or reinstall Stat/Transfer somewhere else. 

  2. Create a registry key that points to the directory in which your Stat/Transfer profile is located.  Using Regedit, create the following key:

HKEY_LOCAL_MACHINE\SOFTWARE\Circle Systems\StatTransfer16\ProfileDir

In its value, put the full path to the directory in which your profile is located.

 

Running a "options file" from the OS command line

Alternatively, you can put your options into a file and execute the set commands in that file from the OS command line, along with your transfer parameter.  This is done with the -ex switch.  For example, the command:

  st  in.sas7bdat  out.xlsx -exmyopt.stcmd

will execute the commands stored in myopt.stcmd before performing the transfer.