Question 48 :
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?
- FA
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering SAS Certification Material
Correct Answer : 1
Exp : length of JobCategory already set to 2 by the first assignment statement
jobcategory='FA';
after this jobcategory variable's length is two bytes,it can hold only two bytes.
Eventhough there is no mistake in the step
jobcategory=jobcategory || joblevel;
jobcategory carries the value FA.
You can access to full explanation to question and answer from this page.