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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Briefly explain input and put function?

854


How to specify variables to be processed by the freq procedure?

842


What is program data vector (pdv)?

856


data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.

2037


describe the interaction table in sas di? : Sas-di

796


Explain the purpose of substr functions in sas programming.

813


Explain append procedure?

849


What do the put and input function do?

799


For what purpose would you use the RETAIN statement?

1281


Mention what is SAS data set?

908


What are the new features included in the new version of SAS Programming Language?

967


Which are the statements whose placement in the data step is critical?

1000


In proc transpose and data step with arrays which one you pick?

2803


Explain the use of proc gplot? : sas-grid-administration

772


How do you control the number of observations and/or variables read or written?

1019