The following resources are available to help you learn how to use SAS® OnDemand for Academics software applications:
SAS® OnDemand for Academics: Enterprise Guide
Reference MaterialsIf any of the supporting materials identified are not inherently accessible and you require an accessible format, please send e-mail to ondemandacademics@sas.com. SAS will work with you to provide an accessible format.
Webinar PresentationYou can watch the following six-part webinar to learn how to use SAS® OnDemand for Academics: Enterprise Guide.
The following files are used in the webinar. You can download these files if you would like to follow along in the webinar or to use at a later time. To download the files, right click on any of the links below and then choose Save Target As to save them to your PC.
Tutorial and DemonstrationIf you are new to SAS® Enterprise Guide® or want to learn more about using SAS® Enterprise Guide®, you will find the free Getting Started tutorial helpful. As you complete the topics in this tutorial, you will learn to use the main features of SAS® Enterprise Guide®. To access this online tutorial,
You are now logged on to the SAS Server. Note that your user name and connection status appear at the bottom right-hand corner of the screen.
To get started, select an option in the Welcome to SAS Enterprise Guide window.
Online Practice Exercises, Statistics Information, and Sample SAS Data SetsFor instructions about how to perform all of the basic statistics taught in an introductory statistics class, a library of SAS data sets, and a library of practice exercises, visit the SAS Online Resources for Statistics Education Web site.
Online Documentation for SAS Enterprise GuideSAS® Enterprise Guide® online documentation is available at the following location: SAS Enterprise Guide 4.1 Documentation
Available Publications for SAS Enterprise GuideA number of books are available for SAS® Enterprise Guide. You can use the SAS Bookstore Web site to find the books, review portions of each book, and even place orders:
Working with Data
Storing DataThere are two ways to store data for use with SAS® OnDemand for Academics:
Uploading Data Files to the SAS ServerIf the data that you want to use is not already available from the SAS Server, then you can use the Upload Data Files to Server task available within SAS® OnDemand for Academics: Enterprise Guide. This task enables you to select one or more SAS data sets (*.sas7bdat) from your local Microsoft Windows file system and copy them to the SAS Server (the SAS Cloud) for processing. You must perform this step in order to work with any local SAS data sets because the SAS Server cannot access any data on your local drives.
The task generates a log that summarizes the data files that were copied, the byte size, timings for each file and for all of the files as a group, and any errors that occurred during the transfer. By default, all data files are added as output data in your SAS® Enterprise Guide® project so that they can be used in the project.
Since any modifications that you make to the data will not be saved once you end your session, you might want to download any data files that you have changed from the SAS Server to your local PC after you have finished your work. For more information, see Downloading Data Files from the SAS Server.
To upload a data set, you
To select the SAS data sets to upload, follow these steps:
This window specifies the name of the SAS server and the destination SAS library for your project. The SAS Server for SAS® OnDemand for Academics is selected by default, and cannot be changed.
The WORK library is the destination SAS library by default and should not be changed. The WORK library is specified because it is the only location on the SAS Server that you have the ability to temporarily store data for processing. Note: Selecting any library other than WORK will result in an error.
To specify the upload options, follow these steps:
A log is created and appears in the SAS® Enterprise Guide® Project Explorer.
Downloading Data Files from the SAS ServerThe Download Data Files to PC task (available within SAS® OnDemand for Academics: Enterprise Guide) enables you to select one or more SAS data sets (*.sas7bdat) from the SAS Server and copy them to your local Microsoft Windows file system. It is important to complete this step if you have modified any SAS data sets that you want to use again in the future.
The task generates a log that summarizes the data files that were copied, the byte size, timings for each file and for all of the files as a group, and any errors that occurred during the transfer.
To download a data set, you
To select the SAS data sets to download, follow these steps:
To specify the download options, follow these steps:
A log is created and appears in the SAS® Enterprise Guide® Project Explorer.
Accessing Existing Data from the SAS ServerThe SAS Server includes some SAS data sets that you might choose to use. To access these SAS data sets, do the following:
Note: Remember that if you modify a SAS data set that exists on the SAS Server and you want to save that SAS data set, you must download the data set to a local drive. If you do not, your modifications will be lost when you end your session. See Downloading Data Files from the SAS Server for more details.
Additionally, some of the SAS data sets available from the SAS Server might be too large to download locally unless you have modified them to make them smaller. In this case, it is recommended that you work with the original SAS data sets only while connected to the SAS Server.
Uploading Data Files to the SAS Server versus Opening SAS Data SetsIf you have access to a local SAS data set, you can choose File --> Open --> Data and select the appropriate SAS data set. However, this is not the preferred method. Instead, SAS recommends that you upload the SAS data set to the SAS Server. This will improve data transfer speed and it will ensure that the step is recorded as part of your project.
See Uploading Data Files from the SAS Server for more details.
Working with Data Other than SAS Data SetsIf you want to work with data other than SAS data sets (such as comma delimited files or text files), you can import the files in to SAS® OnDemand for Academics: Enterprise Guide. To import non SAS data, follow these steps:
Working with Compressed SAS Data SetsSAS does not recommend that you work with compressed SAS Data Sets when using SAS® OnDemand for Academics: Enterprise Guide. If you have a compressed SAS Data Set, you can use the COMPRESS=NO option to remove compression.
Working with LIBNAME and FILENAME StatementsThe SAS Server is unable to recognize or access the local drives of your PC. Therefore, if your SAS program includes a LIBNAME or FILENAME statement that refers to a local path (such as a location on your C: drive), then you will receive processing errors.
Instructors have the ability to store SAS data sets and other data files on the SAS Server. If your instructor has taken advantage of this feature, then you will receive either a LIBNAME statement or a FILENAME statement from your instructor that you can use to access the appropriate data. Note: LIBNAME or FILENAME statements are case-sensitive. Please copy them or type them in exactly as they appear to avoid permissions errors.
If you do have local SAS data sets that you want to use, it is recommended that you upload them. You can then refer to the uploaded SAS data sets in your code or in your projects. Additionally, if you modify the SAS data set(s) that you upload and you want to use them again, you should download the SAS data set(s) from the SAS Server prior to exiting SAS® OnDemand for Academics.
Working with INFILE StatementsAn INFILE statement identifies an external data file to read with an INPUT statement. If you plan to use an INFILE statement or are asked to use an INFILE statement to access data, then you must use a fully qualified path in your statement.
For example, if country.dat exists in a course directory called /courses/u_0/i_123/c_105, then the INFILE statement to access this data file would be:
infile '/courses/u_0/i_123/c_105/country.dat';
However, if you specified a non fully-qualified path (such as the following), then an error would be produced:
infile ‘country.dat’;
If you are an instructor and you have uploaded data to the SAS Server for a specific class, then you can find the fully qualified path to your uploaded data by doing the following:
This information also identifies the fully qualified path for your course data. For example, a FILENAME statement for a specific course might look like the following:
filename sample "/courses/u_0/i_123/c_105/sample.csv";
From this FILENAME statement, we can determine that the fully qualified path is
courses/u_0/i_123/c_105
If you are a student, then you must use the INFILE statement (with the fully qualified path) that your instructor provides. Only instructors have the ability to upload data files to the SAS Server.
Working with INFILE Statements and Microsoft Windows Data FilesIf you import or upload a raw data file (such as a text file or a comma separated value file) from a PC using the Microsoft Windows operating system, the file might contain carriage-return characters. These carriage-return characters will cause errors when you attempt to read the file on the UNIX version of SAS used by SAS OnDemand for Academics servers.
For example, using the following INFILE statement could cause data processing or data display errors: infile newemps dlm=',';
These errors can be avoided by using the following INFILE statement: infile newemps dlm=',' TERMSTR=CRLF;
For more information about the TERMSTR option, search for TERMSTR in SAS 9.1.3 Online Documentation.
Saving DataSAS® OnDemand for Academics provides instructors with the ability to store data (if they choose to use this feature). This stored data can be used during subsequent sessions. However, if you created or modified a SAS data set that you want to be able to use in future SAS® OnDemand for Academics: Enterprise Guide sessions, then you must save that SAS data set locally before ending your session.
To save SAS data sets that you might have used on the SAS Server, see Downloading Data Files from the SAS Server.
Saving WorkSAS® OnDemand for Academics: Enterprise Guide is unable to store your work on the SAS Server (the SAS Cloud). Instead, you must save any work (SAS® Enterprise Guide® projects, SAS files, output files, and so on) to a hard disk drive that you can access prior to ending your session.
To save any work within SAS® OnDemand for Academics: Enterprise Guide, start by selecting one of the following options:
Working with Results
Working with the PDF Result FormatWith SAS® OnDemand for Academics: Enterprise Guide, you have the ability to select the type of result format that you want to produce. By default, the result format is set to HTML.
If you choose to use the PDF result format, then certain graphics will appear distorted unless you also change the default graph format to GIF or JPEG.
Complete the following steps if you want to use the PDF result format and ensure that graphs render appropriately:
Result Formats and Associated Graph FormatsThe default graph format is ActiveX, which typically provides the best results for HTML and SAS Report result formats. If you need to use a result format such as PDF, which does not support interactive graphics types, you will also need to change the graph format to a static device type such as GIF or JPEG. The following table references result formats and the graph formats that each supports:
| Result Format | Supported Graph Format(s) |
|---|---|
| HTML | ActiveX, Java, GIF, JPEG, SAS EMF |
| SAS Report | ActiveX, GIF, JPEG |
| GIF, JPEG, SAS EMF | |
| RTF | ActiveX, GIF, JPEG, SAS EMF |
| Text (Listing) | None |
SAS® OnDemand for Academics: Enterprise MinerTM
Reference MaterialsSAS® OnDemand for Academics: Enterprise MinerTM is based on SAS® Enterprise MinerTM 5.3. Select SAS® Enterprise MinerTM 5.3 materials to review when possible.
DocumentationTo access product documentation, sample data, and more, refer to the SAS® Enterprise MinerTM support site.
Available Publications for SAS Enterprise MinerA number of books are available for SAS® Enterprise MinerTM. You can use the SAS Bookstore Web site to find the books, review portions of each book, and even place orders:
SAS® OnDemand for Academics: Enterprise MinerTM is based on SAS® Enterprise MinerTM version 5.3. Therefore, we recommend the following book: Getting Started with SAS Enterprise Miner 5.3.
Working with Projects
Understanding Project Storage QuotasEach SAS® OnDemand for Academics: Enterprise MinerTM user has 200 MB of project storage. An e-mail message is sent to any user who has used 75% of their storage quota.
If the project storage quota is reached, then SAS® OnDemand for Academics: Enterprise MinerTM will stop functioning properly. To avoid this, consider deleting any unnecessary projects prior to reaching your quota to ensure that SAS® OnDemand for Academics: Enterprise MinerTM continues to work properly.
If you do reach your quota and then delete unnecessary projects to create more project storage space, then the last project that you were working with could be impacted. If the project runs incorrectly after removing unnecessary projects, then you might need to rebuild the diagram(s) for this project.
Accessing DataSAS provides a number of SAS Libraries for you to use in your projects by default, including SAS Libraries associated with teaching materials. For more information, see Accessing Teaching Material Data for SAS® Enterprise MinerTM. Additionally, instructors can upload SAS data sets or data files to the SAS Server for use in specific courses (see SAS Server Data Storage for details). To assign a SAS Library to a project, use one of the following methods: SAS® OnDemand for Academics: Enterprise MinerTM enables you to include start-up code for your project(s). After you have specified this code, it will be run any time that the project is started and can save you time and effort. For example, you might want to assign a LIBNAME statement through start-up code so that a project can always access specific SAS data set(s). To use project start-up code with a new project: Note: If you want to use project start-up code to access SAS data sets that use a format file, then you must also specify the FMTSEARCH option in your start-up code. To use project start-up code with an existing project: Note: If you want to use project start-up code to access SAS data sets that use a format file, then you must also specify the FMTSEARCH option in your start-up code. With SAS® OnDemand for Academics: Enterprise MinerTM, users can create model packages (also known as SAS Package Files or .spk files). Model packages can be created from any node in a diagram. Typically, you create a model package when you are satisfied with your model and you want to preserve it or share it with someone else. In most cases, you create the model package from the last node of a process in a diagram. This ensures that the model package will include the entire process flow. For more information about creating, registering, and sharing model packages, see Differences between Project Model Packages and Exported Project Diagrams, Submitting Homework Assignments or refer to the SAS® OnDemand for Academics: Enterprise MinerTM online help. With SAS® OnDemand for Academics: Enterprise MinerTM, a user can create and register a model package, create a model package without registering it, or export a diagram as an XML file (.xml). By creating and registering a model package, a user can make their project available to others (such as an instructor) without having to send any physical file(s). Registered model packages contain results as well as information about diagram(s). If a specific project takes a long time to run, then having the model package (with the associated results) can be advantageous. If a user chooses not to register a model package, then they can still save the model package and share the model package file with others (through e-mail or a shared network directory). The shared model package will display results only; it will not include access to any diagram files associated with the project. If the user wants to rerun any portion of the project, they will have to access and import any appropriate diagrams. Exported diagrams contain no results. After a project's diagram has been exported as an XML file, it can be shared as an attachment in an e-mail message or by placing the file on a shared network directory. To use the shared file, it must be imported in to SAS® OnDemand for Academics: Enterprise MinerTM and then the appropriate path(s) of the diagram would have to be run to produce results. Note that neither model packages nor exported diagrams include the actual data that is referenced. To rerun the project, you must have access to the original data or use the LIBNAME statement that points to the original data if that data is stored on the SAS Server. With SAS® OnDemand for Academics: Enterprise MinerTM, students can create and submit an entire project model package, share a non-registered model package, or export a project diagram and share the exported file. For more information, see Differences between Project Model Packages and Exported Project Diagrams. Ultimately, the choice is up to the instructor. The decision might be made based on whether or not the instructor needs access to project results and/or diagram files. To submit a registered project model package to an instructor: To ensure that you choose a unique file name, you might want to include your name or initials as part of the file name. This will ensure that an instructor can distinguish one submitted model package from another. To submit a non-registered project model package to an instructor: To ensure that you choose a unique file name, you might want to include your name or initials as part of the file name. This will ensure that an instructor can distinguish one submitted model package from another. To submit an exported project diagram to an instructor: To ensure that you choose a unique file name, you might want to include your name or initials as part of the file name. This will ensure that an instructor can distinguish one submitted diagram from another. After students have submitted homework assignments, instructors can access them. The access method is dependent on how the homework was submitted. To access a registered project model package from a student: To use a project model package file that a student has shared: Note: You will be unable to make any changes or rerun the diagram nodes. However, you can choose Action -> Recreate Diagram to recreate a diagram within the current project. Once a diagram is recreated, you will have a working copy of the diagram, just as if you imported the appropriate diagram.xml. You must run a diagram path to produce any results. To use a project diagram file that a student has shared: Students can collaborate with each other while using SAS® OnDemand for Academics: Enterprise MinerTM in one of two ways: The choice might be determined by whether or not the students need to share the results of a project. Exported diagrams do not contain results while model packages do. Note that neither model packages nor exported diagrams include the actual data that is referenced. To rerun the project, you must have access to the original data or have the LIBNAME that points to the original data if that data is stored on the SAS Server. To share a project model package: To ensure that you choose a unique file name, you might want to include your name or initials as part of the file name. This will ensure that your peers can distinguish one model package from another. Note: The user who receives the model package can start SAS® OnDemand for Academics: Enterprise MinerTM and choose File -> Open Model Package to open the package and view the diagram and results. The user will be unable to make any changes or rerun the diagram nodes. However, the user can choose Action -> Recreate Diagram to recreate the diagram within the current project. Once the diagram is recreated, the user will have a working copy of the diagram, just as if they imported the appropriate diagram.xml. The user must run a diagram path to produce any results. To share a project diagram: To ensure that you choose a unique file name, you might want to include your name or initials as part of the file name. This will ensure that your peers can distinguish one diagram from another. To use a shared project diagram: For general information about using SAS® OnDemand for Academics: JMP, see JMP Frequently Asked Questions. Online Help is available from the main menu of SAS® OnDemand for Academics: JMP. It contains a wealth of resources, including a full documentation set, and other tools to help you get started using the software. Examples of other tools include: When you perform analyses with SAS® OnDemand for Academics: JMP, you might see red and/or blue triangles. Red triangles are hot spots that reveal menus when clicked with a mouse. Blue triangles are disclosure icons that expand when clicked with a mouse. Chapter 11 of the online JMP User Guide is dedicated to SAS integration and working with SAS data. To access this information, select Help --> Books --> JMP User Guide from within SAS® OnDemand for Academics: JMP. Note: Some features, such as the ability to select a SAS server other than the SAS® OnDemand for Academics Server, are disabled in SAS® OnDemand for Academics: JMP. For more information about working with SAS® OnDemand for Academics: JMP, SAS, and data, see Storing Data. Students can take advantage of the following e-Learning courses from SAS for 50% off their retail price. These courses could be used as supplements or to learn more about SAS software. To receive the 50% off student discount for the above e-Learning courses, follow these steps:
Assigning a SAS Library to a Project
Using Project Start-Up Code
Creating Model Packages
Differences between Project Model Packages and Exported Project Diagrams
Submitting Homework Assignments
Accessing Submitted Homework Assignments
Collaborating
SAS® OnDemand for Academics: JMP
Frequently Asked Questions
Educational Resources
Working with Red and Blue Triangles
Working with SAS Data
e-Learning Courses
Requesting the Student Discount