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
What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?
what is metadata? : Sas-bi
Which command is used to save logs in the external file?
What is the command used to find missing values?
What is the use of %include statement?
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately
how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming
how do you debug and test your sas programs? : Sas programming
what are sas bi dashboard components? : Sas-bi
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
why is sas data integration studio important? : Sas-di
Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya
how many types prompting framework can be broken down to? : Sas-bi
How to sort in descending order?
Hi, If anyone has base SAS certification dumps, please share.