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
how does sas handle missing values in a merge? : Sas programming
what is study design in while working with SAS? what are screening variables in SAS?
Which are the statements whose placement in the data step is critical?
Which command is used to save logs in the external file?
In proc transpose and data step with arrays which one you pick?
How substr function works in sas?
what is the one statement to set the criteria of data that can be coded in any step? : Sas programming
what is the difference between infile and input? : Sas-administrator
what is sas enterprise intelligence architecture? : Sas-bi
How do you test for missing values?
what versions of sas have you used (on which platforms)? : Sas programming
Explain append procedure?
what is proc Index? and what is proc document?
what are the benefits of data integration? : Sas-di
What are the parameters of scan function?