The following SAS program is submitted:
data work.staff;
JobCategory = 'FA';
JobLevel = '1';
jobCategory = JobCategory||JobLevel;
run;
which one of the following is the value of the variable JOBCATEGORY in the
output data set?
A FA
B FA1
C FA 1
D ''(missing character value)
我用sas试了一下, 产生的是B:FA1, 但答案是A, 能不能请教一下这是为什么?
h********o 发帖数: 103
2
The Answer A is correct. Since the statement "JobCategory = 'FA';
"define the length of JobCategory which is 2. I am curious How you can get
the result of "FA1" with SAS?
l******h 发帖数: 855
3
i see. sorry maybe I accidentally used a lower case for the last variable.
Thank you very much!