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 generate the test data in sas without input data? : Sas-administrator
Describe a time when you were really stuck on a problem and how you solved it?
How would you code a macro statement to produce information on the sas log? This statement can be coded anywhere? : sas-macro
what is data governance? : Sas-di
Hi Jeevan/Akshara I have tried to contact SASI Vats for latest Advanced SAS Programming Certification Dumps (A00-212) but have not got any response. I would highly and gratefully appreciate your assistance in this regard. If you guys have access to this, would you be kind enough to forward it to me ? I would abide by all the terms you have for this. Please, note my email id: upretigopi@yahoo.com Preti Sharma
In ARRAY processing, what does the DIM function do?
if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming
Explain data step in SAS
What is the difference between the proc sql and data step?
Name any two sas spawners? : sas-grid-administration
How do you convert basic cube to transaction cube and transaction cube to basic cube?
What is the command used to find missing values?
Are you sensitive to code walk-throughs peer review or QC review?
what is the difference between floor and ceil functions in sas? : Sas-administrator
what do the pad and dim functions do? : Sas programming