SAS Drug Development. SAS Macro API 1.3 User s Guide

Similar documents
SAS Drug Development SAS API Macros 1.1 User s Guide

SAS Drug Development 3.5

SAS Drug Development 3.4

SAS Drug Development 3.3_03. December 14, 2007

SAS Model Manager 2.2. Tutorials

SAS Forecast Server 3.1. Administrator s Guide to Installation and Configuration

SAS Model Manager 2.3

SAS Web Infrastructure Kit 1.0. Overview

SAS 9.2 Foundation Services. Administrator s Guide

SAS AppDev Studio TM 3.4 Eclipse Plug-ins. Migration Guide

Using CVS Repositories with SAS

SAS IT Resource Management 3.3

SAS Enterprise Guide 4.3

Administering SAS Enterprise Guide 4.2

SAS Web Infrastructure Kit 1.0. Overview, Second Edition

Licensing SAS DataFlux Products

SAS Contextual Analysis 13.2: Administrator s Guide

Using Data Transfer Services

Data Representation. Variable Precision and Storage Information. Numeric Variables in the Alpha Environment CHAPTER 9

SAS Contextual Analysis 14.3: Administrator s Guide

SAS. Information Map Studio 3.1: Creating Your First Information Map

Chapter 28 Saving and Printing Tables. Chapter Table of Contents SAVING AND PRINTING TABLES AS OUTPUT OBJECTS OUTPUT OBJECTS...

Introduction. LOCK Statement. CHAPTER 11 The LOCK Statement and the LOCK Command

SAS. Installation Guide Fifth Edition Intelligence Platform

SAS. IT Service Level Management 2.1: Migration Documentation

SAS Enterprise Miner TM 6.1. Migration Guide

SAS Integration Technologies Server Administrator s Guide

Storing and Reusing Macros

SAS Fair Banking 8.1 Installation Instructions

Scheduling in SAS 9.2

SAS Clinical Data Integration Server 2.1

The correct bibliographic citation for this manual is as follows: SAS Institute Inc Proc EXPLODE. Cary, NC: SAS Institute Inc.

Permission Program. Support for Version 6 Only. Allowing SAS/SHARE Client Access to SAS Libraries or Files CHAPTER 40

SAS Simulation Studio 14.1: User s Guide. Introduction to SAS Simulation Studio

APPENDIX 2 Customizing SAS/ASSIST Software

SAS Enterprise Case Management 2.1. Administrator s Guide

SAS Strategy Management 5.2 Batch Maintenance Facility

SAS Workflow Manager 2.2: Administrator s Guide

SAS Web Report Studio 3.1

SAS Clinical Data Integration 2.4

SAS Data Integration Studio 3.3. User s Guide

SAS 9.3 Intelligence Platform

SAS Business Rules Manager 1.2

SAS/FSP 9.2. Procedures Guide

Time Series Studio 12.3

Macro Facility. About the Macro Facility. Automatic Macro Variables CHAPTER 14

SAS Data Loader 2.4 for Hadoop

Creating and Executing Stored Compiled DATA Step Programs

Using Cross-Environment Data Access (CEDA)

SAS Energy Forecasting 3.1 Installation Guide

Installation Instructions for SAS Activity-Based Management 6.2

SAS Marketing Operations Management 6.0 R14 Update 2

Formats. Formats Under UNIX. HEXw. format. $HEXw. format. Details CHAPTER 11

SAS University Edition: Installation Guide for Windows

SAS Model Manager 13.1

SAS Publishing SAS. Forecast Studio 1.4. User s Guide

Time Series Studio 13.1

SAS 9.4 Intelligence Platform: Migration Guide, Second Edition

SAS Theme Designer 3.1 for Flex

Chapter 3 Managing Results in Projects. Chapter Table of Contents

SAS Support for TELNET on Windows

SAS Structural Equation Modeling 1.3 for JMP

SAS BI Dashboard 3.1. User s Guide Second Edition

SAS/Warehouse Metadata API. Reference Second Edition

SAS Catalogs. Definition. Catalog Names. Parts of a Catalog Name CHAPTER 32

Installation and Configuration Instructions. SAS Model Manager API. Overview

SAS Web Infrastructure Kit 1.0. Administrator s Guide

SAS Enterprise Case Management 2.2. Administrator s Guide

Installation Instructions for Release 5.2 of the SAS Performance Management Solutions

AppDev StudioTM 3.2 SAS. Migration Guide

SAS 9.4 Foundation Services: Administrator s Guide

SAS/ACCESS Interface to R/3

Grid Computing in SAS 9.4

SAS Inventory Optimization 5.1

Installation Instructions for SAS Foundation for UNIX Environments

Installation Instructions for SAS Foundation for UNIX Environments

SAS Intelligence Platform to 9.2 Migration Guide

