SAS Studio 3.5. Developer s Guide to Repositories. SAS Documentation

Size: px
Start display at page:

Download "SAS Studio 3.5. Developer s Guide to Repositories. SAS Documentation"

Transcription

1 SAS Studio 3.5 Developer s Guide to Repositories SAS Documentation

2 The correct bibliographic citation for this manual is as follows: SAS Institute Inc SAS Studio 3.5: Developer's Guide to Repositories. Cary, NC: SAS Institute Inc. SAS Studio 3.5: Developer's Guide to Repositories Copyright 2016, 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 , DFAR (a), DFAR (a) and DFAR and, to the extent required under U.S. federal law, the minimum restricted rights as set out in FAR (DEC 2007). If FAR 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 May 2016 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.

3 Contents Using This Book v PART 1 Working with Repositories 1 Chapter 1 / Accessing Existing Repositories What Is a Repository? How to Access Repositories in SAS Studio Creating Global Repositories PART 2 Developing New Repositories 7 Chapter 2 / Installing and Configuring the Repository Toolkit Appliance About the Repository Toolkit Appliance Download and Import the Repository Toolkit Appliance Configure the Repository ToolKit Appliance in VirtualBox Create an FTP Shortcut to Access Repository Files in SAS Studio Chapter 3 / Understanding the Files in a Repository Overview of the Components About the repository.xml File About the tasks.xml File About the snippets.xml File About the repository.html File PART 3 Learning by Example 23 Chapter 4 / Snippets Repository About the Snippets Repository Example Access the Snippets Repository in SAS Studio Organizing Snippets into Categories Specifying an Icon Linking to Documentation for a Repository or a Snippet Category Referencing Data Files in the Repository Chapter 5 / Macros Repository About the Macro Repository Example Access the Macro Repository in SAS Studio Referencing a Macro from a Task

4 iv Contents Referencing a Macro from a Snippet Chapter 6 / Saved Task Repository About the Saved Task Repository Example Access the Saved Task Repository in SAS Studio Referencing CTM and CTK Task Files Recommended Reading Index

5 v Using This Book Audience This documentation is for users who need to develop a SAS Studio repository. The specifics of how you deploy a repository are not covered in this documentation. You can deploy repositories using web-hosting services, source management services such as GitHub, or your own web content system. The process for deploying repositories depends on the setup at your site. Requirements Prerequisites To access repositories in SAS Studio, your SAS Studio administrator must set the webdms.allowrepositories and webdms.globalsettings configuration properties. For more information about these configuration properties, see SAS Studio: Administrator's Guide. To develop your repository, you can use a variety of tools. If you are already familiar with web hosting, you can use the tool that you are already familiar with. If you are not familiar with developing repositories, SAS Studio provides a Repository Toolkit Appliance that you can use for development. To run this toolkit, you must install Oracle VirtualBox. For more information, see Chapter 2, Installing and Configuring the Repository Toolkit Appliance, on page 9. Using a Web-Hosting Service Security Considerations SAS Studio repositories contain multiple file types. Because of the same-origin policy, you must use a web-hosting service such as GitHub and the Repository Toolkit Appliance. You cannot use a site that cannot host HTML web content with embedded Javascript. For example, Google Drive, Drop Box, and Microsoft SharePoint are file-hosting mechanisms that cannot host true web content. The security for the SAS Studio repositories depends on these security models: The best security is where the repository is deployed. For example, the repository can be deployed inside a firewall for maximum security or outside a firewall for lower security. Basic web authentication is supported.

6 vi Using This Book When possible, SAS Studio uses the existing security from external sources. Because of security concerns, you might want to prevent users from adding any user-defined repositories to their SAS Studio sessions. When the webdms.allowrepositories property is set to false, the Repositories section is not available in the Preferences window in SAS Studio. To allow users to add user-defined repositories, set the webdms.allowrepositories property true. Note: If defined, global repositories are always available to the SAS Studio user from the Tasks and Utilities and Snippets sections in the navigation pane. Global repositories are not listed in the Repositories section of the Preferences window. The location of the global repository is defined by the webdms.globalsettings configuration property.

7 1 Part 1 Working with Repositories Chapter 1 Accessing Existing Repositories

8 2

9 3 1 Accessing Existing Repositories What Is a Repository? How to Access Repositories in SAS Studio Creating Global Repositories What Is a Repository? SAS Studio repositories are an easy way for you to share tasks and snippets with other users at your site. Currently, you might be sharing tasks by sending the CTM files through . This method quickly results in out-of-date content. You might also be sharing tasks and snippets by using a network location. However, a SAS Studio user has to upload these files into their SAS Studio session before they can access these tasks or snippets. Repositories provide a solution to both issues. Maintenance is easier because all the source files are in one place. To view the contents of a repository, the SAS Studio user simply sets a preference in their SAS Studio session. After this preference is set, any tasks and snippets in the repository are visible from the Task and Utilities and Snippets sections in the SAS Studio navigation pane. If you (the developer of the repository) add content to the repository, the SAS Studio user simply needs to refresh the content of the Task and Utilities and Snippets sections to view your changes. How to Access Repositories in SAS Studio 1 Click and select Preferences. The Preferences window appears. 2 From the navigation pane, select Repositories. 3 In the Repositories pane, click. 4 In the Add Repository window, complete these steps: a Specify the name of the repository (as you want the name to appear in SAS Studio).

10 4 Chapter 1 / Accessing Existing Repositories b c Specify the URL for the repository. Click Add. The repository that you added is now listed in the Preferences window. 5 Click Save to close the Preferences window. After a repository is specified in your preferences, you can access any tasks or snippets in that repository from the Tasks and Utilities section or the Snippets section in the navigation pane.

11 Creating Global Repositories 5 In this example, the Simple Repository contains one task and one snippet. To view the task, open the Tasks and Utilities section in the navigation pane. To view the snippet, open the Snippets section in the navigation pane. Creating Global Repositories You might have a repository (or multiple repositories) that you want to make available to everyone at your site. Instead of requiring each SAS Studio user to add these repositories through the Preferences window, you can create global repositories. Global repositories are automatically available from the Tasks and Utilities and Snippets sections when you first open SAS Studio. To create a global repository: 1 Create a repositories.xml file that lists all the repositories you want to include. The following repositories.xml file combines the Simple Repository, Snippet Repository, Macro Repository, and Saved Task Repository. <?xml version="1.0" encoding="utf-8"?>

12 6 Chapter 1 / Accessing Existing Repositories <Repositories> <Repository uri=" name="simple Repository" /> <Repository uri=" name="snippet Repository" /> <Repository uri=" name="macro Repository" /> <Repository uri=" name="saved Task Repository" /> </Repositories> 2 Save the repositories.xml file to your global preferences directory. (You specified this directory by using the webdms.globalsettings property in the config.properties file.) Now, global repositories are available to the SAS Studio users at your site. Note: Global repositories are not listed in the Repositories section of the Preferences window. SAS Studio users cannot change the contents of a global repository within SAS Studio. To change a global repository, an administrator or developer with Write permission must edit the repositories.xml file in the global preferences directory. To allow SAS Studio users to add to their own repositories, set the webdms.allowrepositories property to true in the config.properties file. Now, users can add user-defined repositories to their SAS Studio session by using the Preferences window. For more information about these configuration properties, see SAS Studio: Administrator's Guide.

13 7 Part 2 Developing New Repositories Chapter 2 Installing and Configuring the Repository Toolkit Appliance Chapter 3 Understanding the Files in a Repository

14 8

