單項(xiàng)選擇題

哪個(gè)SAS程序讀取ID的值并保存每個(gè)Quantity值的記錄,以便為每個(gè)記錄創(chuàng)建三個(gè)觀察值?()

A.data work.sales;infile unitsold;input ID $;do week=1to 3;input Quantity :comma.;output;end;run;
B.data work.sales;infile unitsold;input ID $@@;do week=1to 3;input Quantity :comma.;output;end;run;
C.data work.sales;infile unitsold;input ID $@;do week=1to 3;input Quantity :comma.;output;end;run;
D.data work.sales;infile unitsold;input ID $@;do week=1to 3;input Quantity :comma.@;output;end;run;


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題哪個(gè)指針控件用于按順序讀取多個(gè)記錄?()

A.@n
B.+n
C./
D.all of the above

3.單項(xiàng)選擇題

下面哪一段代碼可以生成下述結(jié)果?()

A.data _null_;set work.scores;file ’c:\data\teamdat’dlm=’,’;put name highscore team;run;
B.data _null_;set work.scores;file ’c:\data\teamdat’dlm=’’;put name highscore team;run;
C.data _null_;set work.scores;file ’c:\data\teamdat’dsd;put name highscore team;run;
D.data _null_;set work.scores;file ’c:\data\teamdat’;put name highscore team;run;

4.單項(xiàng)選擇題

下述程序運(yùn)行后,變量順序是?()
data perm.update;
infile invent;
input IDnum $15-19Item $1-13Instock 21-22
BackOrd 24-25;
Total=instock+backord;
run;

A.IDnum;Item;InStock;BackOrd ;Total
B.Item;IDnum ;InStock ;BackOrd ;Total
C.Total;IDnum;Item ;InStock ;BackOrd
D.Total;Item ;IDnum ;InStock ;BackOrd