Yes all of them are automaticed variables(not user defined but system defined),you can also call them sas ‘keywords’.they are available in data step.
Letz see tis example—
Data new;
Set viks.cd;
Array myarray{*} $ _character_;/*this uses _character_ to refer all chracter variables in 'viks.cd',similar for _numeric_*/
/*sets missing values to string value’;*/
Do i=1 to dim(myarray);
If missing( myarray{i}) then
Myarray{i}='not specified';
End;
Drop I;
Run;
_error_--this automated variable is also available in data step.it can have one of the two possible values.1-for data error during execution of data step and 0 if there are no data errors.
Data errors—>placing character value in a numeric variable or vice-versa ,division by 0 or passing invalid arguments in the function.
NOTE->ALL THESE VARIABLES ARE ‘TEMPORARY ‘ AS THEY ARE NOT SAVED ALONG WITH THE DATA.
hi, let us study how to generate different report formats in sas using different techniques and sas procedures..we will also learn how to customize the layout of the reports as per the requirement using the power of sas.. Discalimer-:This blog is for sharing the knowledge that i have gained .i do not calim the ownership of the original content that is included in the blog.SAS is a trademark of SAS ,usa.
Sunday, July 12, 2009
automatic variables-_character_,numeric_,_error_
Labels:
_character_,
_error_,
_n_,
_numeric_,
automatic variables
Send link to --
SEO Court Directory
myblog
Free Web Directory - Add Your Link
The Little Web Directory
Monster Directory A List Sites
The Little Web Directory
Monster Directory A List Sites