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

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

Tip of the Day:March 3

From sasCommunity
Jump to: navigation, search

sasCommunity Tip of the Day

The IFC function can be used to conditionally execute global statements, including the %PUT, %LET, and %INCLUDE statements.

Both IFN and IFC can be used with the macro language. IFC returns a character value, while IFN returns a numeric. When building code it is generally more useful to have a character result.

%let name=Fred;
%put %sysfunc(ifn(&name=Charlie,1,2,3));

Submitted by Art Carpenter. Contact me at my Discussion Page.

Feel free to comment on this tip.

Prior tip - Next tip - Random Tip

Submit a Tip