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?

Answers were Sorted based on User's Feedback



What is the Program Data Vector (PDV)? What are its functions?..

Answer / nishant

When SAS processes a data step it has two phases.
Compilation phase and execution phase.
During the compilation phase the input buffer is created to
hold a record from external file. After input buffer is
created the PDV is created. The PDV is the area of memory
where sas builds dataset, one observation at a time. The PDV
contains two automatic variables _N_ and _ERROR_.

Is This Answer Correct ?    32 Yes 1 No

What is the Program Data Vector (PDV)? What are its functions?..

Answer / poornima

PDV (Program Data Vector) is a logical area in memory where
SAS creates a dataset one observation at a time.

Is This Answer Correct ?    15 Yes 0 No

What is the Program Data Vector (PDV)? What are its functions?..

Answer / cutepa1

To the above answers I like to add a bit of information that
PDV has even more automated variables such as
FIRST.<by-group-variable>, LAST.<by-group-variable>, _END_,
...etc, along with _ERROR_ and _N_ where each has got its
own significance to have a control over the execution of a
SAS Program.

Is This Answer Correct ?    6 Yes 0 No

What is the Program Data Vector (PDV)? What are its functions?..

Answer / raj

It is a logical area in memory where SAS builds a data set,
one observation at a time. When a program executes, SAS
reads data values from the input buffer or creates them by
executing SAS language statements. The data values are
assigned to the appropriate variables in the program data
vector. From here, SAS writes the values to a SAS data set
as a single observation.
Along with data set variables and computed variables, the
PDV contains two automatic variables, _N_ and _ERROR_. The
_N_ variable counts the number of times the DATA step
begins to iterate. The _ERROR_ variable signals the
occurrence of an error caused by the data during execution.
The value of _ERROR_ is either 0 (indicating no errors
exist), or 1 (indicating that one or more errors have
occurred). SAS does not write these variables to the output
data set.

Is This Answer Correct ?    5 Yes 0 No

What is the Program Data Vector (PDV)? What are its functions?..

Answer / 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

More SAS Interview Questions

1.How many ways are there to create variables? 2.What is CLM,how can we use it? 3.what are the advontages of data step? 4.what is the extension of editor window in SAS 9.1.3? 5.How do you copy a particular data set from one library to another? 6.what is the use of double option? 7.Advontages of Proc Report? 8.what is the basic use of where statement? 9.How do you terminate the statments in SAS Programming? 10.What is the difference between symput and symget? 11.How would a identify the local and global variable? can any one answer for the 4'th question

8 Answers   CitiGroup,


What was the last computer book you purchased? Why?

0 Answers   Oracle,


Which are SAS Windows Clients & SAS Java Clients

3 Answers   TCS,


What are the criticality that you have faced during your project in SAS?

2 Answers  


What are the different operating system platforms in which we can use sas? : sas-grid-administration

0 Answers  


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

0 Answers  


How do you download a flat file from Mainframe to your local PC using SAS?

3 Answers  


What is the Program Data Vector (PDV)? What are its functions?

5 Answers   Accenture,


What is the Program Data Vector (PDV) and What are its functions?

9 Answers  


how do you validate sas program?

6 Answers   Accenture,


How would you define the end of a macro?

0 Answers  


Tell me more about the parameters in macro? : sas-macro

0 Answers  


Categories