What will be the format for MSRP in the RPOC PRINT output?
A.
There is a syntax error in the FORMAT statement in the PROC PRINT step.
B.
Comma12. 2
C.
Dollar10.
D.
Dollar12.
The Answer Is:
B
This question includes an explanation.
Explanation:
The FORMAT statement in the DATA step assigns formats to variables for the SAS dataset being created. In the code provided, MSRP is given the dollar12. format and Invoice is given the dollar10. format. However, during the PROC PRINT step, MSRP is reassigned to the comma12.2 format. The format specified in the most recent PROC step or DATA step that executes is the one that is used in the output.
Therefore, the format for MSRP in the PROC PRINT output will be comma12.2, making the answer: B. Comma12.2
References:
SAS documentation on PROC PRINT and FORMAT statement, SAS Institute.
A00-215 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 65% Discount on All Products,
Use Coupon: "ac4s65"