15 9 2 Installing and Configuring the Repository Toolkit Appliance About the Repository Toolkit Appliance Download and Import the Repository Toolkit Appliance Configure the Repository ToolKit Appliance in VirtualBox Create an FTP Shortcut to Access Repository Files in SAS Studio About the Repository Toolkit Appliance If you are not familiar with creating and hosting web content, SAS provides a Repository Toolkit Appliance that you can use to develop a repository without having to understand all the details of web hosting, FTP, or publishing the repository. After you create and test your repository files, you need to give these files to your web services group for publishing. The appliance contains these items: an Apache Web Service with sample repositories. an FTP server, so you can edit the repositories in SAS Studio. Note: If you are familiar with creating and hosting web content, you can use whatever tool you prefer for creating repositories. For more information, see Chapter 3, Understanding the Files in a Repository, on page 17. Download and Import the Repository Toolkit Appliance 1 Download the Repository Toolkit Appliance from the SAS Studio section of the Downloads and Hot Fixes page on support.sas.com. 2 Open the RepositoryAppliance.ova file in Oracle VirtualBox. The Import Virtual Appliance dialog box appears.

16 10 Chapter 2 / Installing and Configuring the Repository Toolkit Appliance 3 Click Import. The SAS Studio Repository ToolKit is now available.

17 Configure the Repository ToolKit Appliance in VirtualBox 11 Configure the Repository ToolKit Appliance in VirtualBox 1 To start the appliance in VirtualBox, select SAS Studio Repository Toolkit and click Start. After verifying network connectivity, the SAS Studio Repository Toolkit [Running] - Oracle VM VirtualBox window appears.

18 12 Chapter 2 / Installing and Configuring the Repository Toolkit Appliance The default host name is repository-sdk. You should change this name for your environment. 2 To change the default host name, press CTRL+C. 3 At the command prompt, enter sudo sethost appliance-name. For this example, the appliance name is my-repository. Press Enter. 4 When prompted for a password, enter Power2no! and press Enter. 5 When prompted to reboot the virtual machine, press Enter. After the virtual machine reboots, the SAS Studio Repository Toolkit [Running] - Oracle VM VirtualBox opens again, but this time, you should see the name of your repository.

