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
What are pdv and it functions?
Name validation tools used in SAS
Describe what are the different levels of administrative users in sas? : sas-grid-administration
what is change analysis in sas di ? : Sas-di
What is the basic syntax style in SAS?
what is operational data and operational system? : Sas-di
what is the function of catx syntax? : Sas-administrator
how do the in= variables improve the capability of a merge? : Sas programming
Which date function advances a date, time or datetime value by a given interval?
describe how to adjust the performance of data integrator? : Sas-di
What are the data types that sas contain?
Name and describe few sas character functions that are used for data cleaning in brief.
Explain the main difference between the sas procedures and functions? : Sas-administrator
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
I have a dataset concat having a variable a b & c. How to rename a b to e & f?