From: ash007 on
Hello Sas-Users, Happy New Year.

I am using the option “MPRINT” to retrieve the program without macro-
variable. But I want to also have the datastep (data t; x = 1; run;)
in my file “Recup_Code.sas”. How can I do that?

Moreover, each time I execute the program below, the file
“Recup_Code.sas” is not reset. How can I do to have my file reseted
please.

Thanks.

Ash007.

Here the code :

data table_bidon;
input x1 x2 x3 x4 x5 $; cards;
2 5 5 1161 abélien
35 6 3 1336 alméric
82 1 5 1499 aniel
;
run;

options mprint mfile;
filename mprint 'C:\Users\Ash_Rmy\Documents\traitement.sas';

%macro know(lib,tab);
proc sql noprint;
create table caract as
select label , name
from dictionary.columns
where libname = "&lib." and memname = "&tab.";
quit;

title "la table &tab. de la librairie &lib. ";

proc print data = caract; run;
%mend;

%know(work,table_bidon);

data t;
x = 1;
run;

options nomfile;