Sie befinden sich in den Archiven der Kategorie SAS Procedures.
| M | D | M | D | F | S | S |
|---|---|---|---|---|---|---|
| « Apr | ||||||
| 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 | ||||
- Abstract (1)
- Geomapping (2)
- SAS Code (9)
- SAS Macros (2)
- SAS Procedures (3)
- SQL (1)
- SQL - Oracle (1)
- 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
BI News
SAS Forum
SAS Programming
Archiv der Kategorie SAS Procedures
SAS: Contour Plot with PROC GCONTOUR
20.1.2007 von Thomas-Degenhardt.
To create interesting 3D Graphics which are easy to understand you can use PROC GCOUNTOUR.
With this procedure you are able to create graphics for your next presentation or for playful marketers.
The following Code and the picture are an example how to create Contour Plots:
data surface;
do i=1 to 50 by 1;
x=i;
do k=1 to 50 by 1;
x=x;
y=k;
z=round(sqrt(5*y*(x**2)+3),1);
output;
end;
end;
run;
GOPTIONS xpixels=800 ypixels=600;
GOPTIONS CBACK=WHITE;
LEGEND1
LABEL=(FONT=‘Arial’ HEIGHT=8pt JUSTIFY=CENTER ‘Revenue:’ )
POSITION=(MIDDLE BOTTOM OUTSIDE)
across=4
down=1
value=(tick=1 height=5.5pt JUSTIFY=LEFT ‘Low’
tick=2 height=5.5pt JUSTIFY=LEFT ‘Low - Medium’
tick=3 height=5.5pt JUSTIFY=LEFT ‘Medium - High’
tick=4 height=5.5pt JUSTIFY=LEFT ‘High’)
CSHADOW=GRAY
CFRAME=CXE8E8E8
CBORDER=GRAY;
TITLE ‘Contour Plot’;
TITLE2 ‘PLOT: x * y * sqrt(5*y*(x**2)+3)’;
PROC GCONTOUR DATA = surface;
PLOT x * y = z /
PATTERN
LEGEND=LEGEND1
NLEVELS=4
SMOOTH
CFRAME=WHITE
CLEVELS=GREEN YELLOW ORANGE RED
;
RUN;
QUIT;
TITLE; TITLE2; FOOTNOTE;
Geschrieben in SAS Procedures, SAS Code | Keine Kommentare »
SAS: Import and Export Data
11.1.2007 von Thomas-Degenhardt.
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;
Geschrieben in SAS Procedures, SAS Code | 1 Kommentar »
SAS: SQL Pass Through
10.1.2007 von Thomas-Degenhardt.
With this SAS Program you are able to connect to a database with SQL Pass Through via ODBC. The advantage is, that the SQL Statement will be processed by the resources of the database. The disadvantage is, that you cannot use SAS specific functions which are not supported by the database sql language.
–
proc sql;
connect to odbc (dsn=”…” user=”…” password=”*****”);
create table my_table as
select * from connection to odbc
(
select
…
from
…
where
…
);
disconnect from odbc;
quit;
Geschrieben in SAS Procedures, SAS Code | 1 Kommentar »