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 are numeric and character missing values represented internally?
Mention common programming errors committed in sas ?
what is null hypothesis? why do you consider that?
How would you define the end of a macro?
What is the basic structure of a sas program?
How will you use the WHO Drug Dictionary for Reporting Clinical Trials?
What is a pdv and what are its functions?
what does the run statement do? : Sas programming
If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?
What is slibref?
What is the difference between reading data from an external file and reading data from an existing data set?
What is the different between functions and PROCs that calculate the same simple descriptive statistics?
Hi,by usining ptf how we have to combine (likr merge)10 datasets at a time in the oracle database(and write a macro code also)?Like this i have a douts a lot if you dont mind may please send one text mail for me(madhusudhanap16@gmail.com)?
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
it will become easy if uuu provide website linkssss and list of consultanciessssss