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
Briefly explain input and put function?
How to specify variables to be processed by the freq procedure?
What is program data vector (pdv)?
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.
describe the interaction table in sas di? : Sas-di
Explain the purpose of substr functions in sas programming.
Explain append procedure?
What do the put and input function do?
For what purpose would you use the RETAIN statement?
Mention what is SAS data set?
What are the new features included in the new version of SAS Programming Language?
Which are the statements whose placement in the data step is critical?
In proc transpose and data step with arrays which one you pick?
Explain the use of proc gplot? : sas-grid-administration
How do you control the number of observations and/or variables read or written?