Due to the stucture of SAS, there are three main ways to create "Hello World!" examples:
_null_ denotes that no output dataset should be created):data _null_;
put "Hell" "o World!";
run;
foo denotes that an output dataset called foo should be created that a) contains only one record and b) contains only one variable: bar, which has a value of Hello World!):data foo ;
bar="Hello" ;
put bar= "World!";
run ;
& identifies a call to a macro variable and . identifies the end of the variable (if a white space character is not wanted):%let foo=Hello;
%put &foo.o World!;
%let foo=Hello;
data _null_ ;
put "&foo World!";
run ;