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


Please Help Members By Posting Answers For Below Questions

what is sas application server? : Sas-di

533


how many types prompting framework can be broken down to? : Sas-bi

624


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

610


Define run-group processing?

576


How do you control the number of observations and/or variables read or written?

742






If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

603


What can you learn from the SAS log when debugging?

912


how will you locate the sas platform applications? : Sas-bi

578


what do the pad and dim functions do? : Sas programming

560


How necessary is it to be creative in your work?

2016


what are the scrubbing procedures in sas? : Sas programming

825


Explain the difference between informat and format with an example.

676


what is metadata? : Sas-bi

592


do you need to know if there are any missing values? : Sas programming

542


What is PDV?

719