As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Tips Talk:Make DATA your friend

From sasCommunity
Jump to: navigation, search

Good tip. --Don Henderson 22:51, 23 March 2009 (UTC)

Since _DATA_ is not mentioned on the see also page, it might also be useful to add a bit about what _DATA_ is. Perhaps something like:

When _DATA_ is used as the name of a data set that is to be created, it invokes the automatic data set naming scheme. While _DATA_ can be used implicitly in the DATA step as

data;

or explicity

data _DATA_;

it must be used explicitly in PROC steps where data set names are required.

--Art Carpenter 23:02, 5 April 2009 (UTC)

The question came up at SGF as to whether _'s could be forced into a title (_DATA_ was used in creating the article). Have researched that and it does not appear possible to force an _ in an article name. --Don Henderson 13:33, 6 April 2009 (UTC)

Looks good to me! Promoted. --Nancy 19:22, 6 April 2009 (UTC)

Capture _DATA_ name for later use

You can use SYSLAST to save the name created by _DATA_ to a macro variable so it can be used later on in the program.

proc sort data=sashelp.class out=_data_;
   by age;
   run;


%let class = &syslast;