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
What is a put statement?
what do you mean by data staging area? : Sas-di
What is the maximum length of the macro variable? : sas-macro
AE datasets names? how many types?
Explain proc sort?
Are you involved in writing the inferential analysis plan? Tables specfications?
how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming
What is connection profile? : sas-grid-administration
explain the difference between proc means and proc summary?
What commands are used in the case of including or excluding any specific variables in the data set?
Give some examples where proc report’s defaults are different than proc print’s defaults?
how can you create zero observation dataset? : Sas programming
what is the difference between floor and ceil functions in sas? : Sas-administrator
what can you learn from the sas log when debugging? : Sas programming
How does the internal authentication work in sas? : sas-grid-administration