What is the Program Data Vector (PDV)? What are its functions?

Answer Posted / pambrose

Source: SAS book

The PDV contains all the variables in the input data set, the variables created in DATA step statements, and the two variables, _N_ and _ERROR_, that are automatically generated for every DATA step. The _N_ variable represents the number of times the DATA step has iterated. The _ERROR_ variable acts like a binary switch whose value is 0 if no errors exist in the DATA step, or 1 if one or more errors exist

Variables that are created by the INPUT and the Sum statements are set to missing initially. Note that in this representation, numeric variables are initialized with a period and character variables are initialized with blanks. The automatic variable _N_ is set to 1; the automatic variable _ERROR_ is set to 0.

The variable TeamName is marked Drop in the PDV because of the DROP= data set option in the DATA statement. Dropped variables are not written to the SAS data set. The _N_ and _ERROR_ variables are dropped because automatic variables created by the DATA step are not written to a SAS data set

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the different between functions and procs that calculate the same simple descriptive statistics? : Sas programming

813


Mention sas system options to debug sas macros.

909


what is sas database server? : Sas-di

810


If a variable contains only numbers, can it be a character data type?

851


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

752


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

1025


how will you locate the sas platform applications? : Sas-bi

797


why is a stop statement needed for the point=option on a set statement? : Sas programming

822


How to create list output for cross-tabulations in proc freq?

851


name some data transformation used in sas di? : Sas-di

744


how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

830


Name any two sas spawners? : sas-grid-administration

775


what are several options for creating reports in web report studio? : Sas-bi

851


Give e an example of..

2110


how would you determine the number of missing or nonmissing values in computations? : Sas programming

906