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 to create a permanent sas data set?
If money were no object, what would you like to do?
what versions of sas have you used (on which platforms)? : Sas programming
how many display types available in sas bi dashboard? : Sas-bi
Which function is used to count the number of intervals between two sas dates?
Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?
What does proc print, and proc contents are used for?
is data integration and etl programming is same? : Sas-di
What is SAS informats?
What is proc sort?
What commands are used in the case of including or excluding any specific variables in the data set?
how the sas basic syntax style described? : Sas-administrator
What is the difference between class statement and by statement in proc means?
Are you sensitive to code walk-throughs peer review or QC review?
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry