1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| %macro import_macro(path,base,myfile);*Importation - Ne pas changer;
*path = ou se trouve le fichier ;
*base = nomfichier_SAS;
*myfile = nom souhaité à la sortie;
data &base;
infile "&path.\&base._Data.txt" dlm="09"x missover dsd lrecl=65536;
input %include "&path.\&base._Type.txt" ;;
format %include "&path.\&base._Format.txt" ;;
run;
data &myfile;
set &base;
drop VisCycle label trial site repeatno frmcycle;
run;
proc sort data=&myfile;
by PersonId;
run;
data &myfile;
set &myfile;;
run;
%mend; |
Partager