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

I have a dataset concat having variable a b & c. How to rename a b to e & f?

583


explain about various caches available in data integrator? : Sas-di

581


How substr function works in sas?

703


If a variable contains only numbers, can it be a character data type?

616


for report generation which one you used proc report or data_null_?

6605






To what type of programms have you used scratch macros?

2144


What are the data types does SAS contain?

655


how to do user inputs and command line arguments in sas?

2429


What does PROC print, and PROC contents do?

730


What is the order of application for output data set options, input data set options and SAS statements?

1085


What is SAS?

623


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

555


describe about physical data integration? : Sas-di

561


Can you suggest us materials for sdtm mapping?

4039


What are the difference between the sas data step and sas procs?

612