WWW | Store | Account | Contact Us
SHAZAM Homepage

SET

SET commands make it possible to turn certain options on or off. In general, the format of the SET command to turn options on is: SET option. To turn options off, the format of the SET command is: SET NOoption where option is the desired option.

e.g. To turn on an option you would say something like SET DUMP. Then to turn it off you would say SET NODUMP.

The available options are:

OPTION DESCRIPTION
batch Used in BATCH mode or when more extensive output is desired or when the OUTPUT unit is assigned to a file. Most modern operating systems can detect a batch run, so this option is rarely used. If the operating system is not able to do this, BATCH is the default.
byvar Turns on the BYVAR option for the PRINT and WRITE commands but not for the READ command.
cc Used to turn on carriage control. When SET CC is in effect, some commands (like OLS) will skip to a new page. The default is SET NOCC.
comlen The maximum number of characters in a command line is 255 on some computers but on others the maximum length is only 80. You can see the length for your computer with the command DISPLAY COMLEN. This option can be used to prevent SHAZAM from reading commands beyond a certain column. For example, for a file with sequence numbers in columns 73-80, COMLEN=72 would be appropriate. COMLEN= should never be specified at a value of greater than 255 under any circumstance. Note that on all computers, commands can be continued onto additional lines if the continuation symbol (&) is used at the end of a line. The use of continuation lines allows a total command length on all computers of 16,384 characters.
continue An error may terminate a DO-loop. The SET CONTINUE command forces calculations to continue.
cputime The DISPLAY CPUTIME command will print the amount of computer time used in the current SHAZAM run. The SET CPUTIME command resets the timer to zero.
delete In distributed-lag models, before estimation, SHAZAM will automatically delete the number of observations equal to the longest lag. If you do not want SHAZAM to do this and prefer to adjust this yourself with the SAMPLE command, use SET NODELETE. The default is SET DELETE.
doecho Commands are normally printed for each cycle through a SHAZAM DO-loop. To prevent these commands from being printed, SET NODOECHO.
dump DUMPs a lot of output which is primarily of interest to SHAZAM consultants.
echo Causes commands to be printed in the output. In interactive mode it may be necessary to use NOECHO to prevent the repetition of each command, however most modern operating systems can set this automatically. The default is ECHO in BATCH and TERMINAL modes and NOECHO in TALK mode.
graph The SET GRAPH resumes the display of gnuplot graphs following the use of a SET NOGRAPH command which suppresses the display of gnuplot graphs that are generated with some commands. The gnuplot command and data files with the extension .GNU will still be created.
lastcom Creates a variable called C$ which will contain the previous command typed. This variable can then be printed at any time after the LASTCOM option is SET by typing PRINT C$. This option is only useful in TALK mode.
lcuc When this option is specified SHAZAM is not case-sensitive. This is the default on most computers. If you wish to distinguish upper and lower case variable names and file names in SHAZAM (case-sensitivity) then use SET NOLCUC.
max The MAX option can be SET to turn on the MAX option on each command. This eliminates the need to use the MAX option on every individual command if it is always desired.
maxcol= When using the colon (:) function to specify a row of a matrix or a number in a vector, the default maximum number is at least 1000 or twice the maximum number of variables specified on the SIZE command. If a larger number is required a SET command such as SET MAXCOL=1500 should be used.
missvalu= Used with the SET SKIPMISS option to specify a missing value code. The default is -99999.
nobyvar Turns on the NOBYVAR option for the PRINT and WRITE commands but not for the READ command.
nocc Used to turn off carriage control. When SET CC is in effect, some commands (like OLS) will skip to a new page. The default is SET NOCC.
nocontinue An error may terminate a DO-loop. The SET NOCONTINUE command forces calculations to stop. SET NOCONTINUE is the default.
nodelete In distributed-lag models, before estimation, SHAZAM will automatically delete the number of observations equal to the longest lag. If you do not want SHAZAM to do this and prefer to adjust this yourself with the SAMPLE command, use SET NODELETE. The default is SET DELETE.
nodoecho Commands are normally printed for each cycle through a SHAZAM DO-loop. To prevent these commands from being printed, SET NODOECHO.
noecho Causes commands not to be printed in the output. In interactive mode it may be necessary to use NOECHO to prevent the repetition of each command, however most modern operating systems can set this automatically. The default is ECHO in BATCH and TERMINAL modes and NOECHO in TALK mode.
nograph The SET NOGRAPH command suppresses the display of gnuplot graphs that are generated with some commands. The gnuplot command and data files with the extension .GNU will still be created.
nolcuc When this option is specified SHAZAM is case-sensitive. If you wish to distinguish upper and lower case variable names and file names in SHAZAM (case-sensitivity) then use SET NOLCUC.
nooutput This option is used to turn off the output for all following commands. SET NOOUTPUT is equivalent to putting a "?" in front of every command.
nosample This option allows the use of the omitted observations in the expanded form of the SAMPLE command to be turned off.
noscreen Works on some (but not all computers) to turn off the display of the SHAZAM output on the terminal screen when the output has been redirected to a file assigned with the FILE SCREEN command. Due to the peculiarities of various operating systems the option may or may not work. Try it and see.
noskip These options allow SKIPIF commands to be turned off. For an example of these options, see the chapter GENERATING VARIABLES in the SHAZAM Reference Manual.
noskipmiss This option is used to turn off automatic deletion of missing observations in any data analysis or estimation command such as OLS, NL, ROBUST, STAT, FC etc. If any observation has a missing value code for any of the dependent or independent variables on that command, then the observation will not be omitted for that particular command. This is less general than the NOSKIPIF command which will delete an observation for all subsequent commands. The SET SKIPMISS command deletes observations only if the variable is actually used.
nostatus Used to turn off display of a status line for some SHAZAM operations. The status line differs among operating systems and can include the index of the current DO loop, or the name of the current command.
nowarn Warning messages are normally printed for illegal operations in GENR, MATRIX, IF, SKIPIF and ENDIF statements. These messages can be turned off with SET NOWARN.
nowarnmiss Messages about missing observations can be turned off with SET NOWARNMISS.
nowarnskip A warning message is printed for every observation skipped by a SKIPIF command. There may be a large number of these warnings if the sample is large. These warnings can be turned off with SET NOWARNSKIP.
nowide The WIDE option is used to control the line length of printed output. WIDE will assume that up to 120 columns are available. NOWIDE will try to fit all output in 80 columns. This option mainly affects the PRINT and PLOT commands. The default is WIDE in Batch operation and NOWIDE in Talk mode at a terminal.
options Displays the value of all command OPTIONS in subsequent commands. This option is primarily of interest to SHAZAM consultants.
output This option turns on the output for all following commands. SET OUTPUT resumes output previously turned off by SET NOOUTPUT.
outunit= The OUTUNIT= option is SET when the SHAZAM output for the run is to be put into more than one file. In this case, the output files are assigned to appropriate units and addressed with the OUTUNIT= option. Of course, if one of the files is originally assigned to Unit 6, SHAZAM automatically outputs into this file and continues until another file is specified on a SET OUTUNIT= command. This option is rarely used.
pause Causes a pause to occur after each command or screen of output. This is useful when the user is working on a machine which has no pause control on its keyboard and therefore much of the output is missed as it appears on the screen. The default is SET NOPAUSE. On some systems the user can simply press RETURN on the keyboard to resume execution. However, this may not be the case on all operating systems. This option has no effect in BATCH mode.
ranfix When RANFIX is SET the random number generator is not set by the system clock. Thus, the same set of random numbers will be obtained in repeated jobs.
ranseed= If you wish to initialize the random number generator with a particular integer number use the SET RANSEED=xxx option where xxx is a positive integer. This can be used to obtain the same set of random numbers in different runs. This option should be used before any random numbers are generated in the run. SET RANSEED=0 is the same as SET RANFIX.
sample This option allows the use of the omitted observations in the expanded form of the SAMPLE command to be turned on.
screen Echos the SHAZAM output to the terminal screen when the output has also been redirected to a file assigned to Unit 6. (Works on some computers).
skip These options allow SKIPIF commands to be turned on. For an example of these options, see the chapter GENERATING VARIABLES in the SHAZAM Reference Manual.
skipmiss This option is used to turn on automatic deletion of missing observations in any data analysis or estimation command such as OLS, NL, ROBUST, STAT, FC etc. If any observation has a missing value code for any of the dependent or independent variables on that command, then the observation will be omitted for that particular command. This is less general than the SKIPIF command which will delete an observation for all subsequent commands. The SET SKIPMISS command deletes observations only if the variable is actually used. The option can be turned off with SET NOSKIPMISS.
status Used to display a status line for some SHAZAM operations. The status line differs among operating systems and can include the index of the current DO loop, or the name of the current command. If this status line is not desired it can be turned off with SET NOSTATUS.
talk TALK is SET at the beginning of an interactive session when typing commands in interactive mode. If all commands are in a file then the user is not "talking" and should use the TERMINAL option instead. Most modern operating systems can detect an interactive run, so it may not be necessary to SET this option.
terminal Tells SHAZAM you are at a terminal and commands have all ready been put in a file assigned to Unit 5
timer Times each command and the CPU time is printed out after execution of each command.
trace This option is primarily of interest to SHAZAM consultants. It prints the name of each subroutine as it is executed.
warn Warning messages are normally printed for illegal operations in GENR, MATRIX, IF, SKIPIF and ENDIF statements. These messages can be turned off with SET NOWARN.
warnmiss Messages about missing observations can be turned on with SET WARNMISS.
warnskip A warning message is printed for every observation skipped by a SKIPIF command. There may be a large number of these warnings if the sample is large. These warnings can be turned off with SET NOWARNSKIP so this command turns warnings back on again.
wide The WIDE option is used to control the line length of printed output. WIDE will assume that up to 120 columns are available. NOWIDE will try to fit all output in 80 columns. This option mainly affects the PRINT and PLOT commands. The default is WIDE in Batch operation and NOWIDE in Talk mode at a terminal.