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 scrubbing procedures in sas?
How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?
Why and when do you use proc sql?
What are the 3 components in sas programming?
what is hierarchy flattening? : Sas-di
What is interleaving in SAS?
what is sas database server? : Sas-di
explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di
What are the different versions of sas that you have used until now? : sas-grid-administration
What are the default statistics for means procedure?
what versions of sas have you used (on which platforms)? : Sas programming
Compare sas with other data analytics tools.
Give some examples where proc report’s defaults are same as proc print’s defaults?
what is treatment emergent events and treatment emregent adverse event
Why double trailing @@ is used in input statement?