19 Create an FTP Shortcut to Access Repository Files in SAS Studio 13 In this example, the name specified for the appliance was my-repository. Note: When you change the appliance name, the links to the documentation and examples at are no longer valid. Use the URLs (such as that appear in the new console window to access the repository documentation and examples. Create an FTP Shortcut to Access Repository Files in SAS Studio If you are using the Repository Toolkit Appliance, you want to create an FTP folder shortcut to your repository so that you can edit the repository s XML files directly in SAS Studio. This example creates a shortcut called My Sample Repository. This shortcut points to the files that you downloaded as part of the Repository Toolkit Appliance. 1 In the navigation pane, click Server Files and Folders. Click and select Folder Shortcut. The New Folder Shortcut window appears. 2 Specify a name for the shortcut, such as My Sample Repository. 3 From the Folder type drop-down list, select FTP Folder. 4 Enter the host name that appears on the SAS Studio Repository Toolkit Configuration screen. In this example, the host name is my-repository.

20 14 Chapter 2 / Installing and Configuring the Repository Toolkit Appliance 5 Enter the studio as the user ID and Power2no! as the password. 6 In the Directory box, enter ~/Repository. 7 Click Test to verify that your information is correct. 8 Click Save. My Sample Repository now appears in your list of folder shortcuts. If you expand this folder, you see that it contains several directories. The macros folder contains the files for the Macro Repository. For more information, see Chapter 5, Macros Repository, on page 35. The simple folder contains the files for the Simple Repository. For more information, see Chapter 3, Understanding the Files in a Repository, on page 17. The snippets folder contains the files for the Snippets Repository. For more information, see Chapter 4, Snippets Repository, on page 25.

21 Create an FTP Shortcut to Access Repository Files in SAS Studio 15 The tasks folder contains the files in the Saved Tasks Repository. For more information, see Chapter 6, Saved Task Repository, on page 41.

22 16 Chapter 2 / Installing and Configuring the Repository Toolkit Appliance

23 17 3 Understanding the Files in a Repository Overview of the Components About the repository.xml File About the tasks.xml File About the snippets.xml File About the repository.html File Overview of the Components Whether you deploy a repository internally or use a web-hosting service, the structure and contents of the repository are the same. A repository can contain multiple file types, such as graphics, data files, and PDF files. However, all repositories must contain these XML files: the repository.xml file, which contains the repository definition. a tasks.xml or a snippets.xml file. You must have at least one of these files in your repository, but you could have both. You also could have multiple tasks.xml and snippets.xml files. These files create the task definitions and the snippet definitions for the categories that you defined in the repository.xml file. the repository.html file. You use this file to access the repository outside of SAS Studio. Open this HTML file in a web browser to validate and test your repository. Note: To comply with the same-origin policy, all files must be saved in the same domain. You cannot have resources in multiple domains. For example, you cannot create a repository where some of the XML files are in a network directory and some of the files are in Github. About the repository.xml File The repository.xml file defines the repository. You can edit this file using an external application, such as NotePad, or by using SAS Studio.

24 18 Chapter 3 / Understanding the Files in a Repository Note: In the repository.xml file, any special characters that are part of a name must be represented by an escape character. If any of the names in the XML file contain a special character, the XML parser fails. For example, if you use the ampersand sign (&), the XML parser fails. Instead, you need to use &. In the My Sample Repository, open simple/repository.xml in the SAS Studio workspace. This is the repository.xml file for the Simple Repository. You should see this code: <?xml version="1.0" encoding="utf-8"?> 1 <Repository label="example SAS Studio Repository" version="1.0"> 2 <Tasks> <Category label="example Tasks"> <Location uri="./data/tasks.xml" /> </Category> </Tasks> 3 <Snippets> <Category label="example Snippets"> <Location uri="./sgplot/snippets.xml" /> </Category> </Snippets> </Repository> 1 The repository.xml file starts with the Repository element, which contains the label and version attributes. These attributes are required. 2 Use the Tasks element to group categories of tasks. You must have at least one category. The category appears under the name of the repository in the Tasks and Utilities section of the navigation pane. Specify the name of the category by using the label parameter. Each Category element must contain a Location element. You specify the location of the tasks.xml file (which defines the tasks in that category) using the uri parameter. This path can be relative or absolute. 3 Use the Snippets element to group categories of snippets. You must have at least one category. The category appears under the name of the repository in the Snippets section of the navigation pane. Specify the name of the category by using the label parameter. Each Category element must contain one Location element. You specify the location of the snippets.xml file (which defines the tasks in that category) using the uri parameter. This path can be relative or absolute. About the tasks.xml File The tasks.xml file lists the tasks in a category. You need a tasks.xml file for every task category that you create.

25 About the snippets.xml File 19 Because the simple repository contains only one category, all the task-related files are stored in the data directory. Double-click the tasks.xml file to open it in the workspace. You should see this code: <?xml version="1.0" encoding="utf-8"?> 1 <Tasks> 2 <Task> <Name label="list Data"/> <Template uri="./listdata.ctm"/> </Task> </Tasks> 1 Use the Tasks element to group all tasks into a single category. This element must contain one or more Task elements. 2 Use the Task element to define each task in the category. Both the Name and Template elements are required. The Name element specifies the name of the task by using the required label attribute. The Template element specifies the location of the CTM or CTK file by using the required uri attribute. The location of the CTM or CTK file can be relative or absolute. In the simple repository, the ListData.ctm file is saved with the tasks.xml file in the data directory. About the snippets.xml File The snippets.xml file lists the snippets in a single category. You need a snippets.xml file for every snippet category that you create.

26 20 Chapter 3 / Understanding the Files in a Repository Because the Simple Repository contains only one category, all the snippetrelated files are stored in the sgplot directory. Double-click the snippets.xml file to open it in the workspace. You should see this code in the workspace: <?xml version="1.0" encoding="utf-8"?> 1 <Snippets> 2 <Snippet> <Name label="needle Plot"/> <Template uri="./needle.sas"/> </Snippet> </Snippets> 1 Use the Snippets element to group all snippets into a single category. This element must contain one or more Snippet elements. 2 Use the Snippet element to define each snippet in the category. Both the Name and Template elements are required. The Name element specifies the name of the snippet using the required label attribute. The Template element specifies the location of the SAS file using the required uri attribute. The location of the SAS file can be relative or absolute. In the simple repository, the needle.sas file is saved with the snippets.xml file in the sgplot directory.

27 About the repository.html File 21 About the repository.html File The repository.html file enables you to test and validate that everything is working correctly. Any warnings or errors generated when trying to load the repository appear on the repository.html page. Here is the repository.html file for the Simple Repository. To create the repository.html file for your repository, copy the repository.html file that is shipped with the Repository Toolkit Appliance and save it to the directory that contains your repository files. You do not need to create a new repository.html file.

28 22 Chapter 3 / Understanding the Files in a Repository

29 23 Part 3 Learning by Example Chapter 4 Snippets Repository Chapter 5 Macros Repository Chapter 6 Saved Task Repository

30 24

31 25 4 Snippets Repository About the Snippets Repository Example Access the Snippets Repository in SAS Studio Organizing Snippets into Categories Specifying an Icon Linking to Documentation for a Repository or a Snippet Category Referencing Data Files in the Repository About the Snippets Repository Example This repository has several snippet categories defined with SAS code taken from the SAS Knowledge Base and Reference on If you need to provide SAS samples or fragments of SAS code to others in your organization, this repository is a good place to start. This example demonstrates the following functionality: defining multiple snippets and snippet categories specifying an icon for a repository and for an individual snippet referring to documentation that is saved with the repository and documentation that is external to the repository referencing data files in the repository Access the Snippets Repository in SAS Studio 1 Click and select Preferences. The Preferences window appears. 2 From the navigation pane, select Repositories. 3 In the Repositories pane, click.

32 26 Chapter 4 / Snippets Repository 4 In the Add Repository window, complete these steps: a b c For the name of the repository, enter Snippets Repository. For the URL for the repository, enter Repository/snippets/repository.html. Click Add. The repository that you selected is now listed in the Preferences window. In the navigation pane, click Snippets to view the contents of this repository. (You might need to refresh the contents of this section to view the new repository.) Organizing Snippets into Categories In the Server Files and Folders section of the navigation pane, double-click the snippets/repository.xml file. You can see that this repository contains three categories of snippets: SGPlot Samples, Import Snippets, and DBMS Snippets. <?xml version="1.0" encoding="utf-8"?> <Repository label="example SAS Studio Repository" version="1.0"> <Icon uri=" 128/Folder-Blank-sample-icon.png"/> <Documentation uri="./sample.pdf" label="embedded Repository Documentation (via PDF)"/> <Documentation uri=" proc/67916/html/default/viewer.htm#

33 Organizing Snippets into Categories 27 p19bcwkxesgd19n1ciwhc8l95s6s.htm" label="procedures Guide"/> <Snippets> <Category label="sgplot Samples"> <Documentation uri=" grstatproc/67909/html/default/viewer.htm# p073bl97jzadkmn15lhq58yiy2uh.htm" label="sas(r) 9.4 ODS Graphics: Procedures Guide, Fifth Edition"/> <Documentation uri=" proc/67916/html/default/viewer.htm# p19bcwkxesgd19n1ciwhc8l95s6s.htm" label="procedures Guide"/> <Location uri="./sgplot/snippets.xml"/> </Category> <Category label="import Snippets"> <Documentation uri=" proc/67916/html/default/viewer.htm# n18jyszn33umngn14czw2qfw7thc.htm" label="proc IMPORT Statement"/> <Location uri="./import/snippets.xml"/> </Category> <Category label="dbms Snippets"> <Documentation uri=" acreldb/68028/html/default/viewer.htm#titlepage.htm" label="sas/access 9.4 for Relational Databases"/> <Location uri="./access/snippets.xml"/> </Category> </Snippets> </Repository> These categories are organized into separate directories to keep your files organized and easy to manage. The access directory contains the files for the DBMS Snippets category. The import directory contains the files for the Import Snippets category. The sgplot directory contains the files for the SGPlot Samples category.

34 28 Chapter 4 / Snippets Repository Specifying an Icon In SAS Studio, icons are used to help quickly identify a task, snippet, or repository. You can specify custom icons to identify each task, snippet, and repository. Here is an example of the Icon element in the repository.xml file for the Snippets Repository. <?xml version="1.0" encoding="utf-8"?> <Repository label="example SAS Studio Repositories"> <Icon class="" uri="./repository.png"/>... </Repository> In the Icon element, the path to the icon can be absolute or relative. In this example, the repository.png file is saved in the same directory as the repository.xml file, so the path is relative. When you view the repository in SAS Studio, you see the repository.png icon next to Snippets Repository in the Snippets sections of the navigation pane.

35 Specifying an Icon 29 You can also use the Icon element in the tasks.xml and snippets.xml files to specify icons for individual tasks and snippets. For example, here is part the snippets.xml file for the DBMS Snippets category. The highlighted code shows the Icon element for the Assign Oracle Library snippet. <Snippets> <Snippet> <Name label="assign Oracle Library"/> <Documentation uri=" acreldb/68028/html/default/viewer.htm# p1ujrhdoe1p743n12awcf7mwyg81.htm" label="sas/access Interface to Oracle"/> <Template uri="./oracle.sas"/> <Icon uri=" </Snippet> <Snippets> In this case, the icon is available from an external site, so when SAS Studio loads the repository, it pulls the image from this external site. As a result, the icon from the external site appears next to Assign Oracle Library.

36 30 Chapter 4 / Snippets Repository Linking to Documentation for a Repository or a Snippet Category To help your users understand the contents of the repository and to provide instructions on how to use the repository, you might want to provide custom documentation or link to external documentation (such as SAS documentation on support.sas.com). You can provide documentation for a repository, task, or snippet by using the Documentation element. Here is an example of Documentation elements in the repository.xml file for the Snippets Repository. <?xml version="1.0" encoding="utf-8"?> <Repository label= Example SAS Studio Repository version= 1.0 > <Icon url= folder/128/folder-blank-sample-icon.png"/> 1 <Documentation uri="./sample.pdf" label="embedded Repository Documentation (via PDF)"/> 2 <Documentation uri=" en/proc/67916/html/default/viewer.htm#p19bcwkxesgd19n1ciwhc8l95s6s.htm" label="procedures Guide"/> </Repository>

37 Linking to Documentation for a Repository or a Snippet Category 31 1 The first Documentation element uses a relative path because the sample.pdf file is saved with the other files in the repository. 2 The second Documentation element uses an absolute path because it is referring to SAS Procedures Guide, which is available at support.sas.com/documentation/cdl/en/proc/68954/html/default/ viewer.htm#p19bcwkxesgd19n1ciwhc8l95s6s.htm. To view these links in SAS Studio, select the name of the repository (in this example, Snippets Repository) in the Snippets section of the navigation pane. Then click. The documentation links are available from the Properties window. When you click Embedded Repository Documentation (via PDF), the PDF version of the documentation opens from this URL: Repository/snippets/sample.pdf. When you click Procedures Guide, a new tab opens in your web browser and shows the HTML version of the SAS Procedures Guide at support.sas.com. You can also use the Documentation element to add documentation to individual snippets.here is an example of a Documentation element in the access/snippets.xml file: <Snippet> <Name label="assign Oracle Library"/> <Documentation uri=" /HTML/default/viewer.htm#p1ujrhdoe1p743n12awcf7mwyg81.htm" label="sas/access Interface to Oracle"/> <Template uri="./oracle.sas"/> <Icon uri=" </Snippet> To view this documentation, select the Assign Oracle Library snippet in the Snippets section of the navigation pane. Click.

38 32 Chapter 4 / Snippets Repository In the Properties window, you see the link to the SAS/ACCESS Interface to Oracle documentation. Referencing Data Files in the Repository You can also include data files (such as XLS, TXT, and CSV) in a repository. In the Snippets Repository, the import folder contains three data files: auto.xls, delimiter.txt, and sample.csv.

39 Referencing Data Files in the Repository 33 Here is the content of the import_xls.sas file: filename url url "{baseurl}/auto.xls"; filename xls temp; data _null_; infile url recfm=f lrecl=1; file xls recfm=f lrecl=1; input x $char1.; put x $char1.; run; proc import out = WORK.auto1 datafile=xls dbms=xls replace; sheet="auto1"; getnames=yes; run; proc print; run; This code assumes that the SAS server can access URLs where the repository resides by leveraging the power of the FILENAME Statement, URL Access Method. The SAS code is saved in the same location as the external file. You can reference this data from your SAS code by using {baseurl}, which resolves the repository URL when accessed. For more information about the FILENAME statement, URL Access Method, see SAS Statements: Reference.

40 34 Chapter 4 / Snippets Repository

41 35 5 Macros Repository About the Macro Repository Example Access the Macro Repository in SAS Studio Referencing a Macro from a Task Referencing a Macro from a Snippet About the Macro Repository Example This repository includes a task and a snippet that use SAS macros. The macros are saved in the qr_macros.sas file. The FILENAME statement in the task (the qr_code.ctm file) and the snippet (the qr.sas file) use the URL Access Method to %INCLUDE the repository macros.

42 36 Chapter 5 / Macros Repository Access the Macro Repository in SAS Studio 1 Click and select Preferences. The Preferences window appears. 2 From the navigation pane, select Repositories. 3 In the Repositories pane, click. 4 In the Add Repository window, complete these steps: a b c For the name of the repository, enter Macro Repository. For the URL of the repository, enter Repository/macros/repository.html. Click Save. The repository that you selected is now listed in the Preferences window. Referencing a Macro from a Task The Macro Repository contains only one task. To view the Generate QR code task, open the Tasks and Utilities section in the navigation pane. Because this repository contains only one task, the code in the tasks.xml file is pretty simple. <?xml version="1.0" encoding="utf-8"?> <Tasks>

43 Referencing a Macro from a Task 37 <Task> <Name label="generate QR Code"/> <Template uri="./qr_code.ctm"/> <Icon uri=" windows-8-metro-style/512/qr_code.png"/> </Task> </Tasks> The Template element refers to the CTM file that contains the XML code, Apache Velocity code, and SAS code needed to run the task. (For more information about how to write a SAS Studio task, see SAS Studio: Developer's Guide to Writing Custom Tasks.) Because this CTM file is saved in the repository, the Template element uses a relative path. Here is the code in the qr_code.ctm file: <?xml version="1.0" encoding="utf-8"?> <Task schemaversion="4.0" runnls="never"> <Registration> <Name>Generate a QR Code</Name> <Description>Generate a QR Code</Description> <GUID>*</GUID> <Procedures>HTTP</Procedures> <Version>3.5</Version> <Links> <Link href=" a QR Code using PROC HTTP</Link> </Links> </Registration> <Metadata> <DataSources> </DataSources> <Options> <Option name="optionstab" inputtype="string">options</option> <Option name="textexample" defaultvalue="my QR Code" inputtype="inputtext" indent="1" required="true" promptmessage="text for your QR Code" missingmessage="missing text.">input text:</option> </Options> </Metadata> <UI> <Container option="optionstab"> <OptionItem option="textexample"/> </Container> </UI> <CodeTemplate> <![CDATA[ filename url url "{baseurl}/qr_macros.sas"; %include url;

44 38 Chapter 5 / Macros Repository filename code temp; data _null_; file code; put "$textexample"; output; run; %generate_qr_code(code,_dataout); %let _DATAOUT_MIME_TYPE=image/png; %let _DATAOUT_NAME=qrcode.png; ]]> </CodeTemplate> </Task> In the CTM file, the Registration, Metadata, and UI elements define the user interface for the task. When you run the Generate QR Code task in SAS Studio, you see this user interface: The content of the CodeTemplate element generates the SAS code that is needed to run the task. The FILENAME statement uses the URL Access Method to point to the qr_macros.sas file, which contains the macro code. Here is the code for the qr_macro.sas file: /* Have whatever text you want in the first fileref, and reference a PNG file in the second fileref. Use this macro to produce a QR image of the text. You can have up to 4K of text in the input file. For example: filename mypgm 'mypgm.sas'; filename myqr 'qr.png'; %to_qr ( mypgm, myqr ); */ %macro generate_qr_code(in,out); /*this data step generates a string of attributes required by the web service.*/ data; infile &in recfm=f lrecl=4096 length=l; length url_encoded $8192; keep url_encoded; all $varying4096. l; url_encoded = 'chs=500x500&cht=qr&chl=' urlencode(strip(all)) '&chld=l'; call symputx('qrtextl',length(url_encoded)); output; stop;

