Why is SAS considered self-documenting?



Why is SAS considered self-documenting?..

Answer / ravi gupta

I think this is because in SAS by default we get detailed log.. listing out each and every step with ERROR/WARNINGs or NOTES, this is quite helpful in debugging.
On top of it you also have debugging options like - MACROGEN SYMBOLGEN MLOGIC MPRINT MFILE, which allows you to dig deeper and get even more detailed logs.

Looking at SAS log only you can make out what exactly the code is doing... you get the whole story documented itself - how many observations where read from input dataset and how many variables the new dataset have and if a variable was left uninitialised or truncated and lot more.
Its so well documented that you can retrieve your SAS code from its log using a simple regular expression.
However, I struggled to get SAS like logs in R & Python.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More SAS Interview Questions

how to remove duplicates using proc sql?

1 Answers  


There is a field containing a date. It needs to be displayed in the format “ddmonyy” if it’s before 1975,”dd mon ccyy” if it’s after 1985, and as ‘disco years’ if its between 1975 and 1985. How would you accomplish this in data step code? Using only PROC FORMAT.

3 Answers   CTS,


Under what circumstances would you code a SELECT construct instead of IF statements?

4 Answers  


How would you include common or reuse code to be processed along with your statements?

5 Answers   PSCI,


If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?

4 Answers  


Differentiate between ceil and floor functions.

1 Answers  


How will you generate test data with no input data?

1 Answers  


how do you validate tables abd reports?

2 Answers   Accenture, Quintiles,


What are the ways in which macro variables can be created in sas programming?

1 Answers  


What is program data vector (pdv) and what are its functions?

1 Answers  


is QUALCOMM using SAS ?

1 Answers  


data task; input id date date9. visit; cards; 101 01jan2015 1 101 02jan2015 2 101 06jan2015 3 102 04jan2015 1 102 07jan2015 2 102 12jan2015 3 103 06jan2015 1 103 13jan2015 2 ; run; write a program to find out missing dates between visits by each subject.

1 Answers  


Categories