Data Set Options. Specify a data set option in parentheses after a SAS data set name. To specify several data set options, separate them with spaces.

Clinical Standards Toolkit 1.7

SAS Financial Management 5.3: Installation and Configuration Guide

UNIX Platform Error Messages

SAS Clinical Data Integration 2.6

DataFlux Web Studio 2.5. Installation and Configuration Guide

QUEST Procedure Reference

SAS. Social Network Analysis Server 6.2: Installation and Configuration Guide, Third Edition. SAS Documentation

SAS 9.2 Enterprise Business Intelligence Audit and Performance Measurement for Windows Environments. Last Updated: May 23, 2012

SAS Intelligence Platform to 9.2 Migration Guide

Forecasting for Desktop 14.1

Chapter 23 Animating Graphs. Chapter Table of Contents ANIMATING SELECTION OF OBSERVATIONS ANIMATING SELECTED GRAPHS...347

from the source host, use the FTP put command to copy a file from the source host to the target host.

Two-Machine Deployment of SAS Office Analytics 7.4

SAS/IntrNet 9.2. Xplore Sample Web Application. SAS Documentation

Hot Fix Installation Instructions for SAS Activity-Based Management 6.4.2

DBLOAD Procedure Reference

Scheduling in SAS 9.4, Second Edition

Chapter 6 Creating Reports. Chapter Table of Contents

SAS/IntrNet 9.3. Overview. SAS Documentation

SAS Federation Server 4.2: Migration Guide

Using the SQL Editor. Overview CHAPTER 11

Enterprise Miner Software: Changes and Enhancements, Release 4.1

Transcription:

SAS Drug Development SAS Macro API 1.3 User s Guide

ii SAS Drug Development 4.3.1 and 4.3.2: SAS Macro API 1.3 User s Guide Copyright 2013, 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. U.S. Government Restricted Rights Notice: Use, duplication, or disclosure of this software and related documentation by the U.S. government is subject to the Agreement with SAS Institute and the restrictions set forth in FAR 52.227-19, Commercial Computer Software-Restricted Rights (June 1987). SAS Institute Inc., SAS Campus Drive, Cary, North Carolina 27513. 2nd electronic book, July 2013 SAS Publishing provides a complete selection of books and electronic products to help customers use SAS software to its fullest potential. For more information about our e-books, e-learning products, CDs, and hard-copy books, visit the SAS Publishing Web site at support.sas.com/publishing or call 1-800- 727-3228. 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 registered trademarks or trademarks of their respective companies.

iii Contents Chapter 1 Introduction... 1 Audience... 1 Typographic and Syntax Conventions Used in This Guide... 1 Chapter 2 Installing the Macros... 3 Overview... 3 Requirements... 3 Installation Instructions for Microsoft Windows... 3 Verifying the Installation... 5 Chapter 3 SAS Drug Development Macros... 7 Introduction... 7 Macro Return Codes... 7 Using the Macros... 8

Introduction Typographic Conventions Used In This Guide 1 C H A P T E R 1 Introduction Audience... 1 Typographic Conventions Used In This Guide... 1 Audience This guide is intended for users who want to develop applications with the SAS Drug Development macros. You must be familiar with SAS Drug Development functionality, such as type definitions, containers, files and access permissions. For reference information on SAS Drug Development functionality, see the SAS Drug Development online help and User s Guide. Typographic Conventions Used In This Guide Throughout this document you ll see the following typographic conventions: Convention monospace font monospace bold font monospace bold italics font Description denotes code, such as a code example denotes text that you type, such as an object name denotes a value that you specify, such as your name

2 Typographic Conventions Used In This Guide Chapter 1 The following graphic explains the syntax for SAS code used in this document:

Installing the Macros Installation Instructions for Microsoft Windows 3 C H A P T E R 2 Installing the Macros Overview... 3 Requirements... 3 Installation Instructions for Microsoft Windows... 3 Verifying the Installation... 5 Overview This document describes how to install the SAS Drug Development Macro API, which are distributed in the sdd-sas-macro-1.3.zip. Requirements The following software is required by the SAS Drug Development Macros: SAS 9.3 M2 Java Runtime Environment Version 1.6 SAS Drug Development Java API client version 1.6 Installation Instructions for Microsoft Windows 1 Follow the instructions in the Getting Started with the SAS Drug Development Java API document to install the Java API client. Be sure to note the location of the lib directory. Typically this would be: C:\sdd-java-api-client-1.6\lib 2 Unzip the contents of sdd-sas-macro-1.3.zip to C:\. This creates the following files and folders in C:\: sdd-sas-macro-1.3\conf This folder contains example configuration files. sdd-sas-macro-1.3\docs This folder contains the documentation for the SAS Drug Development Macro API including the detailed documentation describing all of the macros delivered with this distribution. sdd-sas-macro-1.3\lib

