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
What was the last computer book you purchased? Why?
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
Assuming {et} is randomly drawn from N(0,1) and e0 = 0, generate 200 observations of xt = et − 0.5e(t−1) and draw a line graph of xt.
What is Linear Regression?
What is the difference between class statement and by statement in proc means?
In SAS explain which statement does not perform automatic conversions in comparisons?
What are the functions which are used for character handling functions?
What are the applications primarily used by business analyst? : Sas-bi
How do you define proc in sas? : sas-grid-administration
What is the difference between %local and %global? : sas-macro
What is PROC in SAS?
why is sas considered self-documenting? : Sas programming
Have you ever used the SAS Debugger?
Explain append procedure?
What are all the problems you faced while validating tables and reports?