45 Referencing a Macro from a Snippet 39 run; filename qrtext temp recfm=f lrecl=&qrtextl; /* This data step writes to a text file the input that PROC HTTP will use to call the web service. */ data _null_; set; file qrtext; put url_encoded; run; proc delete; run; /*call the web service*/ proc http in=qrtext out=&out method='post' url=' ct='application/x-www-form-urlencoded'; run; filename qrtext clear; %mend; Referencing a Macro from a Snippet The Macro Repository contains only one snippet. To view the Generate QR Code snippet, open the Snippets section in the navigation pane. Because this repository contains only one snippet, the code in the snippets.xml is pretty simple. <?xml version="1.0" encoding="utf-8"?> <Snippets> <Snippet> <Name label="generate QR Code"/> <Documentation uri=" label="generating a QR Code using PROC HTTP"/> <Template uri="./qr.sas"/> <Icon uri="

46 40 Chapter 5 / Macros Repository windows-8-metro-style/512/qr_code.png"/> </Snippet> </Snippets> As shown by the reference in the Template element, the snippet is created using code in the qr.sas file (which is saved in the repository). Here is the content of the qr.sas file: filename url url "{baseurl}/qr_macros.sas"; %include url; filename code temp; data _null_; file code; put "proc print data=sashelp.fish;run;"; output; run; %generate_qr_code(code,_dataout); %let _DATAOUT_MIME_TYPE=image/png; %let _DATAOUT_NAME=qrcode.png; In qr.sas, the FILENAME statement uses the URL Access Method to point to the qr_macros.sas file, which contains the macro code. When you run the snippet, {baseurl} resolves to the repository URL.

