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
Why and when do you use proc sql?
what is program data vector? : Sas-administrator
What are the five ways to do a table lookup in sas? : sas-grid-administration
Describe what are the different levels of administrative users in sas? : sas-grid-administration
What is the general format of function in sas? : sas-grid-administration
Name types of category in which SAS Informats are placed?
What is the use of %include statement?
what other sas products have you used and consider yourself proficient in using? : Sas programming
What is SAS informats?
What is the difference between input and infile statement?
What’s the difference between var b1 – b3 and var b1 — b3?
What was the last computer book you purchased? Why?
how could you generate test data with no input data? : Sas programming
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?
Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?