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


Please Help Members By Posting Answers For Below Questions

Describe the ways in which you can create macro variables? : sas-macro

584


Give e an example of..

1859


what are some differences between proc summary and proc means? : Sas programming

515


What are all the problems you faced while validating tables and reports?

3024


What is maximum number of rows and cols can be handled in SAS?

866






What is a macro routine?

2110


What are the five ways to do a table lookup in sas? : sas-grid-administration

605


How to limit decimal places for variable using proc means?

598


What is the role of administrative users? : sas-grid-administration

673


How long can a macro variable be? A token? : sas-macro

730


Hi, If anyone has base SAS certification dumps, please share.

1394


What versions of SAS have you used (on which platforms)?

1031


What is a method to debug and test your SAS program?

733


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

1364


Given an unsorted data set, how to read the last observation to a new data set?

845