Hi there.
This is more a curiosity that a problem.
Most experienced SAS programmers will be familiar with the concept of the Program Data Vector (PDV) and how SAS populates it with variables as a SAS Data Step is compiled.
This little excerpt from a SUGI paper sums up how I understand it:
"Variables are added to the PDV in the order seen by
the compiler during parsing and interpretation of
source statements."
If so can anyone explain to me what is going on here:
data WORK.RESULTS;
first = second + third;
run;
As I understand it variables should appear in the output data set ordered 'first', 'second' and 'third'.
Instead, they appear ordered 'first', 'third' and 'second'.
What's going on?
Cheers,
Chris...
This is more a curiosity that a problem.
Most experienced SAS programmers will be familiar with the concept of the Program Data Vector (PDV) and how SAS populates it with variables as a SAS Data Step is compiled.
This little excerpt from a SUGI paper sums up how I understand it:
"Variables are added to the PDV in the order seen by
the compiler during parsing and interpretation of
source statements."
If so can anyone explain to me what is going on here:
data WORK.RESULTS;
first = second + third;
run;
As I understand it variables should appear in the output data set ordered 'first', 'second' and 'third'.
Instead, they appear ordered 'first', 'third' and 'second'.
What's going on?
Cheers,
Chris...