What is a method to debug and test your SAS program?



What is a method to debug and test your SAS program?..

Answer / Gyanendra Kumar Singh

Debugging and testing a SAS program can be done using the LOG, PUT, and RUN statements. The LOG statement writes diagnostic information to the SAS log, while the PUT statement writes data to the SAS log or a user-specified output file for inspection. The RUN statement allows you to test part of your code without running the entire program.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

how to change the execute of macro

1 Answers   Mind Tree,


what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming

1 Answers  


Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro

1 Answers  


what is the difference between x=substr(name,1,2); and substr(name,1,2)='x';

3 Answers   HSBC,


How do you add a number to a macro variable?

2 Answers  


Describe the types of SAS programming tasks that you performed like Tables? Listings? Graphics? Ad hoc reports? Other?

4 Answers   HP, Oracle,


Differences between where and if statement?

1 Answers  


How do you add a number to a macro variable?

2 Answers  


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data set to a second data set, and the non-matches of the right-most data set to a third data set.

10 Answers   Accenture,


Why and when do you use proc sql?

1 Answers  


create macros---you have 365 number of data and you need to merge it throw the macros,,,,,, data file1; input a @@; cards; 1 2 3 4 ; run; data file2; input a @@; cards; 5 6 7 8 ; run; data file3; input a @@; cards; 9 10 11 12 ; run;data file4; input a @@; cards; 13 14 15 16 ; run;

6 Answers   WNS,


Hot to suppress characters from a given string?

4 Answers   CTS,


Categories