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
What is the role of administrative users? : sas-grid-administration
What commands are used in the case of including or excluding any specific variables in the data set?
how are numeric and character missing values represented internally? : Sas programming
Name few SAS functions?
if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation
What is the difference between one to one merge and match merge? Give an example.
What is maximum number of rows and cols can be handled in SAS?
what type of graphs we will create(for 2+years candidates)?
what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming
how will you location sas platform applications available from web browser? : Sas-bi
what are the benefits of data integration? : Sas-di
How can you create a macro variable with in data step? : sas-macro
How would you determine the number of missing or nonmissing values in computations?
For what purpose would you use the RETAIN statement?
How does the internal authentication work in sas? : sas-grid-administration