46.0k views
5 votes
What happens if you submit the following program?

porc print data=work.newsalesemps;
run;

a. SAS does not execute the step.
b. SAS assumes that PROC is misspelled and executes the step.

User Cudos
by
8.0k points

1 Answer

5 votes

Final answer:

The SAS program with the misspelled 'porc' keyword will not execute due to incorrect syntax. SAS will generate an error message, and the step will not be executed until the user corrects the typo and resubmits a correctly spelled command.

Step-by-step explanation:

If you submit the program with the line porc print data=work.newsalesemps;run;, SAS will not execute the step because 'porc' is not a recognized statement in SAS. SAS requires correct syntax to execute any procedural step, and if the syntax is incorrect, as with the misspelling of PROC, SAS generates an error message instead of executing the step.

In cases where there are typos or syntax errors, SAS typically provides messages in the log to help identify and correct the issues. It's important to carefully review and correct such errors before successful execution can occur. It is also worth noting that unlike some other software, SAS does not auto-correct misspelled keywords like 'porc' to the intended 'PROC'.

User Kbrimington
by
8.8k points