Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
SDD ++: Extending SDD Capabilities Sandeep Juneja SAS Institute Inc., Cary, NC ,USA Daniel Christen SAS Institute AG., Switzerland Copyright © 2012, SAS Institute Inc. All rights reserved. Agenda EXECUTABLE FILES TOOLS USED: 1. SDD 3.5 2. SDD JAVA API 3. ECLIPSE 4. JDK 1.6 5. BASE SAS 9.2 6. SAS IOM 7. EXCEL 2010 VBA 8. IKVM.NET EXECUTABLE JAR FILES JAVA PROGRAMS ECLIPSE IKVMC JAVA SAS 9.2 JAVAOBJ SAS PROGRAMS SDD JAVA API SDD ++ Extending SDD Capabilities SAS SDD Additional Capabilities: SAS IOM + VBA OFFICE 1. SAS Programs / Macros 2. Java Programs 3. Java JARs 4. Java Executable exe files 5. Microsoft Excel Graphical capabilities EXCEL FILES 2 Copyright © 2012, SAS Institute Inc. All rights reserved. Getting Started – Software § SAS Drug Development 3.x § Java Development Kit: http://www.oracle.com/technetwork/java/javase/downloads/ index.html § Eclipse IDE for Java Developers: http://www.eclipse.org/downloads/download.php?file=/ technology/epp/downloads/release/indigo/R/eclipse-javaindigo-win32-x86_64.zip § SDD API: ftp://ftp.sas.com/techsup/download/hotfix/35drugdev.html § IKVM.net: http://sourceforge.net/projects/ikvm/files/ 3 Copyright © 2012, SAS Institute Inc. All rights reserved. Getting Started – User guides § SDD Remote API User guide: ftp://ftp.sas.com/techsup/download/hotfix/drugdev/ 35drgmacro02/SDD_Macros.pdf § Eclipse Video Tutorial: http://sourceforge.net/projects/eclipsetutorial/files/1.%20Total %20Beginners/Version%201.0/ § SAS JavaObj: http://support.sas.com/rnd/base/datastep/dot/javaobj.html § SAS IOM: http://support.sas.com/rnd/itech/doc/dist-obj/index.html § VBA IOM code: http://support.sas.com/rnd/itech/doc/dist-obj/winclnt/ wkspmgr/samples.html 4 Copyright © 2012, SAS Institute Inc. All rights reserved. SDD Java API SDD JAVA API SDD ++ Extending SDD Capabilities SDD 5 Copyright © 2012, SAS Institute Inc. All rights reserved. SDD Java API Overview ·∙ ·∙ ·∙ ·∙ com.sas.drugdev.remote PACKAGES CLASSES INTERFACE METHODS session SessionFactory getRepositoryService() repository admin ServiceManager Repository Remote Service Container Container Remote Node Node Remote File File User getAdminService() AdminService getAuditService() AuditService RemoteUser Group getUserService() UserService RemoteGroup getGroupService() GroupService sas type getSASService() SASService getTypeService() TypeService RemoteType Type 6 Copyright © 2012, SAS Institute Inc. All rights reserved. Establishing SDD Connection via API session=SessionFactory.newSession( new URL ( "https://sdd<instance>.sas.com/sddremote“), new UsernamePasswordCredentials("<userid>", "<password>".toCharArray())); ServiceManager serviceManager = session.getServiceManager(); UserService us = serviceManager.getUserService(); RepositoryService rs = serviceManager.getRepositoryService(); GroupService gs = serviceManager.getGroupService(); SASService ss = serviceManager.getSASService(); TypeService ts = serviceManager.getTypeService(); AdminService as = serviceManager.getAdminService(); AuditService aus = serviceManager.getAuditService(); 7 Copyright © 2012, SAS Institute Inc. All rights reserved. SDD - Java EXECUTABLE JAR FILES JAVA PROGRAMS ECLIPSE JAVA SDD JAVA API SDD ++ Extending SDD Capabilities SDD 8 Copyright © 2012, SAS Institute Inc. All rights reserved. Setting Eclipse Project 9 Copyright © 2012, SAS Institute Inc. All rights reserved. Generating and Executing Jar file 10 Copyright © 2012, SAS Institute Inc. All rights reserved. Convert jars to exe EXECUTABLE FILES EXECUTABLE JAR FILES JAVA PROGRAMS ECLIPSE IKVMC JAVA SDD JAVA API SDD ++ Extending SDD Capabilities SDD 11 Copyright © 2012, SAS Institute Inc. All rights reserved. Convert jar to Executable (exe) file 12 Copyright © 2012, SAS Institute Inc. All rights reserved. Using jar files via SAS JavaObj EXECUTABLE FILES EXECUTABLE JAR FILES JAVA PROGRAMS ECLIPSE IKVMC JAVA SAS 9.2 JAVAOBJ SAS PROGRAMS SAS SDD JAVA API SDD ++ Extending SDD Capabilities SDD 13 Copyright © 2012, SAS Institute Inc. All rights reserved. SAS JavaObj § Javaobj provides a mechanism for instantiating Java classes, and accessing fields and methods on the resultant objects. declare javaobj sdd("sddplus/sddplus"); sdd.callVoidMethod ("connectSDD","&sddurl","&sdduser","&sddusrpwd"); sdd.callIntMethod("getCnt",reccnt); sdd.delete(); 14 Copyright © 2012, SAS Institute Inc. All rights reserved. Using SDD API with PC SAS "C:\Program Files\SASHome\SASFoundation\9.3\sas.exe" -CONFIG "C:\SAS\SDD\RAPI\API\3.5\SAS\sasv9_sdd35.cfg" 15 Copyright © 2012, SAS Institute Inc. All rights reserved. Call Jar file via SAS JavaObj using PC SAS 16 Copyright © 2012, SAS Institute Inc. All rights reserved. Calling SAS programs via VBA EXECUTABLE FILES EXECUTABLE JAR FILES JAVA PROGRAMS ECLIPSE IKVMC JAVA SAS 9.2 JAVAOBJ SAS PROGRAMS SDD JAVA API SDD ++ Extending SDD Capabilities SAS SDD SAS IOM + VBA OFFICE EXCEL FILES 17 Copyright © 2012, SAS Institute Inc. All rights reserved. SAS IOM § The Integrated Object Model provides distributed object interfaces for conventional SAS features. § It enables you to develop component-based applications that integrate SAS features into your enterprise application. § The principal interfaces of IOM include: § Workspace (a SAS session) § LanguageService (submit, list/log, stored processes) § DataService (librefs, plus access through ADO, OLE-DB or JDBC) § FileService (filerefs and directories) § Utilities (result packages, formats, host info) 18 Copyright © 2012, SAS Institute Inc. All rights reserved. VBA 19 Copyright © 2012, SAS Institute Inc. All rights reserved. Extended SDD Capabilities Benefits EXECUTABLE FILES TOOLS USED: 1. SDD 3.5 2. SDD JAVA API 3. ECLIPSE 4. JDK 1.6 5. BASE SAS 9.2 6. SAS IOM 7. EXCEL 2010 VBA 8. IKVM.NET EXECUTABLE JAR FILES JAVA PROGRAMS ECLIPSE IKVMC JAVA SAS 9.2 JAVAOBJ SAS PROGRAMS SDD JAVA API SDD ++ Extending SDD Capabilities SAS SDD Additional Capabilities: SAS IOM + VBA OFFICE 1. SAS Programs / Macros 2. Java Programs 3. Java JARs 4. Java Executable exe files 5. Microsoft Excel Graphical capabilities EXCEL FILES 20 Copyright © 2012, SAS Institute Inc. All rights reserved. Questions 21 Copyright © 2012, SAS Institute Inc. All rights reserved. Email: [email protected] [email protected] SDD Forum: https://communities.sas.com/community/support-communities/sas-drug-development Copyright © 2002 , SAS Institute Inc. All rights reserved. Copyright © 2011, SAS Institute Inc. All rights reserved.