c******j 发帖数: 270 | 1 data temp;
job='fa';
level='2';
job=job||level;
proc print;
run;
why in the output, job value is 'fa' instead of 'fa2'? | G********t 发帖数: 334 | 2 the length of a char variable is defined when it first appears.
In this case, the length of job is 2, because of the statement job='fa';
Therefore, 'fa2' is truncated to 'fa'. | c******j 发帖数: 270 | |
|