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


Please Help Members By Posting Answers For Below Questions

How does proc sql work?

611


How do you add a number to a macro variable? : sas-macro

543


How are numeric and character missing values represented internally?

1132


Which are the statements whose placement in the data step is critical?

758


how does sas handle missing values in assignment statements? : Sas programming

567






Explain data step in SAS

627


how does sas handle missing values in functions? : Sas programming

597


how to generate the test data in sas without input data? : Sas-administrator

574


Tell e how how dealt with..

1752


What versions of SAS have you used (on which platforms)?

1011


Given an unsorted data set, how to read the last observation to a new data set?

832


what is ae onset date n what is RDS

1931


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

548


What is the length assigned to the target variable by the scan function?

670


what is study design in while working with SAS? what are screening variables in SAS?

1679