Classic Classic Quiz Chapter 5 from the book by Tomowsiak Tomowsiak 31 played - 12 yrs ago Creating sas data from raw files and excel work sheets QUIZ 9 QUESTIONS hard 1 Which statement associates fileref crime with the raw file c : \states\data\crime? Filename crime c : \states\data\crime;Filename crime 'c : \states\data\crime';Fileref crime 'c : \states\data\crime';Filename 'c : \states\data\crime' crime; 2 Filerefs remain in effect until You change themYou cancel themYou shut down sasAll of the above 3 Which specifies that the products file should be read and only the first 15 obs? Infile products obs 15;Infile products obs=15;Input products obs=15;Input product 1-15; 4 Which code snipper would correctly write the id, sex, age, height, weight, pulse fields to a raw file from sas? Data _null_; set work. patients; infile... ; input... ;run;Data referels. dat; set work. patients; input fields... ;run;Data _null_; set work. patients; file externafile; put fields... ; run; 5 For a file to be read using column input, must the fields be aligned vertically? YesNo 6 3427 chen steve raleigh 1436 davis lee atlanta imagine the fields above are aligned vertically . . which should be used to read them so they look like ID LastName FirstName City Data work. salesrep; infile empdata; input id $ 1-4 lastname $ 6-12 firstname $ 14-18 city $ 20-29; run;Data work. salesrep; infile empdata; input id $ 1-4 name $ 6-12; run;Data work. salesrep; infile empdata; input id $ 1-4 name1 $ 6-12. . ;run;All of the above 7 Say we're given : stock number starts at 1 ends at 3 type character finish starts at 5 ends at 9 type character stylecode starts at 11 ends at 12 type numeric how should this be read? Input stocknumber $ 1-3 finish $ 5-9 stylecode 11-12;Input stocknumber $ 1-3 finish 5-9 stylecode $ 11-12;Input $ stocknumber 1-3 $ finish 5-9 stylecode 11-12;None of these 8 Which statement redefines the value of income as 100% higher? Income=income+1*income;Income=2*income;Income=income+(income/100)*100;All of them 9 Imagine you're given in stream data. . must there be a datalines statement? YesNo A mistake in this Quiz ? Contact the author Commentaires