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
How can I remove header from output data set?
how does sas handle missing values in assignment statements? : Sas programming
What are the five ways to do a table lookup in sas? : sas-grid-administration
Explain the difference between nodup and nodupkey options?
How do you specify the number of iterations and specific condition within a single do loop?
how does sas handle missing values in formats? : Sas programming
Difference between sum function and using “+” operator?
Explain the use of proc gplot? : sas-grid-administration
Describe crosslist option in tables statement?
what is ae onset date n what is RDS
Can you execute a macro within a macro? Describe. : sas-macro
what has been your most common programming mistake? : Sas programming
Which are the statements whose placement in the data step is critical?
what is transformation in sas data integration? : Sas-di
How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?