Multiple choice technology programming languages

The value 110700 is stored in a numeric variable named SALARY. Which FORMAT statement displays the value as $110,700.00 in a report?

  1. format salary dollar11.2;

  2. format salary comma11.2;

  3. format dollar8.2;

  4. format salary comma8.2 dollar8.2;

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

The DOLLAR format in SAS adds both the dollar sign and comma separators. The width 11 accommodates $110,700.00 (10 characters) and the .2 specifies two decimal places. The COMMA format only adds separators without the dollar sign. Option C is missing the variable name, and D incorrectly attempts multiple formats.