SAS Decision Services 6.4
Total Page:16
File Type:pdf, Size:1020Kb
SAS® Decision Services 6.4 Administrator’s Guide SAS® Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS® Decision Services 6.4: Administrator's Guide. Cary, NC: SAS Institute Inc. SAS® Decision Services 6.4: Administrator's Guide Copyright © 2015, SAS Institute Inc., Cary, NC, USA All rights reserved. Produced in the United States of America. For a hard-copy book: No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, or otherwise, without the prior written permission of the publisher, SAS Institute Inc. For a web download or e-book: Your use of this publication shall be governed by the terms established by the vendor at the time you acquire this publication. The scanning, uploading, and distribution of this book via the Internet or any other means without the permission of the publisher is illegal and punishable by law. Please purchase only authorized electronic editions and do not participate in or encourage electronic piracy of copyrighted materials. Your support of others' rights is appreciated. U.S. Government License Rights; Restricted Rights: The Software and its documentation is commercial computer software developed at private expense and is provided with RESTRICTED RIGHTS to the United States Government. Use, duplication or disclosure of the Software by the United States Government is subject to the license terms of this Agreement pursuant to, as applicable, FAR 12.212, DFAR 227.7202-1(a), DFAR 227.7202-3(a) and DFAR 227.7202-4 and, to the extent required under U.S. federal law, the minimum restricted rights as set out in FAR 52.227-19 (DEC 2007). If FAR 52.227-19 is applicable, this provision serves as notice under clause (c) thereof and no other notice is required to be affixed to the Software or documentation. The Government's rights in Software and documentation shall be only those set forth in this Agreement. SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513-2414. August 2015 SAS® and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. Other brand and product names are trademarks of their respective companies. Contents What’s New in SAS Decision Services 6.4 . vii Accessibility . ix Chapter 1 • Overview of SAS Decision Services . 1 What Is SAS Decision Services? . 1 Decision Services Manager Plug-in for SAS Management Console . 2 SAS Decision Services Repository . 4 Chapter 2 • SAS Decision Services Concepts . 7 Modes of Execution . 8 Scalability and Failover . 9 Deployment Topology . 12 Example: The Decision Flow . 16 Life Cycle of a Decision Flow . 18 Decision Flows, Building Blocks, and Artifacts . 20 Roles and Capabilities . 27 SAS Decision Services Monitoring . 28 Chapter 3 • Common Operations . 33 Promoting Decision Flows . 34 Activating Flows . 41 Managing Global Variables . 45 Set an Event Time-Out . 47 Audit Services . 50 Data Collection for Performance Analysis . 54 Chapter 4 • Environments and Resources . 59 Repositories . 60 System Resources . 66 Library Resources . 78 Databases . 80 iv Contents Chapter 5 • Decision Services Activities . 83 Overview . 84 SAS Activities . 85 Web Service Activities . 105 SAS Customer Experience Real-Time Server Engine Integration Activity . 107 General I/O Activities . 109 Guidelines for Creating Activities . 117 Chapter 6 • Integration . 119 Web Service Integration . 119 WS-Security Integration . 123 Integration with SAS Model Manager . 132 REST API . 135 Chapter 7 • Installation . 137 Overview . 138 Dependent SAS Products . 139 Best Practices for SAS Decision Services Deployment Scenarios . 140 Configuring SAS Decision Services . 149 Deploying and Starting SAS Decision Services Web Applications in a Cluster . 149 Rebuilding SAS Decision Services Design, Engine, and Monitor Server Web Applications . 154 Rebuilding the SAS Web Application Server Configurations . 155 Post-Installation Reconfiguration . 155 Chapter 8 • Migration . 157 Overview . 158 Migration from SAS Real-Time Decision Manager 5.4 . 159 Migration from SAS Decision Services 5.5 . 159 Migration from SAS Decision Services 5.5M1 . 160 Migration from SAS Decision Services 5.6 . 161 Migration from SAS Decision Services 6.3 . 162 Migration from SAS Decision Services 6.4 . 163 Migrate Single DATA Step SAS Code . 163 Contents v SAS Decision Services Utilities . 164 Migrate Multiple DATA Step Code . 167 Change Host Migration . 169 Password Updates . 171 Migrate Monitor Database to Stand-alone PostgreSQL . 172 Chapter 9 • Best Practices . 175 SAS Server Options . 176 JDBC Performance Tuning . 176 HTTP Client Code Usage . 183 Use of SAS Data Sets . 186 Initialize DS2 Activity Variables . 187 Using SQLSTMT in Real-Time Applications . 187 Suggested Initial Values for Key Tuning Elements in Systems with Heavy Workloads . 193 Incorporating Pool Diagnostics . 196 Chapter 10 • Custom Configuration . 201 Standard System Resources . 202 Configuring Additional Databases . 203 Configuring Additional SAS Federation Servers to Form a Server Cluster . 205 Changing the Database Selection . 208 Configure Access to SAS Data Sets . 212 Moving DS2 Persistence to a Database Management System . 212 Moving Application Data from a Web Infrastructure Data Server to Other Databases . 214 vi Contents Appendix 1 • Database Requirements . 217 Appendix 2 • Logs and Troubleshooting . 219 Appendix 3 • Batch Execution . 223 Appendix 4 • Activate Flows Using BatchActivator . 241 Appendix 5 • REST API for SAS Decision Services Transaction Processing . 245.