Explain about PUT statement and give some examples - SAS

Explain about PUT statement and give some examples

- PUT is a flexible tool in the data step programmers toolkit.

Ex :- PUT one two three - Writes the values of three variables out separated by a space
- PUT 132*’_’ – Writes 132 underscores
- PUT Var 1 -5 – The value of Var is displayed from column 1 through 5
- PUT _all_ - Writes the values of all variables including _error_and_n_
- PUT one two three @ - Writes the values of three variables out separated by a space and keep the line open. So that next PUT statement will continue on.
Post your comment
Discussion Board
raw data and analysis data
what is the difference between raw data and analysis data?
ramachandra 04-4-2012