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
How to specify variables to be processed by the freq procedure?
Explain proc univariate?
Explain what is the use of proc gplot?
what is scheduling and how will u implement it. In scheduling 5 jobs r running if there is an error occured at 3rd job and how will u check and waht necessary steps will u take not to repeat the same mistake
what is a method for assigning first.var and last.var to the by groupvariable on unsorted data? : Sas programming
explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di
What are the different types of sas functions?
Difference between sum function and using “+” operator?
What is a macro routine?
How do you delete duplicate observations in sas?
What is maximum storage capability of SAS?
what is the Population you used in your project, is it ITT or PP?
What are the differences between proc means and proc summary?
what are _numeric_ and _character_ and what do they do? : Sas programming
what is sas database server? : Sas-di