Bonjour.
J'ai une macro excel capricieuse qui exige en input un fichier excel en format XLS.
Dans un programme SAS j'ai insérer ce code:
PROC EXPORT
DATA= DONNEES
DBMS=EXCEL
OUTFILE= "C:\Temp\test1.xls"
OUTTABLE='TEST'
REPLACE;
RUN;
et j'obtiens ce message d'erreur:
PROC EXPORT
34 DATA= DONNEES
35 DBMS=EXCEL
36 OUTFILE= "C:\Temp\test1.xls"
37 OUTTABLE='TEST'
38 REPLACE;
ERROR: Cannot specify both FILE= and TABLE=.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
Remove the OUTTABLE=, it is only used for Microsoft Access tables.
ERROR: Cannot specify both FILE= and TABLE=.
PROC EXPORT
DATA= DONNEES /*data to be exported*/
OUTFILE= "C:\Temp\test1.xls" /*name of file to be created*/
DBMS=EXCEL /*type of file to be created*/
REPLACE; /*indicates that if it already exists to overwrite the output*/
RUN;
@bilst01 wrote:
Bonjour.
J'ai une macro excel capricieuse qui exige en input un fichier excel en format XLS.
Dans un programme SAS j'ai insérer ce code:
PROC EXPORT
DATA= DONNEES
DBMS=EXCEL
OUTFILE= "C:\Temp\test1.xls"
OUTTABLE='TEST'
REPLACE;
RUN;
et j'obtiens ce message d'erreur:
PROC EXPORT
34 DATA= DONNEES
35 DBMS=EXCEL
36 OUTFILE= "C:\Temp\test1.xls"
37 OUTTABLE='TEST'
38 REPLACE;
ERROR: Cannot specify both FILE= and TABLE=.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
Remove the OUTTABLE=, it is only used for Microsoft Access tables.
ERROR: Cannot specify both FILE= and TABLE=.
PROC EXPORT
DATA= DONNEES /*data to be exported*/
OUTFILE= "C:\Temp\test1.xls" /*name of file to be created*/
DBMS=EXCEL /*type of file to be created*/
REPLACE; /*indicates that if it already exists to overwrite the output*/
RUN;
@bilst01 wrote:
Bonjour.
J'ai une macro excel capricieuse qui exige en input un fichier excel en format XLS.
Dans un programme SAS j'ai insérer ce code:
PROC EXPORT
DATA= DONNEES
DBMS=EXCEL
OUTFILE= "C:\Temp\test1.xls"
OUTTABLE='TEST'
REPLACE;
RUN;
et j'obtiens ce message d'erreur:
PROC EXPORT
34 DATA= DONNEES
35 DBMS=EXCEL
36 OUTFILE= "C:\Temp\test1.xls"
37 OUTTABLE='TEST'
38 REPLACE;
ERROR: Cannot specify both FILE= and TABLE=.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.