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
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 |
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 |
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 |
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 |
diff between nodup rec and ondup key???
how to generate report for 0 observation dataset?
Tell me about % include and % eval? : sas-macro
what is the effect of the options statement errors=1? : Sas programming
Explain the use of proc gplot? : sas-grid-administration
What is the function of output statement in a SAS Program?
What do the mod and int function do? : Sas programming
what are the differences between proc report and proc tabulate?
libname deepak 'C:\SAS Files'; proc format; invalue convert 'A+' = 100 'A' = 96 'A-' = 92 'B+' = 88 'B' = 84 'B-' = 80 'C+' = 76 'C' = 72 'F' = 65; data deepak.grades; input ID $3. Grade convert.; *format Grade convert. ; datalines; 001 A- 002 B+ 003 F 004 C+ 005 A ; proc print data = deepak.grades; run; I get the following output Obs ID Grade 1 001 . 2 002 . 3 003 . 4 004 . 5 005 . I don’t understand why Grade shows up as a missing value. Everything seems fine, including ID $3. Now, in case I use ID : $3. Or use column input, I get the desired output. Kindly help Deepak
What are the uses of sas?
Differentiate between proc means and proc summary.
How the Excel file enter into the SAS environment without Code of Infile & Import procs,if i have no file Conversion?