SAS Programming Step By Step Tutorial 1
#1 Hello World Program
SAS (previously “Statistical Analysis System”) is a software suite developed by SAS institute for advanced analytics, and was originally written in PL/I, Fortran , and assembly language then rewritten in the C programming language.
When programmers start to learn a new programming language, often the first program that they write is a program that prints “Hello, World!” text to the screen. By successfully writing a Hello World program the programmer can be assured that the software is installed correctly with all of the necessary features like parsers, compilers, linkers, etc.
Let’s write our first “Hello,World!” program. Open a text editor like notepad and save the below code as a .sas file and then open & run it in SAS studio. Or simply copy and paste this code into SAS studio and run it by clicking the running man icon.
/* SAS Hello World Program *//*Create Hello World Data Set */
data HelloWorld;
msg = "Hello, World!";
run;/*Print Hello World*/
proc print data = HelloWorld;
run;