mycsg.in
SAS
SASnR
Clinical Programming
CRFs
SDTM
ADaM
TFL
Tasks
Macros
QnA
Certification
Resources
Disclaimer
Contact Us
Training
Sign Up
Login
New or returning user — sign in with Google for instant login, no password needed.
Sign in with Google
Maybe later
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
;