Copyright © 2005, SAS Institute Inc. All rights reserved.
Effective Use ofSAS/GRAPH® Stored Processes
Pat BerrymanSenior Software ManagerData Visualization R&D SAS
Copyright © 2005, SAS Institute Inc. All rights reserved. 2
Reuse
Enhance
Create
Copyright © 2005, SAS Institute Inc. All rights reserved. 3
ReuseAdd stored processes
macros
Register in metadata
Run in Clients
Copyright © 2005, SAS Institute Inc. All rights reserved. 4
Add Stored Processes Macros
%stpbegin;
/* sas code here */
%stpend;
Copyright © 2005, SAS Institute Inc. All rights reserved. 5
SAS Stored Process Registration
Copyright © 2005, SAS Institute Inc. All rights reserved. 6
Copyright © 2005, SAS Institute Inc. All rights reserved. 7
Reuse
Enhance
Create
Copyright © 2005, SAS Institute Inc. All rights reserved. 8
EnhanceUse client defaults
Use input parameters
Use client options
Copyright © 2005, SAS Institute Inc. All rights reserved. 9
Use default client style/* goptions ctitle=black htitle=5.pct ftitle=swiss ctext=blue htext=2.pct ftext=swiss cback=ligr border colors=(red blue); */
title "Existing SAS/GRAPH program";
proc gchart data=sashelp.class;
vbar age; run; quit;
Copyright © 2005, SAS Institute Inc. All rights reserved. 10
Use client device settings
ods html file=‘report.html’ style=gears;
goptions dev=activex;
/* leave sas code here */
ods html close;
Copyright © 2005, SAS Institute Inc. All rights reserved. 11
link
Copyright © 2005, SAS Institute Inc. All rights reserved. 12
link
Copyright © 2005, SAS Institute Inc. All rights reserved. 13
SAS® Enterprise Guide
Copyright © 2005, SAS Institute Inc. All rights reserved. 14
Copyright © 2005, SAS Institute Inc. All rights reserved. 15
Copyright © 2005, SAS Institute Inc. All rights reserved. 16
Copyright © 2005, SAS Institute Inc. All rights reserved. 17
Copyright © 2005, SAS Institute Inc. All rights reserved. 18
SAS Stored Process Web Application
Copyright © 2005, SAS Institute Inc. All rights reserved. 19
Reuse
Enhance
Create
Copyright © 2005, SAS Institute Inc. All rights reserved. 20
CreateSAS® Enterprise Guide
for authoring, editing and testing stored processes
Copyright © 2005, SAS Institute Inc. All rights reserved. 21
Copyright © 2005, SAS Institute Inc. All rights reserved. 22
Copyright © 2005, SAS Institute Inc. All rights reserved. 23
Copyright © 2005, SAS Institute Inc. All rights reserved. 24
Show EG created Stored process in AMO
Copyright © 2005, SAS Institute Inc. All rights reserved. 25
Reuse
Enhance
Create
Copyright © 2005, SAS Institute Inc. All rights reserved. 26Copyright © 2005, SAS Institute Inc. All rights reserved. 26