47 41 6 Saved Task Repository About the Saved Task Repository Example Access the Saved Task Repository in SAS Studio Referencing CTM and CTK Task Files About the Saved Task Repository Example This repository includes only tasks. SAS Studio has two types of task files. A CTM file is the XML and Apache Velocity code that is used to create the user interface and generate the SAS code for the task. A CTK file is a task that is saved with one or more options already selected. Using a CTK file makes it easier to run the same task with the same settings over and over again. All task files must be saved in the repository. For the Saved Task Repository, the data folder contains all of the CTM and CTK files that are used in this repository.

48 42 Chapter 6 / Saved Task Repository Access the Saved Task Repository in SAS Studio 1 Click and select Preferences. The Preferences window appears. 2 From the navigation pane, select Repositories. 3 In the Repositories pane, click. 4 In the Add Repository window, complete these steps: a b c For the name of the repository, enter Saved Task Repository. For the URL of the repository, enter Repository/tasks/repository.html. Click Add. The repository that you selected is now listed in the Preferences window.

49 Referencing CTM and CTK Task Files 43 In the navigation pane, click the Tasks and Utilities section to view the tasks in the Saved Task Repository. Referencing CTM and CTK Task Files In the Server Files and Folders section of the navigation pane, open the data/ tasks.xml file. The tasks.xml file shows that this repository contains four tasks: List Data Model; List Data - SASHELP.FISH; List Data - SASHELP.GAS; and List Data - SASHELP.VOPTIONS. The Template element specifies the location of each task file. This element accepts both CTM and CTK files. <?xml version="1.0" encoding="utf-8"?> <Tasks> <Task> <Name label="list Data Model"/> <Template uri="./listdata.ctm"/> </Task> <Task> <Name label="list Data - SASHELP.FISH"/> <Template uri="./listdatafish.ctk"/> <Icon uri=" </Task> <Task> <Name label="list Data - SASHELP.GAS"/> <Template uri="./listdatagas.ctk"/> </Task> <Task> <Name label="list Data - SASHELP.VOPTIONS"/>

50 44 Chapter 6 / Saved Task Repository <Template uri="./listdataoptions.ctk"/> <Documentation uri=" bt3004.pdf" label="introduction to Dictionary Tables"/> <Icon uri="./listtable.png"/> </Task> </Tasks> Now, click the Tasks and Utilities section in the navigation pane. If you open the List Data Model task (which uses the ListData.ctm file), no data set is selected by default. Next, open the List Data - SASHELP.FISH task. When you open this task, the SASHELP.FISH data set is automatically selected. This data set is a setting in the ListDataFish.ctk file, so this data set is selected by default when you open the List Data - SASHELP.FISH task.

51 Referencing CTM and CTK Task Files 45 If you open the List Data - SASHELP.VOPTIONS task, you see that the SASHELP.VOPTION data set is selected and that the optname and setting columns are assigned to the List variables role. These settings are part of the

52 46 Chapter 6 / Saved Task Repository ListDataOptions.ctk file, so the data set and roles are already set when you open the List Data - SASHELP.VOPTIONS task.

53 47 Recommended Reading SAS Studio: User's Guide SAS Studio: Administrator's Guide For a complete list of SAS publications, go to sas.com/store/books. If you have questions about which titles you need, please contact a SAS Representative: SAS Books SAS Campus Drive Cary, NC Phone: Fax: sasbook@sas.com Web address: sas.com/store/books

54 48 Recommended Reading

55 49 Index Special Characters {baseurl} 32 G global repositories 5 C categories creating 26 configuration properties 5 CSV files 32 CTK files 41 CTM files 41 D data files 32 developing a repository 9 documentation 30 Documentation element 30 E elements Documentation 30 Icon 28 F FILENAME statement, URL Access Method 35 files repository.html 21 repository.xml 17 snippets.xml 19 tasks.xml 18 FTP shortcuts 13 I icons 28 M Macro Repository accessing in SAS Studio 36 O Oracle VirtualBox 9 R repositories about 3 accessing 3, 21 accessing in SAS Studio 13 components 17 developing 9 documentation 30 editing 13 file structure 17 global 5 icon 28 simple 17 snippets 25 validating 21 Repository Toolkit Appliance 9 configuring 11 downloading 9 importing 9 repository.html 21 creating 21 repository.xml files 17

56 50 Index S same-origin policy 17 SAS macros 35 referencing from a task 36 snippets 39 Saved Task Repository accessing in SAS Studio 42 Simple Repository 17 snippets categories 26 categorizing 19 documentation 30 icons 29 referencing SAS macros 39 Snippets Repository accessing in SAS Studio 25 snippets.xml files 19 T tasks categorizing 18 icons 29 referencing a macro 36 referencing CTK files 43 referencing CTM files 43 tasks.xml files 18 TXT files 32 X XLS files 32

57

58

Developing SAS Studio Repositories

Developing SAS Studio Repositories Paper SAS6140-2016 Developing SAS Studio Repositories Marie Dexter, Swapnil Ghan, Michael Monaco, and Amy Peters, SAS Institute Inc., Cary, NC ABSTRACT This paper covers developing SAS Studio repositories.

More information

SAS Contextual Analysis 14.3: Administrator s Guide

SAS Contextual Analysis 14.3: Administrator s Guide SAS Contextual Analysis 14.3: Administrator s Guide SAS Documentation August 25, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS Contextual Analysis

More information

SAS Workflow Manager 2.2: Administrator s Guide

SAS Workflow Manager 2.2: Administrator s Guide SAS Workflow Manager 2.2: Administrator s Guide SAS Documentation July 19, 2018 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2018. SAS Workflow Manager 2.2: Administrator

More information

SAS Contextual Analysis 13.2: Administrator s Guide

SAS Contextual Analysis 13.2: Administrator s Guide SAS Contextual Analysis 13.2: Administrator s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2014. SAS Contextual Analysis 13.2: Administrator's

More information

SAS Clinical Data Integration 2.6

SAS Clinical Data Integration 2.6 SAS Clinical Data Integration 2.6 User s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS Clinical Data Integration 2.6: User's Guide.

More information

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

SAS Simulation Studio 14.1: User s Guide. Introduction to SAS Simulation Studio SAS Simulation Studio 14.1: User s Guide Introduction to SAS Simulation Studio This document is an individual chapter from SAS Simulation Studio 14.1: User s Guide. The correct bibliographic citation for

More information

SAS University Edition: Installation Guide for Linux

SAS University Edition: Installation Guide for Linux SAS University Edition: Installation Guide for Linux The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2018. SAS University Edition: Installation Guide for Linux. Cary,

More information

SAS Studio 3.7: Writing Your First Custom Task

SAS Studio 3.7: Writing Your First Custom Task SAS Studio 3.7: Writing Your First Custom Task SAS Documentation April 18, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS Studio 3.7: Writing Your First

More information

SAS University Edition: Installation Guide for Windows

SAS University Edition: Installation Guide for Windows SAS University Edition: Installation Guide for Windows i 17 June 2014 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2014. SAS University Edition: Installation Guide

More information

Licensing SAS DataFlux Products

Licensing SAS DataFlux Products Licensing SAS DataFlux Products The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2014. Licensing SAS DataFlux Products. Cary, NC: SAS Institute Inc. Licensing SAS DataFlux

More information

SAS Factory Miner 14.2: User s Guide

SAS Factory Miner 14.2: User s Guide SAS Factory Miner 14.2: User s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS Factory Miner 14.2: User s Guide. Cary, NC: SAS Institute

More information

Two-Machine Deployment of SAS Office Analytics 7.4

Two-Machine Deployment of SAS Office Analytics 7.4 Two-Machine Deployment of SAS Office Analytics 7.4 SAS Documentation January 8, 2018 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. Two-Machine Deployment of

