What is the purpose of the trailing @? The @@? How would you
use them?
Answer Posted / imran syed
@@ is used when we have multiple observations per line of
raw data. It is used at the end of the INPUT statement. It
tells SAS to hold that line of data and continue to read
observations until it either runs out of data or reaches an
INPUT statement that does not end with a double trailing @.
When we use @ only without specifying n, SAS will hold that
line of data until it reaches either the end of the DATA
step or an INPUT statement that does not end with a trailing @.
Both are line-hold specifiers; the difference is how long
they hold a line of data for input. The trailing @ holds a
line of data for subsequent INPUT statements, but releases
that line of data when SAS returns to the top of the DATA
step to begin building the next observation. The double
trailing @ holds a line of data for subsequent INPUT
statements even when SAS starts building a new observation.
In both cases, the line of data is released if SAS reaches a
subsequent INPUT statement that does not contain a line-hold
specifier.
| Is This Answer Correct ? | 59 Yes | 3 No |
Post New Answer View All Answers
Explain the purpose of retain statement.
how do you want missing values handled? : Sas programming
What do you know about sas data set?
what are some good sas programming practices for processing very large data sets? : Sas programming
what is sas and what are the functions? : Sas-administrator
Mention common programming errors committed in sas ?
Name validation tools used in SAS
Name any two sas spawners? : sas-grid-administration
What is data _null_?
What do the put and input function do?
What are the best sas programming practices for handling very large datasets? : sas-grid-administration
what techniques and/or procs do you use for tables? : Sas programming
What is the sas data set? : sas-grid-administration
explain the concepts and capabilities of business object? : Sas-bi
What are the parameters of scan function?