Question

A) SASUSER B) Work C) AV D) SASHELP How can you limit the variables written to output dataset in DATA STEP? a. DROP b. KEEP C. RETAIN d. VAR e. Both A or B Both A, B or C
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer: Option e, Both A or B.

A) In DATA step one can use DROP(Syntax: DROP=Variable-1 <...Variable-n>) data set option with input and output data sets. If it is used with input data set the corresponding variables specified with DROP are not available for processing in DATA step. If it is used with output data set, corresponding variables specified with DROP are not written to the output data set by SAS.

B) Similar to DROP, KEEP(Synatax: KEEP=Variable-1 <...Variable-n>) can also be used with both input and output data sets. If KEEP is associated with input, then the variables specified by KEEP are only available for processing. If KEEP is associated with ouput data set then the variables specified by KEEP are written as ouput data set but all the variables are available for processing.

C) RETAIN statement is used to retain values of variables (created using INPUT and assignment statements) in the previous iteration to the current/present iteration of DATA.

D) VAR is used to specify the analysis variables and also to specify their order in output.

So Both A or B can be used to limit the variables written to output dataset in DATA STEP.

Add a comment
Know the answer?
Add Answer to:
A) SASUSER B) Work C) AV D) SASHELP How can you limit the variables written to...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT