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
What’s the difference between var b1 – b3 and var b1 — b3?
What are the parameters of scan function?
what are some differences between proc summary and proc means? : Sas programming
How would you include common or reuse to be processed along with your statements?
How do dates work in SAS data?
Have you ever used the SAS Debugger?
Mention how to limit decimal places for the variable using proc means?
What are the different servers in sas? : sas-grid-administration
What are the functions used for character handling?
how does sas handle missing values in sort order? : Sas programming
How we can call macros with in data step? : sas-macro
What are the difficulties u faced while doing vital signs table or dataset?
What are the differences between proc means and proc summary?
Differences between where and if statement?
Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya