Kategorien
- Abstract (1)
- Geomapping (2)
- SAS Code (9)
- SAS Macros (2)
- SAS Procedures (3)
- SQL (1)
- SQL - Oracle (1)
Letzte Einträge
- 26.4.2008: Export SAS data into XML File
- 18.11.2007: Import external data or files into SAS using wildcards
- 8.11.2007: SAS Enterprise Guide 4.x & Autoexec.sas
- 25.2.2007: Sample Size Calculation
- 20.1.2007: SAS: Contour Plot with PROC GCONTOUR
- 15.1.2007: SAS: Using GOTO Statement in Macro Steps
- 12.1.2007: Using email functions with SAS
- 11.1.2007: SAS: Geomapping Process (Maps based on ZIP Code)
- 11.1.2007: SAS: Import and Export Data
- 10.1.2007: Key Functions in Oracle SQL
Links
BI News
SAS Forum
SAS Programming
SAS: Import and Export Data
If you want to import data into SAS with SAS Code you can use the following structure:
data my_table;
infile “[Type in the full Path where to find the data]”
delimiter=‘,’
missover
dsd
lrecl=32767
firstobs=2
;
length
first_field $ 24
;
input
first_field $
;
label
first_field = “first_field”
;
run;
If you want to export data you can use the following structure. If you need more detailed code you can use the procedure output in the LOG window.
proc export data=my_table
outfile=“[Type in the full Path where to find the data]”
dbms=dlm;
delimiter=‘|’;
run;