🎴 Flashcard Mode
SAS Programming Fundamentals
Card1 / 20
Mastered0
Review0
QuestionClick to flip
How many observations will be there in the output dataset person? Data person; infile datalines; input name $ dept $ age; if age le 30; datalines; John Sales 38 Mary Brown Acctng 32 Spielberg Manager 28 ;
AnswerClick to flip back
A
2
💡 Explanation:
The SAS code reads 3 datalines but filters with 'if age le 30;' (age less than or equal to 30). John (age 38) and Mary (age 32) are excluded. Only Spielberg (age 28) satisfies the condition. The output dataset 'person' contains 1 observation.