Sas programming Class Notes What is dataset?



Download 12.43 Kb.
Date10.01.2021
Size12.43 Kb.
#55594
SAS Programming Class Notes

SAS Programming Class Notes

What is dataset?

A dataset in SAS is nothing but a table in general terminology



For comments in SAS:

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

* Separate variable names with spaces in the input statement*

*Follow the character variable name with a $ sign*

*After datalines – whatever I write is the input data*

*Column Names are called variables in SAS*

*To run a SAS Program click the Run button or Press F3 Command*

data CLASS; * creating a dataset with the name class*

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;

John 1001 14 ECE * The space denotes which value is assigned to which variable

Rob 1002 14 Elec

Tom 1005 14 Mech

;

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

What is a temporary library?
Download 12.43 Kb.

Share with your friends:




The database is protected by copyright ©ininet.org 2024
send message

    Main page