8 proc options option=pageno define; 9 run; SAS (r) Proprietary Software Release 9.3 TS1B0 PAGENO=1 Option Definition Information for SAS Option PAGENO Group= LISTCONTROL Group Description: Procedure output and display settings Description: Beginning page number for the next page of output produced by the SAS System Type: The option value is of type LONG Range of Values: The minimum is 1 and the maximum is 2147483647 Valid Syntax(any casing): MIN|MAX|n|nK|nM|nG|nT|hexadecimal Numeric Format: Usage of LOGNUMBERFORMAT does not impact the value format When Can Set: Startup or anytime during the SAS Session Restricted: Your Site Administrator can restrict modification of this option Optsave: PROC Optsave or command Dmoptsave will save this option
proc optsave; run; proc print; var optname; run;
proc options GROUP=errorhandling; run;
For more information,
see OPTIONS Procedure.proc options restrict; run;
1 proc options restrict; 2 run; SAS (r) Proprietary Software Release xxx TS1B0 Option Value Information For SAS Option CMPOPT Value: (NOPRECISE NOEXTRAMATH NOMISSCHECK NOGUARDCHECK NOGENSYMNAMES NOFUNCDIFFERENCING) Scope: SAS Session How option value set: Site Administrator Restricted
Your site administrator has not restricted any options.
proc options listrestrictable; run;
13 proc options listrestrict ; 14 run; SAS (r) Proprietary Software Release xxx TS1B0 Your Site Administrator can restrict the ability to modify the following Portable Options: APPLETLOC Location of Java applets ARMAGENT ARM Agent to use to collect ARM records ARMLOC Identify location where ARM records are to be written ARMSUBSYS Enable/Disable ARMing of SAS subsystems AUTOCORRECT Perform auto-correction for misspelled procedure names, keywords or global statement names AUTOSAVELOC Identifies the location where program editor contents are auto saved AUTOSIGNONSAS/CONNECT remote submit will automatically attempt to SIGNON BINDING Controls the binding edge for duplexed output BUFNO Number of buffers for each SAS data set BUFSIZE Size of buffer for page of SAS data set BYERR Set the error flag if a null data set is input to the SORT procedure BYLINE Print the BY line at the beginning of each BY group BYSORTED Require SAS data set observations to be sorted for BY processing CAPS Translate SAS source and data lines to uppercase CARDIMAGE Process SAS source and data lines as 80-byte records CATCACHE Number of SAS catalogs to keep in cache memory CBUFNO Number of buffers to use for each SAS catalog CENTER Center SAS procedure output CGOPTIMIZE Control code generation optimization CHARCODE Uses character combinations as substitute for special characters not on the keyboard CLEANUP Attempt recovery from out-of-resources condition CMDMAC Support command-style macros CMPLIB Identify previously compiled libraries of CMP subroutines to use when linking
proc options option=center value; run;
2 proc options option=center value; 3 run; Option Value Information for SAS Option CENTER Option Value: CENTER Option Scope: Default How option value set: Shipped Default
7 proc options option=work value; 8 run; SAS (r) Proprietary Software Release xxx TS1B0 Option Value Information For SAS Option WORK Value: C:\DOCUME~1\sasuser1\LOCALS~1\Temp\SAS Temporary Files\_TD5428_t20111_ Scope: SAS Session How option value set: Config File Config file name: C:\SASv9\SASv9.cfg
24 options insert=(fmtsearch="c:/myformats"); 25 options append=(fmtsearch="c:/mysas"); 26 proc options option=fmtsearch value; 27 run; SAS (r) Proprietary Software Release xxx TS1B0 Option Value Information For SAS Option FMTSEARCH Value: ('C:/MYFORMATS' WORK LIBRARY 'C:/MYSAS') Scope: DMS Process How option value set: Options Statement Value Inserted: 'C:/MYFORMATS' How option value set: Options Window Value: WORK LIBRARY How option value set: Options Statement Value Appended: 'C:/MYSAS'
proc options option=errorcheck define; run;
5 proc options option=errorcheck define; 6 run; SAS (r) Proprietary Software Release xxx TS1B0 ERRORCHECK=NORMAL Option Definition Information for SAS Option ERRORCHECK Group= ERRORHANDLING Group Description: Error messages and error conditions settings Description: Level of special error processing to be performed Type: The option value is of type CHARACTER Maximum Number of Characters: 10 Casing: The option value is retained uppercased Quotes: If present during "set", start and end quotes are removed Parentheses: The option value does not require enclosure within parentheses. If present, the parentheses are retained. Expansion: Environment variables, within the option value, are not expanded Number of valid values: 2 Valid value: NORMAL Valid value: STRICT When Can Set: Startup or anytime during the SAS Session Restricted: Your Site Administrator can restrict modification of this option Optsave: PROC Optsave or command Dmoptsave will save this option
options
in the toolbar
or on the command line to open the SAS System Options window.
The SAS System Options window lists the
names of the SAS system option groups. You can then expand the groups
to see the option names and to change their current settings to a
new value or to the default value. Alternatively, you can use the
Find Option command in the Options pop-up menu to go directly to an
option. Changes take effect immediately and remain in effect throughout
the session unless you reset them with an OPTIONS statement or change
them in the SAS System Options window.
1 proc options listinsertappend; 2 run; SAS (r) Proprietary Software Release xxx TS1B0 Core options that can utilize INSERT and APPEND AUTOEXEC Identifies AUTOEXEC files used during initialization CMPLIB Identify previously compiled libraries of CMP subroutines to use when linking FMTSEARCH List of catalogs to search for formats and informats MAPS Location of maps for use withSAS/GRAPH SASAUTOS Search list for autocall macros SASHELP Location of the SASHELP library SASSCRIPT Location ofSAS/CONNECT script files Host options that can utilize INSERT and APPEND HELPLOC Location of help environment text and index files MSG The path to the sasmsg directory SET Defines an environment variable
insert=(system-option-1=argument-1 system-option-n=argument-n)
append=(system-option-1=argument-1 system-option-n=argument-n)The syntax for system-option=argument is the syntax that is required for the specified system option.
options insert=(fmtsearch="c:/myformats"); options append=(fmtsearch=("c:/mysasfmt" "u:/mysasfmt2"));For more information, see INSERT= System Option and APPEND= System Option.
26 proc options option=fmtsearch value; 27 run; SAS (r) Proprietary Software Release xxx TS1B0 Option Value Information For SAS Option FMTSEARCH Value: ('C:/MYFORMATS' WORK LIBRARY 'C:/MYSAS') Scope: DMS Process How option value set: Options Statement Value Inserted: 'C:/MYFORMATS' How option value set: Shipped Default Value: WORK LIBRARY How option value set: Options Statement Value Appended: 'C:/MYSASFMT' 'U:/MYSASFMT2'
/* Check the value of papersize before we change it. */ /* The inital value is A4 as this value was used when */ /* SAS started. */ %put %sysfunc(getoption(papersize,keyword)); /* Change the PAPERSIZE value and check the change. */ options papersize="600x800 Pixels"; %put %sysfunc(getoption(papersize,keyword)); /* Change PAPERSIZE back to the default value and check it. */ /* RESULT: LETTER */ %let defsize = %sysfunc(getoption(papersize,keyword,defaultvalue)) ; options &defsize; run; %put %sysfunc(getoption(papersize,keyword)); /* Change the value to the startup value and check it. */ /* RESULT: A4 */ %let defsize = %sysfunc(getoption(papersize,keyword,startupvalue)) ; options &defsize; run; %put %sysfunc(getoption(papersize,keyword));
22 /* Check the value of papersize before we change it. */ 23 /* The inital value is A4 as this value was used when */ 24 /* SAS started. */ 25 26 %put %sysfunc(getoption(papersize,keyword)); PAPERSIZE=A4 27 28 /* Change the PAPERSIZE value and check the change. */ 29 30 options papersize="600x800 Pixels"; 31 32 %put %sysfunc(getoption(papersize,keyword)); PAPERSIZE=600X800 PIXELS 33 34 /* Change PAPERSIZE back to the default value and check it. */ 35 /* RESULT: LETTER */ 36 37 %let defsize = %sysfunc(getoption(papersize,keyword,defaultvalue)) ; 38 options &defsize; run; 39 %put %sysfunc(getoption(papersize,keyword)); PAPERSIZE=LETTER 40 41 /* Change the value to the startup value and check it. */ 42 /* RESULT: A4 */ 43 44 %let defsize = %sysfunc(getoption(papersize,keyword,startupvalue)) ; 45 options &defsize; run; 46 %put %sysfunc(getoption(papersize,keyword)); PAPERSIZE=A4
data one; set items; run; /* option applies to all subsequent steps */ options obs=5; /* printing ends with the fifth observation */ proc print data=one; run; /* the SET statement stops reading after the fifth observation */ data two; set items; run;
options obs=100; data one; set two(obs=5); run; proc print data=three; run;