What does the following log indicate about your program?
ERROR 22-322: Syntax error, expecting one of the following:
ERROR 76-322: Syntax error, statement will be ignored.
11 run;
all of the above
SAS identifies a syntax error at the position of the VAR statement.
SAS is reading VAR as an option in the PROC PRINT statement.
SAS has stopped processing the program because of errors.
SAS identifies a syntax error at the position of the VAR statement.
SAS is reading VAR as an option in the PROC PRINT statement.
SAS has stopped processing the program because of errors.
all are true.
Now you have to ask yourself: what could be the reason for SAS to find a syntax error where VAR appears in the code?
Hint: Maxim 1 (read the documentation): http://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.3&docsetId=proc&docsetTarget=p10qiuo2..., see the examples section for selecting variables.
Seems to be copied from an exam ... and what is your question?
Actually can you explain me the correct option. I have found this question in a sample set for sas base certification.
SAS identifies a syntax error at the position of the VAR statement.
SAS is reading VAR as an option in the PROC PRINT statement.
SAS has stopped processing the program because of errors.
all are true.
Now you have to ask yourself: what could be the reason for SAS to find a syntax error where VAR appears in the code?
Hint: Maxim 1 (read the documentation): http://documentation.sas.com/?cdcId=pgmsascdc&cdcVersion=9.4_3.3&docsetId=proc&docsetTarget=p10qiuo2..., see the examples section for selecting variables.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.