STAT 430 Lecture 6: Variables

50 views3 pages

Document Summary

In general variables in sas represent the column names of the data tables it is analysing. But it can also be used for other purpose like using it as a counter in a programming loop. In the current chapter we will see the use of sas variables as column names of sas data set. Sas has three types of variables as below: In the above syntax, the input statement shows the declaration of numeric variables. Character variables are used for values that are not used in mathematical expressions. A variable becomes a character variable by adding a. $ sing with a space at the end of the variable name. In the above syntax, the input statement shows the declaration of character variables. These variables are treated only as dates and they need to be in valid date formats. A variable becomes a date variable by adding a date format with a space at the end of the variable name.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related textbook solutions

Related Documents