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

State the difference between INFORMAT and FORMAT ?

586


What are common programming errors committed in sas

665


which date function advances a date, time or datetime value by a given interval? : Sas programming

584


What are the features of base sas system?

601


what are the types of interactive display types? : Sas-bi

645






what is the Population you used in your project, is it ITT or PP?

2173


Tell me about % include and % eval? : sas-macro

674


Mention what is the difference between nodupkey and nodup options?

587


What is your favorite all time computer book? Why?

2044


What is the difference between the proc sql and data step?

653


Mention sas system options to debug sas macros.

657


What do you know about symput and symget?

719


how does sas handle missing values in procs? : Sas programming

632


What do the put and input function do?

581


name the scheduler for scheduling job and explain the scheduler? : Sas-di

582