If you use both the DESCRIBE and the EXECUTE statements when you execute
a stored compiled DATA step program, SAS writes the source code to
the log. The following example executes a stored compiled DATA step
program. The DESCRIBE statement in the program writes the source code
to the SAS log.
data pgm=stored.sample;
describe;
execute;
run;
Partial SAS Log Showing the Source Code Generated by the DESCRIBE
Statement
.
.
.
190 data pgm=stored.sample;
191 describe;
192 execute;
193 run;
NOTE: DATA step stored program STORED.SAMPLE is defined as:
data out.sample / pgm=stored.sample;
set in.sample;
if code = 1 then
do;
Type='Perennial';
number+4;
end;
else
if code = 2 then
do;
Type='Annual';
number+10;
end;
else
do;
Type='ERROR';
Number=0;
end;
run;
NOTE: DATA STEP program loaded from file STORED.SAMPLE.
NOTE: There were 7 observations read from the data set IN.SAMPLE.
NOTE: The data set OUT.SAMPLE has 7 observations and 4 variables.
NOTE: DATA statement used (Total process time):
real time 0.03 seconds
cpu time 0.00 seconds