proc Import en macro langage ne fonctionnant pas à cause de fichiers excel
Bonjour la communauté,
Mon souci
j'ai le Log qui me retourne deux messages d'erreur liés à des fichiers physique excel qui n'existent pas, sachant que j'ai déjà créé toutes les macro variables que vous voyez dans le programme, mon seul problème c'est la remarque du Log sur les fichiers excel inexistants (c'est comme si elle ne reconnait pas le chemin).
Pourriez-vous m'aider s'il vous plait et me dire en quoi les chemin des fichiers Excel posent problème dans mon programme ?
voici ce que me dit le Log
Citation:
ERROR 1: physical file does not exist, excel|system
ERROR 2: physical file does not exist, excel|output ! r2c2:r90000c24
????????
et voici mon programme
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
| %macro import;
options noxwait noxsync;
%do CC=1 %to &total.;
x '"C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office\excel.exe"';
data _null_;
sleep=mcipislp(3);
run;
filename test dde 'excel|system';
data _null_;
file cmd;
put &&XFILE&CC;
run;
filename test dde 'excel|output ! r2c2:r90000c24';
data &&Afile&CC. (compress=yes);
attrib
update length=$5
Reporter length=$3
Start_date length=$8
End_date length=$8
Partner length=$3
Exporting_firm length=$1400
Prod_code length=$14
Remedy_ID length=$3
Remedy_type length=$2
Duty_value1 length=$250
DUTY_VALUE1_AS_REPORTED length=$250
Duty_value2 length=$250
DUTY_VALUE2_AS_REPORTED length=$250
duty_type length=$3
Remedy_status length=$3
Note length=$2910
internal_link length=$190
web_link length=$500
AGENCY length=$3
LANGUAGE length=$2
EXCLUSION length=$30;
infile cmd dlm='09'x notab dsd truncover pad lrecl=10000;
input
update $
Reporter $
Start_date $
End_date $
Partner $
Exporting_firm $
Prod_code $
Remedy_ID $
Remedy_type $
Duty_value1 $
DUTY_VALUE1_AS_REPORTED $
Duty_value2 $
DUTY_VALUE2_AS_REPORTED $
duty_type $
Remedy_status $
Note $
internal_link $
web_link $
AGENCY $
LANGUAGE $
EXCLUSION $;
run;
filename cmds dde 'excel|system';
data _null_;
file cmds;
put '[quit()]';
run;
%END;
%mend;
%import; |
is there any help please???
is there any help please???