What is the Program Data Vector (PDV) and What are its
functions?
Answer Posted / murray
The PDV can also contain user invoked temporary variables
such as IN, END and FIRST.by and LAST.by.
In a nutshell, IN indicates if an observation originated in
a specified input data set, END indicates if an observation
is the last observation in a specified input data set, and
FIRST.by and LAST.by indicate if an observation is either
the first or last observation of any specified BY variables
(the data set must first be sorted accordingly). See SAS
help for more details.
These automatic vars (_N_ and _ERROR_) and temporary
variables are not written to the output data set, however
their values can be assigned to user defined variables.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
what r the job openings SAS for fresher graduates !
how will you locate the sas platform applications? : Sas-bi
What is substr function?
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
Difference between informat and format?
Explain the difference between nodup and nodupkey options?
How do you convert basic cube to transaction cube and transaction cube to basic cube?
how will you location sas platform applications available from web browser? : Sas-bi
what is the function of catx syntax? : Sas-administrator
What does the trace option do?
How do you use the do loop if you don’t know how many times you should execute the do loop?
Explain how merging helps to combine data sets.
Explain proc univariate?
what is sas business intelligence? : Sas-bi