At compile time when a SAS data set is read, what items are
created?
Answer Posted / dharmendra sharma
Sas process data steps in two phase.
1) Compilation phase
2) Execution Phase
Compilation phase :- When sas see the 'DATA' statement it get to know that it needs to process this data-steps. During this compilation phase SAS did some pre-house preparation. In this case it set aside some portion of memory for storing sas dataset.
It initially creates input buffer that holds one line (observation) one time.
For this first it read INFILE from the dataset statement and then get to know that all types of variable we are going to read from the infile. It then find out that which variable is of what type and what it the record length. If we are reading list input (infile seperated using space delimeters) then it will assign 8 bytes length to each variable.
for characher 8 bytes means ---->>> 8 character.
for Numeric 8 bytes means ---->>> 14 to 15 significant digits.
Then this all information is stored in to the Descriptor portion. Here Compilation phase ended.
At the starting of Execution phase. Sas reads values from the input buffer and then stores these information in data variables one by one. And the values are stored in PDV, which write value in dataset at the end of the datastep --->>> because automatically sas put a OUTPUT statement at the end of each datastep.
During compilation phase sas also creates two variable autmatically:-
_N_ and _ERROR_
:) I hope we can have some good understanding related to PDV and Input buffer and Descriptor portion.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the different types of sas functions?
What areas of SAS are you most interested in?
What do you know about sas data set?
What would be the value of month at the end of data step execution and how many observations would be there?
What is the difference between one to one merge and match merge? Give an example.
How does the internal authentication work in sas? : sas-grid-administration
it will become easy if uuu provide website linkssss and list of consultanciessssss
what are the scrubbing procedures in sas? : Sas programming
What are the default statistics that proc means produce?
If money were no object, what would you like to do?
What are types of transport files?
What is the difference between SAS functions and procedures?
What are the difficulties u faced while doing vital signs table or dataset?
What is the basic syntax of a sas program?
how to generate the test data in sas without input data? : Sas-administrator