4 Installation Instructions for Microsoft Windows Chapter 2 This folder contains the sas.hls.drug.api.macro.jar. sdd-sas-macro-1.3\sasmacros This folder contains the SAS Drug Development macros as.sas files. 3 Determine where you have SAS installed and where the config file is. In a typical Windows Unicode Support installation,!sasroot would point to: C:\Program Files\SAS\SASFoundation\9.3\nls\u8 You need to edit the file!sasroot\sasv9.cfg and add the following lines near the top, right before the comment box with the WARNING: label in it: /* define the location of the SAS Drug Development Macro API */ -insert sasautos "C:\sdd-sas-macro-1.3\sasmacros" /* put both the macro and java api client jars on the classpath */ -JREOPTIONS (-Dsas.app.class.dirs=C:\sdd-sas-macro-1.3\lib;C:\sdd-java-apiclient-1.6\lib) Caution: Back up this file before you edit it. Use extreme care when editing this file and modify only these options. Ensure that you do not insert any carriage returns in the sas.app.class.dirs option. If you have any questions, concerns, or problems, please contact SAS Technical Support. 4 Once you have made these changes to the sasv9.cfg file, save the file and start a new SAS session.

Installing the Macros Verifying the Installation 5 Verifying the Installation The following SAS code displays the settings for the JREOPTIONS and verifies that the JRE is configured properly. It also verifies that the SAS Drug Development macros are installed and functioning as expected. Replace sdd-instance, sdd-user-id, and sddpassword with values that reflect your instance of SAS Drug Development. /* verify the JRE settings */ options mprint; proc javainfo; run; /* initiate a connection to SAS Drug Development */ %sasdrugdev_login(sdd_url=%str(https://sdd-instance), sdd_userid=%str(sdd-user-id), sdd_password=%str(sdd-password)); /* print configuration information including version information */ %sasdrugdev_getsddapiversion(); /* List the contents of the root folder in the SAS Drug Development repository */ %sasdrugdev_getchildren(sdd_path=%str(/sas/files)); proc print; title "List of Objects in /SAS/Files"; run; /* terminate the connection to SAS Drug Development */ %sasdrugdev_logout(); The code should generate a list of the contents of the root folder in the SAS Drug Development repository. Note: By default, the root folder in the SAS Drug Development repository is /SAS. If the root of your SAS Drug Development repository is different, change /SAS in the code above. The SAS log will contain information that might be useful for debugging the installation of the SAS Drug Development macros.

6 Verifying the Installation Chapter 2

SAS Drug Development Macros Macro Return Codes 7 C H A P T E R 3 SAS Drug Development Macros Introduction... 7 Macro Return Codes... 7 Using the Macros... 8 Using the Ampersand Character (&) in URLs... 8 The Proper Case for Parameter Values... 8 Quoting Parameter Values... 8 Introduction The SAS Drug Development SAS Macro API enables you to use familiar SAS macro syntax to perform operations against SAS Drug Development. Macro Return Codes After you execute a macro, the global macro variable _SDDRC_ will contain a return code reflecting the success or failure of the operation; the global macro variable _SDDMSG_ will contain text information regarding the success or the cause of the failure Here are the specific values that can be returned by a macro: _SDDRC_ Value Explanation 0 The macro executed without error. -1 The macro executed with error, see return message for details. -100 SAS Drug Development Java API did not initialize correctly. -101 SAS Drug Development server URL is malformed. -102 SAS Drug Development server returned an HTTP error code. -200 The session does not exist. -201 The session already exists. -202 The session does not support the macro being executed. Examples of this are running the login, logout, create file or download file macros during an active SAS Drug Development session. -300 The user account could not be authenticated. -301 The user account does not have appropriate authorization. -400 Macro parameter is required. -401 Macro parameter is invalid. -500 The object was not found.

8 Using the Macros Chapter 3 _SDDRC_ Value Explanation -501 The object already exists. -502 The object type is invalid for the operation. -503 The source path equals the target path. -504 The target path is within the source path. -600 Principal is not a member. -601 Role is not assigned at parent. -602 Roles defined at context cannot be unassigned. -900 An unexpected error occurred. -999 There is no return code. Note: A macro always returns a code, but any single macro will not return all of these codes. Using the Macros Using the Ampersand Character (&) in URLs For a macro with a parameter that specifies a URL, such as a macro that sets properties, you cannot embed the ampersand character (&) in the URL. The ampersand character is a special character in SAS. If you embed an ampersand character, SAS will attempt to resolve the subsequent text as a macro variable. The Proper Case for Parameter Values Although SAS is case insensitive, the parameter values passed to SAS Drug Development may be case sensitive. Quoting Parameter Values In order to ensure consistent results, it is recommended that the parameters of type String be wrapped using one of the string functions, e.g. %str(), %nrbquote(). Using double quotes will result in a SAS system syntax error.