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 is the difference between using drop = data set option in data statement and set statement?
What is the function of Stop statement in a SAS Program?
How can I remove header from output data set?
What are the features of base sas system?
This entry was posted in General. Bookmark the permalink. Post a comment or leave
: and & modifiers.
How to import multiple xls files into sas. Out of those files, how to get different values from a single variable and how to find number of rows per value type? We can do this using group by for one xls file with proc sql. Was wondering how I can achieve this for multiple files at the same time. Any ideas?
What are all the problems you faced while validating tables and reports?
how to read the variables in sas? : Sas-administrator
What is the difference between %local and %global? : sas-macro
Mention how to limit decimal places for the variable using proc means?
what is sas and what are the functions? : Sas-administrator
How would you determine the number of missing or nonmissing values in computations?
hi tell be about pfizer? how to compare the work with other companies ? please tell me how to login and work also?
what is null hypothesis? why do you consider that?