More information

DataFlux Web Studio 2.5. Installation and Configuration Guide

DataFlux Web Studio 2.5. Installation and Configuration Guide DataFlux Web Studio 2.5 Installation and Configuration Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2014. DataFlux Web Studio 2.5: Installation and Configuration

More information

SAS Universal Viewer 1.3

SAS Universal Viewer 1.3 SAS Universal Viewer 1.3 User's Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2012. SAS Universal Viewer 1.3: User's Guide. Cary, NC: SAS

More information

SAS Studio 3.4: Administrator s Guide, Second Edition

SAS Studio 3.4: Administrator s Guide, Second Edition SAS Studio 3.4: Administrator s Guide, Second Edition SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS Studio 3.4: Administrator s Guide,

More information

SAS 9.4 Foundation Services: Administrator s Guide

SAS 9.4 Foundation Services: Administrator s Guide SAS 9.4 Foundation Services: Administrator s Guide SAS Documentation July 18, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. SAS 9.4 Foundation Services:

More information

SAS IT Resource Management 3.3

SAS IT Resource Management 3.3 SAS IT Resource Management 3.3 Gallery Manager User's Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2012. SAS IT Resource Management 3.3:

More information

SAS Infrastructure for Risk Management 3.4: User s Guide

SAS Infrastructure for Risk Management 3.4: User s Guide SAS Infrastructure for Risk Management 3.4: User s Guide SAS Documentation March 2, 2018 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS Infrastructure for

More information

Getting Started with SAS Factory Miner 14.2

Getting Started with SAS Factory Miner 14.2 Getting Started with SAS Factory Miner 14.2 SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. Getting Started with SAS Factory Miner 14.2. Cary,

More information

SAS Federation Server 4.2: Migration Guide

SAS Federation Server 4.2: Migration Guide SAS Federation Server 4.2: Migration Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS Federation Server 4.2: Migration Guide. Cary,

More information

SAS IT Resource Management 3.8: Reporting Guide

SAS IT Resource Management 3.8: Reporting Guide SAS IT Resource Management 3.8: Reporting Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS IT Resource Management 3.8: Reporting Guide.

More information

SAS Clinical Data Integration 2.4

SAS Clinical Data Integration 2.4 SAS Clinical Data Integration 2.4 User s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. SAS Clinical Data Integration 2.4: User's Guide.

More information

SAS Data Loader 2.4 for Hadoop

SAS Data Loader 2.4 for Hadoop SAS Data Loader 2.4 for Hadoop vapp Deployment Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS Data Loader 2.4 for Hadoop: vapp Deployment

More information

Scheduling in SAS 9.4, Second Edition

Scheduling in SAS 9.4, Second Edition Scheduling in SAS 9.4, Second Edition SAS Documentation September 5, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. Scheduling in SAS 9.4, Second Edition.

More information

SAS University Edition: OS X

SAS University Edition: OS X SAS University Edition: OS X i 2014 年 6 月 17 日 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2018. SAS University Edition: Installation Guide for OS X. Cary, NC:

More information

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

SAS. Social Network Analysis Server 6.2: Installation and Configuration Guide, Third Edition. SAS Documentation SAS Social Network Analysis Server 6.2: Installation and Configuration Guide, Third Edition SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016.

More information

SAS Business Rules Manager 1.2

SAS Business Rules Manager 1.2 SAS Business Rules Manager 1.2 User s Guide Second Edition SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2012. SAS Business Rules Manager 1.2. Cary,

More information

SAS. OnDemand for Academics: User s Guide. SAS Documentation

SAS. OnDemand for Academics: User s Guide. SAS Documentation SAS OnDemand for Academics: User s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS OnDemand for Academics: User s Guide. Cary, NC:

More information

SAS Business Rules Manager 2.1

SAS Business Rules Manager 2.1 SAS Business Rules Manager 2.1 User s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. SAS Business Rules Manager 2.1: User's Guide. Cary,

More information

SAS Model Manager 2.2. Tutorials

SAS Model Manager 2.2. Tutorials SAS Model Manager 2.2 Tutorials The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2009. SAS Model Manager 2.2: Tutorials. Cary, NC: SAS Institute Inc. SAS Model Manager

More information

SAS Theme Designer 4.7 for Flex

SAS Theme Designer 4.7 for Flex SAS Theme Designer 4.7 for Flex User s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS Theme Designer 4.7 for Flex: User's Guide.

More information

SAS. Studio 4.1: User s Guide. SAS Documentation

SAS. Studio 4.1: User s Guide. SAS Documentation SAS Studio 4.1: User s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS Studio 4.1: User s Guide. Cary, NC: SAS Institute Inc. SAS

More information

SAS Decision Manager 2.2

SAS Decision Manager 2.2 SAS Decision Manager 2.2 Administrator s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2014. SAS Decision Manager 2.2: Administrator's Guide.

More information

SAS Environment Manager 2.1

SAS Environment Manager 2.1 SAS Environment Manager 2.1 User s Guide Second Edition SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. SAS Environment Manager 2.1: User's

More information

Inventory Optimization Workbench 5.2

Inventory Optimization Workbench 5.2 SAS Inventory Optimization Workbench 5.2 Administrator s Guide, Second Edition SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS Inventory

More information

Administering SAS Enterprise Guide 4.2

Administering SAS Enterprise Guide 4.2 Administering SAS Enterprise Guide 4.2 SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2009. Administering SAS Enterprise Guide 4.2. Cary, NC: SAS

More information

Time Series Studio 13.1

Time Series Studio 13.1 SAS Time Series Studio 13.1 Administrator s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. SAS Time Series Studio 13.1: Administrator's

More information

SAS Enterprise Guide 4.3

SAS Enterprise Guide 4.3 Administering SAS Enterprise Guide 4.3 SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc 2010. Administering SAS Enterprise Guide 4.3. Cary, NC: SAS

More information

SAS Graphics Accelerator: User s Guide

SAS Graphics Accelerator: User s Guide SAS Graphics Accelerator: User s Guide SAS Documentation January 24, 2019 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS Graphics Accelerator: User s Guide.

More information

SAS Model Manager 2.3

SAS Model Manager 2.3 SAS Model Manager 2.3 Administrator's Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2010. SAS Model Manager 2.3: Administrator's Guide. Cary,

More information

SAS Visual Analytics 7.3: Installation and Configuration Guide (Distributed SAS LASR )

SAS Visual Analytics 7.3: Installation and Configuration Guide (Distributed SAS LASR ) SAS Visual Analytics 7.3: Installation and Configuration Guide (Distributed SAS LASR ) SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS Visual

More information

External Files. Definition CHAPTER 38

External Files. Definition CHAPTER 38 525 CHAPTER 38 External Files Definition 525 Referencing External Files Directly 526 Referencing External Files Indirectly 526 Referencing Many Files Efficiently 527 Referencing External Files with Other

More information

DataFlux Migration Guide 2.7

DataFlux Migration Guide 2.7 DataFlux Migration Guide 2.7 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. DataFlux Migration Guide 2.7. Cary, NC: SAS Institute Inc. DataFlux Migration Guide

More information

SAS Model Manager 13.1

SAS Model Manager 13.1 SAS Model Manager 13.1 Administrator's Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2014. SAS Model Manager 13.1: Administrator's Guide.

More information

SAS 9.3 Intelligence Platform

SAS 9.3 Intelligence Platform SAS 9.3 Intelligence Platform Migration Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc 2011. SAS 9.3 Intelligence Platform: Migration Guide.

More information

SAS Add-In 7.1 for Microsoft Office: Getting Started in Microsoft Excel, Microsoft Word, and Microsoft PowerPoint, Second Edition

