For some procs, if you don't specify a data=, then it will use the last active dataset.
Here's an example:
proc sort data=sashelp.class; by age; run;
proc plot; plot height*weight; run;
But I would recommend always specifying the data=, so there is no uncertainty, like:
proc plot data=sashelp.class; plot height*weight; run;
... View more