what is pdv? how it is related to input buffer in sas?
Answer Posted / anuj goyal
pdv is though a logical concept only but helps u to
understand the most important i.e, THE DATA STEP.
Two things u need to understand the compilation Phase and
the Execution Phase.
While reading a Raw data file:-
1) Compilation Phase - it checks for syntax errors and
conversion of ur data step into the machine code along with
creation of two things viz. INPUT BUFFER and PDV.
At the end of compilation phase u will have these two things
with u (Input Buffer and PDV).
In PDV all the variables present in the INPUT statement in
the data step will be give place in ur PDV as per the length
mentioned by u.
2) Execution Phase - Before beginning of the this phase all
the variables will be initialized to missing(if character)
and periods(if numeric)[use "put _all_" statement to check
ur PDV status in the log].
Then when the input statement is encountered for the first
time The first record from raw data file is moved from it to
ur INPUT BUFFER. Then one to one mapping is done and data is
then again moved to PDV(So u can can take input buffer as a
temporary storage area for ur data, one at a time). Then
when run statement is encountered, then the implicit OUTPUT
statement forces the read data row to the output data set.
| Is This Answer Correct ? | 26 Yes | 4 No |
Post New Answer View All Answers
Explain the use of proc gplot? : sas-grid-administration
What is the role of unrestrictive users? : sas-grid-administration
what is data access? : Sas-di
Which function is used to count the number of intervals between two sas dates?
what is the limit of the number of the rows and columns available in the worksheet? : Sas-bi
Of all your work, where have you been the most successful?
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
what is change analysis in sas di ? : Sas-di
Explain input and put function?
how to debug and test the sas program? : Sas-administrator
What are the functions which are used for character handling functions?
What is the difference between input and infile statement?
What is connection profile? : sas-grid-administration
Compare sas with other data analytics tools.
How do dates work in SAS data?