SAS Add-In 7.1 for Microsoft Office: Getting Started in Microsoft Excel, Microsoft Word, and Microsoft PowerPoint, Second Edition SAS Add-In 7.1 for Microsoft Office: Getting Started in Microsoft Excel, Microsoft Word, and Microsoft PowerPoint, Second Edition SAS Documentation The correct bibliographic citation for this manual is

More information

Grid Computing in SAS 9.4

Grid Computing in SAS 9.4 Grid Computing in SAS 9.4 SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. Grid Computing in SAS 9.4. Cary, NC: SAS Institute Inc. Grid Computing

More information

SAS Energy Forecasting 3.1 Installation Guide

SAS Energy Forecasting 3.1 Installation Guide SAS Energy Forecasting 3.1 Installation Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. SAS Document Title, Cary, NC: SAS Institute Inc. SAS Document Title

More information

SAS/STAT 13.1 User s Guide. The Power and Sample Size Application

SAS/STAT 13.1 User s Guide. The Power and Sample Size Application SAS/STAT 13.1 User s Guide The Power and Sample Size Application This document is an individual chapter from SAS/STAT 13.1 User s Guide. The correct bibliographic citation for the complete manual is as

More information

SAS Marketing Operations Management 6.0 R14 Update 1

SAS Marketing Operations Management 6.0 R14 Update 1 SAS Marketing Operations Management 6.0 R14 Update 1 What s New Document SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. SAS Marketing Operations

More information

SAS Studio 3.7: Developer s Guide to Writing Custom Tasks

SAS Studio 3.7: Developer s Guide to Writing Custom Tasks SAS Studio 3.7: Developer s Guide to Writing Custom Tasks SAS Documentation September 20, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS Studio 3.7:

More information

SAS Web Infrastructure Kit 1.0. Overview

SAS Web Infrastructure Kit 1.0. Overview SAS Web Infrastructure Kit 1.0 Overview The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS Web Infrastructure Kit 1.0: Overview. Cary, NC: SAS Institute Inc.

More information

SAS Clinical Data Integration Server 2.1

SAS Clinical Data Integration Server 2.1 SAS Clinical Data Integration Server 2.1 User s Guide Preproduction Documentation THIS DOCUMENT IS A PREPRODUCTION DRAFT AND IS PROVIDED BY SAS INSTITUTE INC. ON AN AS IS BASIS WITHOUT WARRANTY OF ANY

More information

SAS Studio 4.3: User s Guide

SAS Studio 4.3: User s Guide SAS Studio 4.3: User s Guide SAS Documentation December 4, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS Studio 4.3: User s Guide. Cary, NC: SAS Institute

More information

SAS Cloud Analytic Services 3.1: Graphing Your Output

SAS Cloud Analytic Services 3.1: Graphing Your Output SAS Cloud Analytic Services 3.1: Graphing Your Output SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS Cloud Analytic Services 3.1: Graphing

More information

SAS Enterprise Case Management 2.1. Administrator s Guide

SAS Enterprise Case Management 2.1. Administrator s Guide SAS Enterprise Case Management 2.1 Administrator s Guide The correct bibliographic citation for this manual is as follows: SAS Institute, Inc. 2010. SAS Enterprise Case Management 2.1: Administrator's

More information

SAS Cloud Analytic Services 3.2: Accessing and Manipulating Data

SAS Cloud Analytic Services 3.2: Accessing and Manipulating Data SAS Cloud Analytic Services 3.2: Accessing and Manipulating Data SAS Documentation August 23, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS Cloud Analytic

More information

Time Series Studio 12.3

Time Series Studio 12.3 SAS Time Series Studio 12.3 Administrator s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. SAS Time Series Studio 12.3: Administrator's

More information

Forecasting for Desktop 14.1

Forecasting for Desktop 14.1 SAS Forecasting for Desktop 14.1 Administrator's Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS Forecasting for Desktop 14.1: Administrator's

More information

SAS Decision Services 6.3

SAS Decision Services 6.3 SAS Decision Services 6.3 Deployment Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2014. SAS Decision Services 6.3: Deployment Guide. Cary,

More information

SAS Data Loader 2.4 for Hadoop: User s Guide

SAS Data Loader 2.4 for Hadoop: User s Guide SAS Data Loader 2.4 for Hadoop: User s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS Data Loader 2.4 for Hadoop: User s Guide. Cary,

More information

SAS Factory Miner 14.2: Administration and Configuration

SAS Factory Miner 14.2: Administration and Configuration SAS Factory Miner 14.2: Administration and Configuration SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS Factory Miner 14.2: Administration

More information

SAS Visual Analytics 7.2, 7.3, and 7.4: Getting Started with Analytical Models

SAS Visual Analytics 7.2, 7.3, and 7.4: Getting Started with Analytical Models SAS Visual Analytics 7.2, 7.3, and 7.4: Getting Started with Analytical Models SAS Documentation August 16, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015.

More information

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

SAS AppDev Studio TM 3.4 Eclipse Plug-ins. Migration Guide SAS AppDev Studio TM 3.4 Eclipse Plug-ins Migration Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2009. SAS AppDev Studio TM 3.4 Eclipse Plug-ins: Migration

More information

SAS Studio 4.4: User s Guide

SAS Studio 4.4: User s Guide SAS Studio 4.4: User s Guide SAS Documentation July 6, 2018 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2018. SAS Studio 4.4: User s Guide. Cary, NC: SAS Institute

More information

SAS Inventory Optimization 5.1

SAS Inventory Optimization 5.1 SAS Inventory Optimization 5.1 System Administration Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Insitute Inc. 2011. SAS Inventory Optimization 5.1: System

More information

SAS Event Stream Processing 4.3 on Windows: Deployment Guide

SAS Event Stream Processing 4.3 on Windows: Deployment Guide SAS Event Stream Processing 4.3 on Windows: Deployment Guide SAS Documentation July 26, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS Event Stream

More information

SAS 9.4 Intelligence Platform: Migration Guide, Second Edition

SAS 9.4 Intelligence Platform: Migration Guide, Second Edition SAS 9.4 Intelligence Platform: Migration Guide, Second Edition SAS Documentation September 14, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS 9.4 Intelligence

More information

SAS Studio 3.6: Administrator s Guide

SAS Studio 3.6: Administrator s Guide SAS Studio 3.6: Administrator s Guide SAS Documentation March 7, 2018 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS Studio 3.6: Administrator s Guide. Cary,

More information

SAS Data Integration Studio 3.3. User s Guide

SAS Data Integration Studio 3.3. User s Guide SAS Data Integration Studio 3.3 User s Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2006. SAS Data Integration Studio 3.3: User s Guide. Cary, NC: SAS Institute

More information

SAS Marketing Operations Management 6.0 R14 Update 2

SAS Marketing Operations Management 6.0 R14 Update 2 SAS Marketing Operations Management 6.0 R14 Update 2 What s New SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. SAS Marketing Operations Management

More information

Technical Paper. Using SAS Studio to Open SAS Enterprise Guide Project Files. (Experimental in SAS Studio 3.6)

Technical Paper. Using SAS Studio to Open SAS Enterprise Guide Project Files. (Experimental in SAS Studio 3.6) Technical Paper Using SAS Studio to Open SAS Enterprise Guide Project Files (Experimental in SAS Studio 3.6) Release Information Content Version: 1.0 March 2017 Author Jennifer Jeffreys-Chen Trademarks

More information

SAS 9.4 Management Console: Guide to Users and Permissions

