InterviewSolution
Saved Bookmarks
| 1. |
Output |
||||||||||||||||||||||||||||||||
|
Answer» The use of double TRAILING is that, if you have datalines in one line then you can use ; data TEST1; input name $ age marks ; datalines; am 12 95 ra 13 67 pa 14 98 sa 14 87 ; run; proc print data=test1; run;Output
The use of SINGLE @ is in the holding the line, it basically is used in more than one input statement, the pointer basically hold the line after reading the values, it basically holds the value and checks the condition; data test2; input @1 gender $1. @; if gender ne 'F' then delete; input @3 age @5 marks; datalines; F 13 56 M 12 78 F 13 78 M 56 90 ; run; proc print data=test2; run;Output
|
|||||||||||||||||||||||||||||||||