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


Please Help Members By Posting Answers For Below Questions

how can you put a "trace" in your program? : Sas programming

681


What function CATX syntax does?

777


What is PDV?

811


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

1773


what is enterprise guide? What is the use of it? : Sas programming

625






AE datasets names? how many types?

2151


What is a put statement?

777


Give e an example of..

1974


Describe the function and untility of the most difficult SAS macro that you have written.

1680


describe how to adjust the performance of data integrator? : Sas-di

649


Describe the function and untility of the most difficult SAS macro that you have written.

1813


What is auto call macro and how to create a auto call macro? What is the use of it? How to use it in sas with macros? : sas-macro

669


: and & modifiers.

958


What are the statements in proc sql?

668


Tell e how how dealt with..

1869