if a program has some 1000 or more line and how to know whether the syntax of the particular code is correct without checking it manually

Answers were Sorted based on User's Feedback



if a program has some 1000 or more line and how to know whether the syntax of the particular code is..

Answer / naresh

Use options OBS = 0, no replace; Execute your prog. To set normally options OBS = MAX replace;

Is This Answer Correct ?    11 Yes 3 No

if a program has some 1000 or more line and how to know whether the syntax of the particular code is..

Answer / huan

data test;
[statement lines];
run CANCEL;

CK
http://support.sas.com/documentation/cdl/en/lrdict/64316/HTM
L/default/viewer.htm#a000214506.htm

Is This Answer Correct ?    2 Yes 1 No

if a program has some 1000 or more line and how to know whether the syntax of the particular code is..

Answer / sasswarup

Syntax errors occur when program statements do not conform to the rules of the SAS language.

Here are some examples of syntax errors:
1.misspelled SAS keyword
2.unmatched quotation marks
3.missing a semicolon
4.invalid statement option
5.invalid data set option

So, the code color gets changed in the editor and we can find out easily.

Is This Answer Correct ?    0 Yes 0 No

if a program has some 1000 or more line and how to know whether the syntax of the particular code is..

Answer / ashish

You can check answers here second anwer has pdf attached which is good

http://stackoverflow.com/questions/836157/in-sas-what-are-good-techniques-options-for-catching-syntax-errors

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

How do i read multiple spaces in datasets?

4 Answers   Quintiles,


What is the difference between %put and symbolgen? : sas-macro

0 Answers  


is there any difference between proc summary and proc means?

3 Answers  


how to generate the test data in sas without input data? : Sas-administrator

0 Answers  


When looking for data contained in a character string of 150 bytes, which function is the best to locate that data: scan, index, or indexc?

2 Answers   Accenture,


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

1 Answers   GSK GlaxoSmithKline,


Explain why double trailing @@ is used in input statement?

0 Answers  


Hi Friends, Am Priya,new to your forum. am looking for Interview questions on SAS Platform Administration. I searched everywhere but I couldn't find them,please can anyone help me with complete interview questions normally everyone will face in the interviews on SAS Administration. am really facing problems in the interviews,am not able to answer any of their questions. I would really appreciate all your help if you can email the complete Interview Questions to priyafeb84@gmail.com Kindly awaiting for your reply with eager

0 Answers  


If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn?t have a value?

6 Answers  


What are the parameters of scan function?

0 Answers  


Name statements that are execution only?

7 Answers  


how does sas handle missing values in assignment statements? : Sas programming

0 Answers  


Categories