how do u test a pros sql(works or not) without executing it?



how do u test a pros sql(works or not) without executing it?..

Answer / amit gupta

you have 2 different ways for that.
1. using Noexec option
2 using Validate option

Noexec option checks the all queries written in proc sql
step while Validate checks only single query.

syntex:
Proc sql noexec;
create table stu as
select name from student;

create table emp as
select empname from employee;
quit;

In this example noexec will check the syntex of both query.

proc sql;
validate
select * from emp;
validate
select * from stu;
quit;

In this validate will check each query individually.

Is This Answer Correct ?    29 Yes 0 No

Post New Answer

More SAS Interview Questions

Do you need to combine data sets? How should you combine data sets– MERGE or SET statements in DATA steps,PROC APPEND,PROC SQL?

3 Answers  


What is by-group processing?

0 Answers  


Which of the following is not created during compilation phase?

2 Answers   SAS,


Mention sas system options to debug sas macros.

0 Answers  


Have you used macros? For what purpose you have used? : sas-macro

0 Answers  






What is substr function?

0 Answers  


what is null hypothesis? why do you consider that?

0 Answers   Accenture, Quintiles,


How to get part of string form the source string without using sub string function in SAS?

3 Answers  


Explain the purpose of retain statement.

0 Answers  


Difference between sum function and using “+” operator?

0 Answers  


Explain the special input delimiters used in sas programming.

0 Answers  


How experienced are you with customized reporting and use of Data _Null_ features?

4 Answers   Oracle,


Categories