What is the Program Data Vector (PDV)? What are its functions?
Answer Posted / raj
It 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 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.
Along with data set variables and computed variables, the
PDV contains two automatic variables, _N_ and _ERROR_. The
_N_ variable counts the number of times the DATA step
begins to iterate. The _ERROR_ variable signals the
occurrence of an error caused by the data during execution.
The value of _ERROR_ is either 0 (indicating no errors
exist), or 1 (indicating that one or more errors have
occurred). SAS does not write these variables to the output
data set.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are the parameters of scan function?
if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming
Explain what Proc glm does?
What is the difference between class statement and by statement in proc means?
what is function of retain statment
How would you invoke a macro? : sas-macro
what are _numeric_ and _character_ and what do they do? : Sas programming
Differences between where and if statement?
Mention common programming errors committed in sas ?
what is hash files in sas and why we are using this one in sas?
Explain data step in SAS
Explain the purpose of substr functions in sas programming.
Give e an example of..
Tell me more about the parameters in macro? : sas-macro
What is the use of stop statement?