/* Export vers Excel */
PROC EXPORT
DATA = ma_lib.mon_dataset
OUTFILE = "C:\Chemin\Vers\Fichier.xlsx" /* Chemin sur le serveur Windows */
DBMS = EXCELCS
REPLACE;
SERVER = "NomDuServeurWindows"; /* ou adresse IP */
PORT = 9621; /* Port par défaut, à vérifier */
SSPI = YES; /* Authentification Windows intégrée */
RUN;
/* Import depuis Excel */
PROC IMPORT
OUT = ma_lib.mon_dataset_import
DATAFILE = "C:\Chemin\Vers\Fichier.xlsx"
DBMS = EXCELCS
REPLACE;
SERVER = "NomDuServeurWindows";
PORT = 9621;
SSPI = YES;
RUN;
1
/* Export vers Excel */
2
PROC EXPORT
3
DATA = ma_lib.mon_dataset
4
OUTFILE = "C:\Chemin\Vers\Fichier.xlsx"/* Chemin sur le serveur Windows */
5
DBMS = EXCELCS
6
REPLACE;
7
SERVER = "NomDuServeurWindows"; /* ou adresse IP */
8
PORT = 9621; /* Port par défaut, à vérifier */
9
SSPI = YES; /* Authentification Windows intégrée */
10
RUN;
11
12
/* Import depuis Excel */
13
PROC IMPORT
14
OUT = ma_lib.mon_dataset_import
15
DATAFILE = "C:\Chemin\Vers\Fichier.xlsx"
16
DBMS = EXCELCS
17
REPLACE;
18
SERVER = "NomDuServeurWindows";
19
PORT = 9621;
20
SSPI = YES;
21
RUN;
DBMS=EXCELCS: Specifies that the Client/Server model is used to access PC files.
SERVER= and PORT=: Indicate the location of the PC Files Server.
SSPI=YES: Enables Integrated Windows Authentication, often avoiding the need to hard-code passwords.
Unsupported Options: Unlike classic import engines, the EXCELCS and PCFILES engines may not support certain practical options like GETNAMES= or MIXED=. You must be careful about the structure of your source Excel files.
4. Documentation and Installation
For installation and advanced configuration (especially for administrators), it is recommended to refer to the official documentation:
Specifically consult the sections on the "LIBNAME Statement", the "Pass-Through Facility" for Linux/Unix, and the "PC Files Server Administration" chapter.
Die auf WeAreCAS.eu bereitgestellten Codes und Beispiele dienen Lehrzwecken. Es ist zwingend erforderlich, sie nicht blind in Ihre Produktionsumgebungen zu kopieren. Der beste Ansatz besteht darin, die Logik zu verstehen, bevor sie angewendet wird. Wir empfehlen dringend, diese Skripte in einer Testumgebung (Sandbox/Dev) zu testen. WeAreCAS übernimmt keine Verantwortung für mögliche Auswirkungen oder Datenverluste auf Ihren Systemen.
SAS und alle anderen Produkt- oder Dienstleistungsnamen von SAS Institute Inc. sind eingetragene Marken oder Marken von SAS Institute Inc. in den USA und anderen Ländern. ® zeigt die Registrierung in den USA an. WeAreCAS ist eine unabhängige Community-Site und nicht mit SAS Institute Inc. verbunden.
Diese Website verwendet technische und analytische Cookies, um Ihre Erfahrung zu verbessern.
Mehr erfahren.