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?
Answer A is correct. When program complies, SAS created PDV and column length of Job description is 2 as per assignment value in program. It wont change once PDV is defined.
no, given answer A is correct, because the length of the variable is defined as 2 with this line: JobCategory = 'FA'; The last line is redefining the value of the same variable (there is no new variable), but the length can not be changed and the new value FA1 is truncated and remains as FA.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Mandar77
2 years, 5 months agomhminkov
3 years, 5 months agoKleinstone
3 years, 10 months ago