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

what is TAB delimiter? explain about it? what will you do to get TAB delimiter?

3 Answers   Cap Gemini,


is it possible to generate sas datasets using proc print ???

1 Answers   GSK GlaxoSmithKline,


Difference between sum function and using “+” operator?

0 Answers  


what are the scrubbing procedures in sas? : Sas programming

0 Answers  


What is the work of tranwrd function?

0 Answers  


What is the use of %include statement?

0 Answers  


Describe 5 ways to do a “table lookup” in SAS?

0 Answers  


We want to merge file A and B. File A has variable age, file B provide birthdate. How to merge the data according to age in file B

3 Answers  


what are different type of sas servers ? On which server does the sas code execute ?

4 Answers   TCS,


What is slibref?

0 Answers  


Can anyone help to find a statement to get all the predefined formats?

3 Answers   Verinon Technology Solutions,


Explain how merging helps to combine data sets.

0 Answers  


Categories