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
Describe the ways in which you can create macro variables? : sas-macro
Give e an example of..
what are some differences between proc summary and proc means? : Sas programming
What are all the problems you faced while validating tables and reports?
What is maximum number of rows and cols can be handled in SAS?
What is a macro routine?
What are the five ways to do a table lookup in sas? : sas-grid-administration
How to limit decimal places for variable using proc means?
What is the role of administrative users? : sas-grid-administration
How long can a macro variable be? A token? : sas-macro
Hi, If anyone has base SAS certification dumps, please share.
What versions of SAS have you used (on which platforms)?
What is a method to debug and test your SAS program?
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
Given an unsorted data set, how to read the last observation to a new data set?