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 do the sas log messages “numeric values have been converted to character” mean? What are the implications?

977


Give e an example of..

2131


What is the difference between class statement and by statement in proc means?

919


How to read an input file in sas?

930


What can you learn from the SAS log when debugging?

1145


How can you limit the variables written to output dataset in data step?

1057


what are the softwares and applications that are used most frequently used by sas bi applications developers? : Sas-bi

800


Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

1988


what is the difference between nodup and nodupkey options? : Sas programming

894


do you need to know if there are any missing values? : Sas programming

788


how many display types available in sas bi dashboard? : Sas-bi

861


Explain why double trailing @@ is used in input statement?

829


How would you include common or reuse to be processed along with your statements?

2148


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

1837


What does PROC print, and PROC contents do?

981