%sysfunc(getoption(sysin));
Used in title of footnote or PUT statement to display the location of SAS source code.
SYSIN a system option, can be look up in table sashelp.voption under UNIX.
Link: getoption
Link: sysin
Showing posts with label Options. Show all posts
Showing posts with label Options. Show all posts
Wednesday, June 9, 2010
Monday, April 19, 2010
MSGLEVEL option
MSGLEVEL=I option prints additional SAS INFO messages related to index usage, merge processing, sort utilities, and CEDA usage, into your SAS log; as well as the regular SAS NOTE, WARNING, and ERROR messages.
The default is MSGLEVEL=N.
OPTIONS MSGLEVEL=I;
See also
The default is MSGLEVEL=N.
OPTIONS MSGLEVEL=I;
See also
Wednesday, February 10, 2010
Look up system options and display setting
proc print data=sashelp.voption;
run;
proc options group=memory;
run;
proc options option=memblksz define value lognumberformat;
run;
Wednesday, December 23, 2009
XMRLMEM option
Obtain the amount of computer memory available to SAS with the undocumented XMRLMEM option.
data _null_;
format amt comma20.;
amt = input(getoption('xmrlmem'),20.);
put amt=;
run;
The code shown above gives the total number of bytes of real memory available. (It does not count the operating system's virtual memory; only real memory). Divide this number by 1024 to get it into K's... or whatever to get it into Megs or Gigs.
XMRLMEM is an undocumented diagnostic option that can come in handy when considering allocating a bushel-full of buffers or considering doing some big-time hashing.
Link: http://www2.sas.com/proceedings/forum2007/271-2007.pdf
data _null_;
format amt comma20.;
amt = input(getoption('xmrlmem'),20.);
put amt=;
run;
The code shown above gives the total number of bytes of real memory available. (It does not count the operating system's virtual memory; only real memory). Divide this number by 1024 to get it into K's... or whatever to get it into Megs or Gigs.
XMRLMEM is an undocumented diagnostic option that can come in handy when considering allocating a bushel-full of buffers or considering doing some big-time hashing.
Link: http://www2.sas.com/proceedings/forum2007/271-2007.pdf
Monday, November 23, 2009
Formdlim option
FORMDLIM='delimiting-character'
'delimiting-character'
specifies in quotation marks a character written to delimit pages. Normally, the delimit character is null, as in this statement:
'delimiting-character'
specifies in quotation marks a character written to delimit pages. Normally, the delimit character is null, as in this statement:
options formdlim='';
use space will eliminate the delimitor between pages in the listing:
options formdlim=' ';
Monday, July 13, 2009
System Options for Debugging Macro Errors
MERROR (default) | NOMERROR
When this option is on, SAS will issue a warning if you invoke a macro that SAS cannot find.
SERROR (default) | NOSERROR
When this option is on, SAS will issue a warning if you use a macro variable that SAS cannot find.
MLOGIC | NOMLOGIC (default)
When this option is on, SAS prints in your log details about the execution of macros.
MPRINT | NOMPRINT (default)
When this options is on, SAS prints in your log the standard SAS code generated by macros.
SYMBOLGEN | NOSYMBOLGEN (default)
When this options is on, SAS prints in your log the values of macro values.
When this option is on, SAS will issue a warning if you invoke a macro that SAS cannot find.
SERROR (default) | NOSERROR
When this option is on, SAS will issue a warning if you use a macro variable that SAS cannot find.
MLOGIC | NOMLOGIC (default)
When this option is on, SAS prints in your log details about the execution of macros.
MPRINT | NOMPRINT (default)
When this options is on, SAS prints in your log the standard SAS code generated by macros.
SYMBOLGEN | NOSYMBOLGEN (default)
When this options is on, SAS prints in your log the values of macro values.
Saturday, June 20, 2009
Options VALIDVARNAME=ANY
VALIDVARNAME=V7 V6 UPCASE ANY
V7 - (default) indicates that up to 32 mixed case alphanumeric characters are allowed. Names must begin with alphabetic characters or an underscore.
V6 - only 8 bytes long.
UPCASE - variable names are uppercased.
ANY - allows any characters to appear as valid SAS variable names. Symbols, such as "=" and "*", must be contained in a 'varname'n construct.
e.g.
libname foo ......;
data foo.'My Table'n;
input 'Amount Budgeted'n 'Amount Spent'n 'Amount Difference'n;
V7 - (default) indicates that up to 32 mixed case alphanumeric characters are allowed. Names must begin with alphabetic characters or an underscore.
V6 - only 8 bytes long.
UPCASE - variable names are uppercased.
ANY - allows any characters to appear as valid SAS variable names. Symbols, such as "=" and "*", must be contained in a 'varname'n construct.
e.g.
libname foo ......;
data foo.'My Table'n;
input 'Amount Budgeted'n 'Amount Spent'n 'Amount Difference'n;
Subscribe to:
Posts (Atom)