Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

For what purpose would you use the RETAIN statement?

1524


how does sas handle missing values in sort order? : Sas programming

919


Describe the function and untility of the most difficult SAS macro that you have written.

2219


Tell e how how dealt with..

2226


Explain the main difference between the sas procedures and functions? : Sas-administrator

1072


What do the sas log messages “numeric values have been converted to character” mean? What are the implications?

1192


What is a method to debug and test your SAS program?

1374


What is the use of function Proc summary?

1285


How would you define the end of a macro?

1097


What are the data types does SAS contain?

1116


What is data _null_?

1145


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

1318


Give some examples where proc report’s defaults are same as proc print’s defaults?

1113


what is data governance? : Sas-di

1025


How do you add a number to a macro variable? : sas-macro

1011