what is pdv? how it is related to input buffer in sas?

Answers were Sorted based on User's Feedback



what is pdv? how it is related to input buffer in sas?..

Answer / vera royzman

Program data vector (PDV)is a logical area in memory where
SAS builds a data set, one observation at a time. When a
program executes, SAS reads data values from the input
buffer (a logical area in memory into which SAS reads each
record of raw data when SAS executes an INPUT statement) or
creates them by executing SAS language statements. The data
values are assigned to the appropriate variables in the
program data vector. From here, SAS writes the values to a
SAS data set as a single observation. When the DATA step
reads a SAS data set, SAS reads the data directly into the
program data vector.

Is This Answer Correct ?    78 Yes 0 No

what is pdv? how it is related to input buffer in sas?..

Answer / 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

what is pdv? how it is related to input buffer in sas?..

Answer / santhosh.lyathkula

input buffer contains one record of Raw data.
PDV contains one observation of dataset.

input buffer is created at the time of reading raw data to
store raw data and send to PDV.

Is This Answer Correct ?    18 Yes 6 No

what is pdv? how it is related to input buffer in sas?..

Answer / nanda katepalli

PDV is the program Data Vector. It takes each observation at
a time and allocates the length given in the input
statement.The allocation of spaces is done in the
compliation phase and the variables goes in it at the
execution phase.
Example:Builder builds the house but it is used by the people.
It has 2 variables by default which are _n_ and _error_.
_n_ gives us the observation number.
_error_ if their is no error then it is 0 or else it shows 1
even though we have 'n' no.of errors.
And then it creates 'n' no.of variables specified in the
data statement.
Input buffer is only needed for non sas files to
read the raw data and store in it. Where as, sas files do
not need the input buffer.
Example: Converting an Excel file into a sas file i.e while
converting it needs some space for storage.

Is This Answer Correct ?    11 Yes 0 No

what is pdv? how it is related to input buffer in sas?..

Answer / vinod swarna

To add to it, Input buffer is the staging area for non sas
input.

Is This Answer Correct ?    7 Yes 20 No

Post New Answer

More SAS Interview Questions

What is the difference between %local and %global? : sas-macro

0 Answers  


what is the Population you used in your project, is it ITT or PP?

0 Answers   Accenture, Quintiles,


How does proc sql work?

0 Answers  


1.How many ways are there to create variables? 2.What is CLM,how can we use it? 3.what are the advontages of data step? 4.what is the extension of editor window in SAS 9.1.3? 5.How do you copy a particular data set from one library to another? 6.what is the use of double option? 7.Advontages of Proc Report? 8.what is the basic use of where statement? 9.How do you terminate the statments in SAS Programming? 10.What is the difference between symput and symget? 11.How would a identify the local and global variable? can any one answer for the 4'th question

8 Answers   CitiGroup,


What is proc sort?

0 Answers  






What is the order of application for output data set options, input data set options and SAS statements?

0 Answers   Quintiles,


How do you test for missing values?

0 Answers   Quintiles,


tell me about use of arrays in sas

1 Answers   CoreEL,


how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5

0 Answers  


how to shift the rows to cols? eg: i have like field1 field2 field3 10 20 20 this should be displayed as field1 10 field2 20 field3 30 (without the obs col) how do this?can i use transpose or tell me suitable way to do this?

3 Answers   CMC,


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

0 Answers  


What are the default statistics for means procedure?

0 Answers  


Categories