SAS® OnDemand for Academics

Course Data Organization and Convenience Links

Course data organization changed the Summer of 2020. The default location for course data is shown under my_shared_file_links in the user's home direcotry.

For more information on this new scheme, please see Data Questions on our Frequently Asked Questions page.

See also: About Your Course Data Directory

Existing Course Data Migration

In the previous version of SAS OnDemand for Academics, a specific course data directory was created. For example, if Professor Jack Smith created a course, then the course data directory for that course was as follows: /courses/u_sas.com/i_123456/c_1234/

Professor Smith might have created a subdirectory as well, such as: sas_output. This enabled Professor Smith to use the following LIBNAME statement in his SAS code files:

libname myout '/courses/u_sas.com/i_123456/c_1234/sas_output';

In the new system, all courses made by Professor Smith will share a common base path. See About Your Course Data Directory to determine the path. Suppose that the base path is /courses/abcdefghijklmn

The migration process relocated all of Professor Smith's per-course directories (like c_1234 in this example) from the old system to the new base path so that they now appear as subdirectories of that common location.

For example, the path from the previous system (/courses/u_sas.com/i_123456/c_1234/) now maps to the following new location: /courses/abcdefghijklmn/c_1234/

Professor Smith must now update any path references in his files accordingly. For example, the earlier LIBNAME statement would need to be updated to the following:

libname myout '/courses/abcdefghijklmn/c_1234/sas_output';

return to topgo to top

Using my_shared_file_links, my_content+, and my_courses+ Convenience Links

If you find the /courses/abcdefghijklmn course path difficult to use, then you can use links in your home directory to simplify access to course data content. Additionally, these links must be used to see files in the navigation view (left-hand side) of SAS Studio since only the user's home directory is visible in that view.

my_shared_file_links Links

Suppose Jack Smith's userid is 'jacksmith'. When Professor Smith creates his first course, the following link will be created: /home/jacksmith/my_shared_file_links. It can be used interchangeably with the associated course data path: /courses/abcdefghijklmn/

Professor Smith could choose to update his previous LIBNAME statement to the following:

libname myout '/home/jacksmith/my_shared_file_links/c_1234/sas_output';

SAS OnDemand for Academics also supports using '~' as a shorthand for the current user's home directory. Professor Smith could use a '~' to further simplify the LIBNAME statement to the following: libname myout '~/my_shared_file_links/c_1234/sas_output';

Note: The references mentioned above depend on the current user being Professor Smith.

my_content+ Links

Suppose Jack Smith's userid is 'jacksmith'. When Professor Smith creates his first course, the following link will be created: /home/jacksmith/my_content. It can be used interchangeably with the associated course data path: /courses/abcdefghijklmn/

Professor Smith could choose to update his previous LIBNAME statement to the following:

libname myout '/home/jacksmith/my_content/c_1234/sas_output';

SAS OnDemand for Academics also supports using '~' as a shorthand for the current user's home directory. Professor Smith could use a '~' to further simplify the LIBNAME statement to the following: libname myout '~/my_content/c_1234/sas_output';

Note: The references mentioned above depend on the current user being Professor Smith.

my_courses+ Links

The my_courses link can be used to help users enrolled in courses access their course data more easily. It can also be used to view their course data in the navigation view (left-hand side) of SAS Studio.

As an example, when user Jane Doe (with userid 'jdoe') enrolls in Professor Smith's course, a link will automatically be created for Ms. Doe at /home/jdoe/my_courses/jacksmith. With this link, Ms. Doe can choose to create a LIBNAME statement using the actual path of Professor Smith's data area, such as:

libname crsout '/courses/abcdefghijklmn/c_1234/sas_output';

or, she could use use the more readable my_courses link path as in:

libname crsout '/home/jdoe/my_courses/jacksmith/c_1234/sas_output';

As with Professor Smith, the '~' shorthand for the current user's home directory could also be used by Ms. Doe:

libname crsout '~/my_courses/jacksmith/c_1234/sas_output';

Note: Both the first (actual path) and third (~/my_courses path) options will work universally for all students enrolled in Professor Smith's course. The main difference between the options is that the first (actual path) will also work for the instructor while the third will not.

The my_shared_file_links, my_courses, and my_content links are visible and usable within SAS Studio software. They appear as directories in the navigation view (left-hand side) and function similarly.

+ The refrences to my_content and my_courses refers to the original site scheme and may not pertain to your account.

return to topgo to top