Multiple choice technology programming languages

The value 110700 is stored in a numeric variable.which one of the following SAS formats is used to display the value as $110,700.00 in a report.

  1. comma11.2

  2. comma8.2

  3. dollar11.2

  4. dollar8.2

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

To display 110700 as '\$110,700.00', you need the DOLLAR format with comma separator and 2 decimal places. 'dollar11.2' provides width 11 (enough for '\$110,700.00' which is 11 characters including dollar sign, comma, and decimal point) with 2 decimal places. 'comma11.2' and 'comma8.2' lack the dollar sign prefix, while 'dollar8.2' is too narrow (only 8 characters).