What is the purpose of the trailing and How would you use them?

Answer Posted / dupe bassey

If a variable doesnt have a single trailing @ with an input
statement, when sas encounters another input statement
after the first one,it would load a new record, this action
will result in some obeservations not been outputed and
missing data. To avoid this, a single trailing @ is used to
hold the record , so that when it encounters another input
statements within the datastep a new record is not loaded,
It bassically tells sas to use the data just placed in the
input buffer for the next input statement .
the single trailing @ is release when an input statement
without a trailing @ is encountered.



`input zz$ status @@' tells SAS to read two words at a
time from the input buffer to the pdv without discarding
the rest of the line.Without the trailing @@, SAS would
read the first two words from input buffer and ignore the
rest of the line. This would result in reading less records

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how does sas handle missing values in a merge? : Sas programming

549


what is study design in while working with SAS? what are screening variables in SAS?

1675


Which are the statements whose placement in the data step is critical?

754


Which command is used to save logs in the external file?

561


In proc transpose and data step with arrays which one you pick?

2570






How substr function works in sas?

697


what is the one statement to set the criteria of data that can be coded in any step? : Sas programming

646


what is the difference between infile and input? : Sas-administrator

603


what is sas enterprise intelligence architecture? : Sas-bi

538


How do you test for missing values?

1053


what versions of sas have you used (on which platforms)? : Sas programming

574


Explain append procedure?

627


what is proc Index? and what is proc document?

1988


what are the benefits of data integration? : Sas-di

531


What are the parameters of scan function?

612