statschoice.com
SAS
SASnR
Clinical Programming
CRFs
SDTM
ADaM
TFL
Tasks
Macros
Clinical Interview
CRFs
SDTM
ADaM
TFL
Tasks
Macros
QnA
Certification
Resources
Disclaimer
Contact Us
Sign Up
Login
This website uses cookies to personalize content and analyse traffic in order to offer you a better experience. By clicking "OK", or continuing using our site, you consent to the use of cookies.
OK
Quiz title : Creating and Managing Variables
Question 1 of 10
Which program creates the output shown below?
data
test2;
infile
furnture;
input
StockNum $
1
-
3
Finish $
5
-
9
Style $
11
-
18
Item $
20
-
24
Price
26
-
31
;
if
finish=
'oak'
then
delete;
retain
TotPrice
100
;
totalprice+price;
drop
price;
run
;
proc
print
data
=test2
noobs
;
run
;
data
test2;
infile
furnture;
input
StockNum $
1
-
3
Finish $
5
-
9
Style $
11
-
18
Item $
20
-
24
Price
26
-
31
;
if
finish=
'oak'
and
price<
200
then
delete;
TotalPrice+price;
run
;
proc
print
data
=test2
noobs
;
run
;
data
test2(
drop
=price);
infile
furnture;
input
StockNum $
1
-
3
Finish $
5
-
9
Style $
11
-
18
Item $
20
-
24
Price
26
-
31
;
if
finish=
'oak'
and
price<
200
then
delete;
TotalPrice+price;
run
;
proc
print
data
=test2
noobs
;
run
;
data
test2;
infile
furnture;
input
StockNum $
1
-
3
Finish $
5
-
9
Style $
11
-
18
Item $
20
-
24
Price
26
-
31
;
if
finish=oak
and
price<
200
then
delete price;
TotalPrice+price;
run
;
proc
print
data
=test2
noobs
;
run
;