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

How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

738


What is PROC in SAS?

707


What are the parameters of scan function?

731


What are the statements that are executed only?

774


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

1773






In ARRAY processing, what does the DIM function do?

807


what other sas products have you used and consider yourself proficient in using? : Sas programming

779


how does sas handle missing values in a merge? : Sas programming

653


what is study design in while working with SAS? what are screening variables in SAS?

1796


What sas features do you use to check errors and data validation?

820


How does proc sql work?

719


how many types of prompts are there? : Sas-bi

642


how to debug and test the sas program? : Sas-administrator

668


hi all, I need the SAS DI DUMP(A00 260) for attending the certification. if any one have, pls provide it.Please Email to vrpotluri@hotmail.com. Thanks - Ramana

5024


What is maximum storage capability of SAS?

989