From: "Data _null_;" on
I want to write a stored compliled program and when the REDIRECT INPUT
statement is used when the program is called, I want to be able to
determine the name used in the REDIRECT statement. Like a function
perhaps

newname = REDIRECTEDINPUT(oldname);

Here is example of using redirected input. I want to know that
SASHELP.CLASS is being used for CLASS;

data class;
stop;
set sashelp.class;
run;

data _null_ / pgm=test;
set class;
put _all_;
run;

data pgm=test;
redirect input class=sashelp.class;
run;