SAS 9.4 Management Console: Guide to Users and Permissions SAS 9.4 Management Console: Guide to Users and Permissions SAS Documentation September 19, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2013. SAS 9.4 Management

More information

SAS Drug Development. SAS Macro API 1.3 User s Guide

SAS Drug Development. SAS Macro API 1.3 User s Guide 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

More information

SAS. Contextual Analysis 13.2: User s Guide. SAS Documentation

SAS. Contextual Analysis 13.2: User s Guide. SAS Documentation SAS Contextual Analysis 13.2: User s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2014. SAS Contextual Analysis 13.2: User's Guide. Cary,

More information

SAS Studio 3.6: User s Guide

SAS Studio 3.6: User s Guide SAS Studio 3.6: User s Guide SAS Documentation June 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS Studio 3.6: User s Guide. Cary, NC: SAS Institute

More information

SAS/STAT 13.1 User s Guide. The NESTED Procedure

SAS/STAT 13.1 User s Guide. The NESTED Procedure SAS/STAT 13.1 User s Guide The NESTED Procedure This document is an individual chapter from SAS/STAT 13.1 User s Guide. The correct bibliographic citation for the complete manual is as follows: SAS Institute

More information

SAS Studio 3.7: User s Guide

SAS Studio 3.7: User s Guide SAS Studio 3.7: User s Guide SAS Documentation September 15, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS Studio 3.7: User s Guide. Cary, NC: SAS

More information

SAS Enterprise Miner : Tutorials and Examples

SAS Enterprise Miner : Tutorials and Examples SAS Enterprise Miner : Tutorials and Examples SAS Documentation February 13, 2018 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS Enterprise Miner : Tutorials

More information

Visual Analytics 7.1

Visual Analytics 7.1 SAS Visual Analytics 7.1 Administration Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2014. SAS Visual Analytics 7.1: Administration Guide.

More information

SAS Enterprise Case Management 6.3. Data Dictionary

SAS Enterprise Case Management 6.3. Data Dictionary SAS Enterprise Case Management 6.3 Data Dictionary The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS Enterprise Case Management 6.3: Data Dictionary. Cary,

More information

SAS Studio 3.7: Administrator s Guide

SAS Studio 3.7: Administrator s Guide SAS Studio 3.7: Administrator s Guide SAS Documentation March 7, 2018 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS Studio 3.7: Administrator s Guide. Cary,

More information

SAS 9.4 PC Files Server: Installation and Configuration Guide, Second Edition

SAS 9.4 PC Files Server: Installation and Configuration Guide, Second Edition SAS 9.4 PC Files Server: Installation and Configuration Guide, Second Edition SAS Documentation June 8, 2018 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS

More information

SAS Model Manager 14.2: Migration Guide

SAS Model Manager 14.2: Migration Guide SAS Model Manager 14.2: Migration Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. SAS Model Manager 14.2: Migration Guide. Cary, NC: SAS

More information

SAS Web Report Studio 3.1

SAS Web Report Studio 3.1 SAS Web Report Studio 3.1 User s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2006. SAS Web Report Studio 3.1: User s Guide. Cary, NC: SAS

More information

SAS/ACCESS Interface to R/3

SAS/ACCESS Interface to R/3 9.1 SAS/ACCESS Interface to R/3 User s Guide The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2004. SAS/ACCESS 9.1 Interface to R/3: User s Guide. Cary, NC: SAS Institute

More information

Installation Instructions for SAS 9.4 Installation Kit for Basic Cartridge Installations on z /OS

Installation Instructions for SAS 9.4 Installation Kit for Basic Cartridge Installations on z /OS Installation Instructions for SAS 9.4 Installation Kit for Basic Cartridge Installations on z /OS The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2016. Installation

More information

SAS IT Resource Management 3.3

SAS IT Resource Management 3.3 SAS IT Resource Management 3.3 Migration Documentation SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2012. SAS IT Resource Management 3.3: Migration

More information

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

SAS. Information Map Studio 3.1: Creating Your First Information Map SAS Information Map Studio 3.1: Creating Your First Information Map The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2006. SAS Information Map Studio 3.1: Creating Your

More information

SAS Visual Analytics 7.1 Installation and Configuration Guide (Non-distributed SAS LASR )

SAS Visual Analytics 7.1 Installation and Configuration Guide (Non-distributed SAS LASR ) SAS Visual Analytics 7.1 Installation and Configuration Guide (Non-distributed SAS LASR ) Also applies to SAS Visual Statistics SAS Documentation The correct bibliographic citation for this manual is as

More information

SAS Visual Analytics 7.4: Administration Guide

SAS Visual Analytics 7.4: Administration Guide SAS Visual Analytics 7.4: Administration Guide SAS Documentation October 17, 2017 The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. SAS Visual Analytics 7.4: Administration

More information

SAS Web Infrastructure Kit 1.0. Overview, Second Edition

SAS Web Infrastructure Kit 1.0. Overview, Second Edition SAS Web Infrastructure Kit 1.0 Overview, Second Edition The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2006. SAS Web Infrastructure Kit 1.0: Overview, Second Edition.

More information

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

SAS Forecast Server 3.1. Administrator s Guide to Installation and Configuration SAS Forecast Server 3.1 Administrator s Guide to Installation and Configuration The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2009. SAS Forecast Server 3.1: Administrator

More information

Predictive Modeling with SAS Enterprise Miner

Predictive Modeling with SAS Enterprise Miner Predictive Modeling with SAS Enterprise Miner Practical Solutions for Business Applications Third Edition Kattamuri S. Sarma, PhD Solutions to Exercises sas.com/books This set of Solutions to Exercises

More information

SAS Business Rules Manager 3.1: Administrator s Guide

SAS Business Rules Manager 3.1: Administrator s Guide SAS Business Rules Manager 3.1: Administrator s Guide SAS Documentation The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2015. SAS Business Rules Manager 3.1: Administrator

More information

SAS Fair Banking 8.1 Installation Instructions

SAS Fair Banking 8.1 Installation Instructions SAS Fair Banking 8.1 Installation Instructions Copyright Notice The correct bibliographic citation for this manual is as follows: SAS Institute Inc., SAS Fair Banking 8.1 Installation Instructions, Cary,

More information

APPENDIX 4 Migrating from QMF to SAS/ ASSIST Software. Each of these steps can be executed independently.

APPENDIX 4 Migrating from QMF to SAS/ ASSIST Software. Each of these steps can be executed independently. 255 APPENDIX 4 Migrating from QMF to SAS/ ASSIST Software Introduction 255 Generating a QMF Export Procedure 255 Exporting Queries from QMF 257 Importing QMF Queries into Query and Reporting 257 Alternate

More information

SAS Forecast Server 3.1. Administrator s Guide to Report Administration Tasks

SAS Forecast Server 3.1. Administrator s Guide to Report Administration Tasks SAS Forecast Server 3.1 Administrator s Guide to Report Administration Tasks The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2009. SAS Forecast Server 3.1: Administrator

More information

SAS. Installation Guide Fifth Edition Intelligence Platform

SAS. Installation Guide Fifth Edition Intelligence Platform SAS Installation Guide Fifth Edition 9.1.3 Intelligence Platform The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2006. SAS 9.1.3 Intelligence Platform: Installation

More information

mai Installation Instructions for SAS 9.4 Electronic Software Delivery for Basic Installations on z /OS

mai Installation Instructions for SAS 9.4 Electronic Software Delivery for Basic Installations on z /OS mai Installation Instructions for SAS 9.4 Electronic Software Delivery for Basic Installations on z /OS The correct bibliographic citation for this manual is as follows: SAS Institute Inc. 2017. Installation

More information