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 proc sql work?
How do you add a number to a macro variable? : sas-macro
How are numeric and character missing values represented internally?
Which are the statements whose placement in the data step is critical?
how does sas handle missing values in assignment statements? : Sas programming
Explain data step in SAS
how does sas handle missing values in functions? : Sas programming
how to generate the test data in sas without input data? : Sas-administrator
Tell e how how dealt with..
What versions of SAS have you used (on which platforms)?
Given an unsorted data set, how to read the last observation to a new data set?
what is ae onset date n what is RDS
what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
What is the length assigned to the target variable by the scan function?
what is study design in while working with SAS? what are screening variables in SAS?