mycsg.in
SAS
SASnR
Clinical Programming
CRFs
SDTM
ADaM
TFL
Tasks
Macros
Quizzes
Resources
Disclaimer
Contact Us
Search lessons
Close
×
Search lessons
⚲
Search
Area
All areas
Clear filters
Type at least 3 characters to see matching lessons.
Advertisement
1 / 10
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
;
Saving progress…
My progress
⚑
Something not right with this question?
Report it
Advertisement
Report this question
×
Quiz:
Loading the question…
Question
What's the issue?
The marked correct answer is wrong
Question is unclear / insufficient information
Pick the correct answer
marked correct
Describe the issue
(optional)