Search Results

25 résultats trouvés Page 2 / 3
Code SAS
Voir

Clean Data on Ingest: How to Transform Dates and Percentages Directly into CAS

/* Remplacez 'cloud.example.com' et '5570' par les valeurs de votre environnement */ /*options cashost="cloud.example.com" casport=5570;*/ /* Démarre la session Casauto si ce n'est pas déjà fait. */ /*cas casauto;*/ /* Création d'un fichier CSV temporaire avec plus de données */ filename vol...

Code SAS
Voir

Clean Data on Ingest: How to Transform Dates and Percentages Directly into CAS

/* Remplacez 'cloud.example.com' et '5570' par les valeurs de votre environnement */ /*options cashost="cloud.example.com" casport=5570;*/ /* Démarre la session Casauto si ce n'est pas déjà fait. */ /*cas casauto;*/ /* Création d'un fichier CSV temporaire pour l'exemple avancé */ filename vo...

Code SAS
Voir

Clean Data on Ingest: How to Transform Dates and Percentages Directly into CAS

/* Remplacez 'cloud.example.com' et '5570' par les valeurs de votre environnement */ /*options cashost="cloud.example.com" casport=5570;*/ /* Démarre la session Casauto si ce n'est pas déjà fait. */ /*cas casauto;*/ /* Création d'un fichier CSV temporaire avec une variable catégorielle */ fi...

Code SAS
Voir

Bridge the Gap: Reading and Writing Excel Files Directly from the CAS Server

/* Préparation : Créer un fichier Excel factice sur le système de fichiers du contrôleur CAS ou un chemin accessible */ /* Dans un environnement réel, ce fichier 'mon_fichier.xlsx' existerait déjà. */ /* Pour la démonstration, nous allons simuler son contenu avec DATA étape. */ /* Créer un fichi...

Code SAS
Voir

Bridge the Gap: Reading and Writing Excel Files Directly from the CAS Server

/* Préparation : Créer un fichier Excel factice avec plusieurs feuilles pour démonstration */ /* En pratique, le fichier Excel 'ventes.xlsx' existerait déjà avec ces feuilles. */ filename xlfile temp; data _null_; file xlfile dlm=',' lrecl=200; /* Feuille 1: Ventes_Q1 */ put 'ID_Produit,Reg...

Code SAS
Voir

From CSV to Memory: A Quick Start Guide to Loading Data with PROC CASUTIL

caslib csvfiles task=add type=dnfs path="/data/csv/" desc="Spreadsheets and CSV source data;"; proc casutil; list files; load casdata="County_Population.csv" importoptions=(filetype="csv" getnames="true") casout="county_population"; list tables; quit;

Code SAS
Voir

From Raw CSV to Formatted Table: The Efficient Way to Load Local Data to CAS

/* Création du fichier CSV local */ DATA _NULL_; FILE "/tmp/myusage_basic.csv" DSD LRECL=200; PUT 'account,high,low,recorddt,startdt,enddt,kwh'; PUT '1000001,82,71,07/03/2013,07/01/2013,07/02/2013,54'; PUT '1000001,85,70,07/02/2013,06/30/2013,07/01/2013,70'; PUT '1000001,85,68,07/01/201...

Code SAS
Voir

From Raw CSV to Formatted Table: The Efficient Way to Load Local Data to CAS

/* Création du fichier CSV local avec plus de données */ DATA _NULL_; FILE "/tmp/myusage_inter.csv" DSD LRECL=200; PUT 'account,high,low,recorddt,startdt,enddt,kwh,cost'; PUT '1000001,82,71,07/03/2013,07/01/2013,07/02/2013,54,12.50'; PUT '1000001,85,70,07/02/2013,06/30/2013,07/01/2013,70,...

Code SAS
Voir

From Raw CSV to Formatted Table: The Efficient Way to Load Local Data to CAS

/* Création du fichier CSV local */ %LET CSV_FILE = /tmp/mydata_advanced_&sysdate._%sysfunc(compress(&systime.)).csv; %LET CAS_TABLE = mydata_advanced; %LET CAS_LIB = CASUSER; DATA _NULL_; FILE "&CSV_FILE" DSD LRECL=200; PUT 'ID,Category,Value,EntryDate'; PUT '1,A,123.45,12-JAN-2023'; PU...

Code SAS
Voir

From Raw CSV to Formatted Table: The Efficient Way to Load Local Data to CAS

/* Création du fichier CSV local */ DATA _NULL_; FILE "/tmp/transactions.csv" DSD LRECL=200; PUT 'TransactionID,CustomerID,Amount,TransactionDate,ProductCode'; PUT '1,C001,150.75,2023-01-15,PROD001'; PUT '2,C002,230.00,2023-01-16,PROD002'; PUT '3,C001,50.25,2023-01-15,PROD003'; PUT '4...