Course Preparation Best PracticesIf you plan to teach a course using SAS® OnDemand for Academics, we recommend that you review Getting Started with SAS® OnDemand for Academics.
Available SAS Server DataThe SAS Server includes certain SAS libraries (and their corresponding SAS data sets) by default. The available SAS libraries are dependent on the SAS® OnDemand for Academics client that you are using. As an instructor, you might want to use one or more of the SAS data sets available from the SAS Server to ensure that all your students have access to the data.
To view the available SAS libraries, use the appropriate method to browse data for the SAS® OnDemand for Academics client that you are using in your class.
If you are using SAS® OnDemand for Academics: Enterprise MinerTM, then you have additional options to access data associated with specific SAS teaching materials. For more information, see Accessing Teaching Material Data for SAS® Enterprise MinerTM.
If you prefer to use your own data, refer to SAS Server Data Storage for details about how to upload data to the SAS Server.
SAS Server Data StorageAs an instructor, you have the ability to store data files on the SAS Server for each course that you create. This feature can make it easier to share data with students. Additionally, the data files will remain available for the duration of the course.
Please keep the following in mind when using SAS Server data storage:
mydata.sas7bdat is an acceptable name, but my data.sas7bdat is unacceptable.Note: If you have just registered as a SAS® OnDemand for Academics instructor, your account will be activated and ready for use within 15 minutes. Therefore, it might take up to 15 minutes before you can begin the process of storing data on the SAS Server.
Some universities purchase third party data sources or use open source third party data sources. Often times, these data sources are protected by specific license agreements or terms of use. It is your responsibility to
Please review the license agreement or terms of use for the third party data source(s) in question prior to uploading this type of data to the SAS Server.
Instructors can store SAS data sets (file type extension of .sas7bdat) as well as SAS data set index files (file type extension of .sas7bndx) on the SAS Server.
To upload a SAS data set to the storage area for your course, follow these steps:
Notes:
For step-by-step instructions with screen captures, see Storing and Accessing SAS Data Files
Instructors can store SAS catalog files (file type extension of .sas7bcat or .sas7scat) on the SAS Server and then use them as needed. Storing SAS catalog files on the SAS Server is similar to storing non SAS files on the SAS Server. For more information, see Storing non SAS Data Files on the SAS Server.
Since the SAS Server is Unix based, there are some unique steps that must be followed to use SAS catalog files. Additionally, you must have access to a local copy of SAS software in order to complete the steps. The following steps provide an example of how you could create custom formats and a custom catalog and then upload and use them within SAS OnDemand for Academics.
The following sample code creates a custom format and stores a SAS catalog on your local PC. You can copy and paste the code to try it out (the C:\TEMPFORMATS directory is used as an example, but could be replaced with a different directory name):
libname mydata 'C:\TEMPFORMATS';
proc format lib=work;
value custom_format
0='30'
1='31'
2='32'
;
run;
proc catalog cat=work.formats;
copy out=mydata.formats;
run;
contents cat=mydata.formats;
quit;
filename tranfile 'C:\TEMPFORMATS\transport.dat';
proc cport catalog=mydata.formats file=tranfile;
run;
libname mydata 'C:\TEMPFORMATS';
filename tranfile 'C:\TEMPFORMATS\transport.dat';
proc cport catalog=mydata.formats file=tranfile;
run;
libname mydata "/courses/u_x/i_xxxxxx/c_xxx/saslib";
filename trans2 '/courses/u_x/i_xxxxx/c_xxx/transport.dat';
proc cimport catalog=mydata.formats infile=trans2;
run;
Note: In the code above, replace the x characters with the numbers that correspond to your university, instructor, and course numbers. For more information, see Accessing Data Stored on the SAS Server.
data myformat;
input a;
cards;
0
1
2
3
4
5
;
run;
options fmtsearch=(mydata);
proc print data=myformat; format a custom_format.;
run;
Note: The Code presented above is intended to be used solely as part of a product ("Software") you currently have licensed from SAS Institute Inc. or one of its subsidiaries or authorized agents ("SAS"). The Code is designed to either correct an error in the Software or to add functionality to the Software, but has not necessarily been tested. Accordingly, SAS makes no representation or warranty that the Code will operate error-free. SAS is under no obligation to maintain or support the Code.
Neither SAS nor its licensors shall be liable to you or any third party for any general, special, direct, indirect, consequential, incidental or other damages whatsoever arising out of or related to your use or inability to use the Code, even if SAS has been advised of the possibility of such damages.
Except as otherwise provided above, the Code is governed by the same agreement that governs the Software. If you do not have an existing agreement with SAS governing the Software, you may not use the Code.
Some SAS software applications, such as SAS® OnDemand for Academics: Enterprise Guide, are designed to use data other than SAS data sets. The following types of non SAS data files can be stored on the SAS Server:
To upload data files other than SAS data sets to the storage area for your course, follow these steps:
For step-by-step instructions with screen captures, see Storing and Accessing Non SAS Data Files
Notes:
Once a SAS data set or a data file has been uploaded to the SAS Server, users can access the data using the appropriate LIBNAME or a FILENAME statement.
The LIBNAME or FILENAME statement to use is provided to you during the course registration process. You can also access this information again at any time:
LIBNAME and FILENAME statements are case-sensitive.
Note: If you have created and uploaded a directory, then you must append the directory name to the generated LIBNAME or FILENAME statement for your course. See Uploading and Using Directories for more information.
You can upload directories to the SAS Server using your FTP client. This might be useful if you are trying to organize data files for specific purposes, such as grouping the data used in different course assignments.
If you do upload directories to the SAS Server, then the predefined LIBNAME and FILENAME statements provided for your course will have to be modified to include any directory name. See Accessing Data Stored on the SAS Server to learn how to identify the predefined LIBNAME and FILENAME statements for your course.
For example, if you create and upload a directory called examples, then the name of this directory would have to be appended to the LIBNAME or FILENAME statement generated for your course.
Original Course LIBNAME Statement:
libname mydata "/courses/u_xxxx/i_xxxxx/c_xxx/saslib" access=readonly;Appended Course LIBNAME Statement (assuming that examples was uploaded under the /saslib directory):
libname mydata "/courses/u_xxxx/i_xxxxx/c_xxx/saslib/examples" access=readonly;Note: Directory names (as well as LIBNAME and FILENAME statements) are case-sensitive. If you create and upload a directory named Examples, then you must append Examples (and not examples or EXAMPLES) to your LIBNAME or FILENAME statement.
If you have uploaded data files to the SAS Server for a specific course and you want to see the names and information associated with those data files, do the following:
libname mydata "/courses/u_xxxx/i_xxxxx/c_xxx/saslib" access=readonly;
proc contents data = mydata._all_;
run;
Note: If you have created and uploaded a directory, then you must append the directory name to the generated LIBNAME or FILENAME statement for your course. See Uploading and Using Directories for more information.
Your FTP client must be in passive mode to work properly. This is the default mode for most FTP clients. If you access a "permission denied" error while trying to use FTP, then your FTP client might not be in passive mode. Refer to the online help for your FTP client to determine how to set passive mode.
Note: If you use the Microsoft Windows Command Line as your FTP client, then you will likely have to turn passive mode on. To do so, enter the following command after you have logged on to an FTP site:
literal pasv
If you use a graphical (window-based) FTP client, then you might notice that the file(s) that you attempt to upload disappear after a few minutes (if you refresh the FTP client's window). This is normal. When you successfully upload your file(s) to our FTP location, the files are moved to a different location on our server for security purposes. Therefore, if you refresh your FTP client window after a few minutes, it might appear as if the files have disappeared.
If your file(s) do not disappear and/or if you encounter additional files that are appended with _cksum, then your files have likely not been moved (yet) or you might be trying to FTP unacceptable file types.
File Transfer Protocol (FTP) is used to move data files to the appropriate storage area on the SAS Server. For information about using FTP, refer to the online help available from your Internet browser application. These help systems typically include information about how to use the browser to complete FTP tasks.
If you have reviewed the topics in this section and the online help for your Internet browser and are still having problems storing your data on the SAS Server, then follow these steps:
Teaching MaterialsSAS Education provides certain teaching materials free of charge to instructors at degree-granting academic institutions. These materials include an electronic copy of course notes, slides, and in some cases, code and data. The materials are not available for use by students.
Note: Prior to downloading the course materials, an instructor must register for SAS® OnDemand for Academics. Additionally, instructors will be required to accept a license agreement that specifies the terms and conditions of usage.
The materials were developed for users who are running SAS locally. Certain SAS code examples might not work or might need to be modified. For example, any referenced SAS data sets would need to be uploaded to the SAS Server and any LIBNAME statements would have to be modified to reflect the LIBNAME statement for an instructor's SAS® OnDemand for Academics course. See SAS Server Data Storage for more information.
In some cases, we have already uploaded the SAS data sets used by popular teaching materials. See Accessing Teaching Material Data for SAS® Enterprise MinerTM for more information.
To use SAS data sets associated with the teaching materials from specific SAS® Enterprise MinerTM courses, do the following:
Alternatively, assign one or more of the following LIBNAME statements using SAS® Enterprise MinerTM project start-up code:
libname aaem "/tutorials/em/data/aaem";libname aaemspel "/tutorials/em/data/aaem_spel";
(aaemspel is compatible with SAS® Enterprise MinerTM 5.2 and for use with the SAS® Enterprise MinerTM Self Paced E-Learning course)
libname air "/tutorials/em/data/air";libname dmdt5 "/tutorials/em/data/dmdt53";libname lwemi "/tutorials/em/data/lwemi";libname lwemi2 "/tutorials/em/data/lwemi/Instructor_only";libname pmadv "/tutorials/em/data/pmad53";For more information, see Using Project Start-Up Code.
Available PublicationsReview the following list of recommended titles. For each title, you can preview the content and even place an order:
SAS Publishing offers products to qualified college faculty who are interested in teaching SAS. For more information, see SAS Publishing Desk Copy and Evaluation Copy Programs.
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.
Student CommunicationWhen you create a course within SAS® OnDemand for Academics, you are presented with text that you can copy and paste in to an e-mail to send to your students. This text provides the information that your students will need to register for SAS® OnDemand for Academics and download the appropriate software application.
If you don't copy and paste the text when you initially create a course, you can access the information again at any time:
A generic version of the course text is provided below as an example. You can copy, paste, and customize this text if needed. For example, if you have a coupon code that students will need to use, you can include that code in your e-mail.
Dear student:
I plan to use SAS® OnDemand for Academics: Software Application Name software to teach course name.
As a student in my class, you will need to register for SAS® OnDemand for Academics and then access SAS® OnDemand for Academics: Software Application Name.
Here's how to get started:
Thank you.
If you choose to store data on the SAS Server, then you must share the LIBNAME or FILENAME statement associated with that data with your students. For example, you might include the information in course notes or through e-mail. For more information, see SAS Server Data Storage.
Installation Instruction GuidesStep-by-step account setup and registration guides (including screen captures) are available. These guides can help instructors and students alike. As an instructor, you might want to share copies of the appropriate guides or links to the appropriate guides with your students.
Tips and TricksSOEs include the information necessary to download and install the software that will be used with SAS® OnDemand for Academics. Users should not share their SOEs with other users. Each SOE contains a unique order number that is associated with only one user.