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
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
What do the put and input function do?
How do you specify the number of iterations and specific condition within a single do loop?
how does sas handle missing values in sort order? : Sas programming
what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi
What is maximum number of rows and cols can be handled in SAS?
Explain the special input delimiters used in sas programming.
Tell e how how dealt with..
Given an unsorted data set, how to read the last observation to a new data set?
What is the good sas programming practices for processing large data sets?
how could you generate test data with no input data? : Sas programming
Mention how to limit decimal places for the variable using proc means?
What areas of SAS are you most interested in?
What is the difference between input and infile statement?
Name validation tools used in SAS