Which INPUT statement reads the values for Lname, Fname, Department and Salary (in that order)?
1---+----10---+----20---
ABRAMS THOMAS
SALES $25,209.03
BARCLAY ROBERT
MARKETING $29,180.36
COURTNEY MARK
PUBLICATIONS $24,006.16
| a. | input #1 Lname $ Fname $ / Department $12. Salary comma10.; |
| b. | input #1 Lname $ Fname $ / Department : $12. Salary : comma.; |
| c. | input #1 Lname $ Fname $ #2 Department : $12. Salary : comma.; |
| d. | both b and c |
为什么在输入Department和Salary,要在format前加冒号 : $12. / : comma.
而下面这个程序,在输入price时,用format comman6.就不用冒号呢?
1---+----10---+----20---
SKIRT BLACK
COTTON
036499 $44.98
SKIRT NAVY
LINEN
036899 $51.50
DRESS RED
SILK
037299 $76.98
data spring.sportswr;
infile newitems;
input #1 Item $ Color $
#3 @8 Price comma6.
#2 Fabric $
#3 SKU $ 1-6;
run;
谢谢!



雷达卡


京公网安备 11010802022788号







