SAS Programming Class Notes: What Is Dataset?
SAS Programming Class Notes: What Is Dataset?
What is dataset?
Use “/*” (Multiple Line Comment) or “*” (single line comment) or ctrl + / creates a comment in SAS
*Creating a Dataset*
1.Start with the keyword DATA and then give the name of the data set
*To run a SAS Program click the Run button or Press F3 Command*
input name $ class rollno grade department $; * creating input statement with selected variable *
*$ represents a variable data type* *Only Name and
Department is considered as Character others are
numeric data type*
datalines;
Run;
The highlighted part is the code that would create a dataset in SAS with the information provided
after the data lines command
AFTER RUNING THE CODE GO TO LOG ALWAYS INSTEAD OF THE OUTPUT OR RESULT TAB