- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I am teaching with SAS Studio via SAS OnDemand for Academics. I want to assign a hands on project to the students and they need to drop in the LMS drop box the assignment SAS program code, results, and outputs all in one file. How do they create and save such a single file that contains all of the above items? Thanks.
Kaddour
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Cynthia. The solution of three files is probable the most convenient.
Another question just to confirm: The students can always email the instructor the summary, code, results (PDF and/or RTF) by clicking the email icon within "Results" section, correct?
Thanks again.
Kaddour
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
That is going to be a challenge. The SAS Program file (a .SAS file) and the SAS log, can typically be saved as separate files, with the extensions of .SAS and .LOG, but they will be in 2 separate files. Once saved on SAS Studio, they could download the separate files to their system and then combine the files in Notepad or Wordpad or Word and resave. The challenge with the results is that typically, the results in SAS Studio are created as HTML files, by default, which is not going to be easily combined with the other text files unless your students use a Word Processing program to combine the .SAS file and the .LOG file and the downloaded HTML results together.
Another alternative would be to just require that each student send you 3 separate files as: student_name.sas, student_name.log and student_name.html -- where you would get 3 files from each student. They could write SAS programs to combine the .SAS program and the .LOG results into one file or you could use PROC PRINTTO to sent LOG output and a TEXT version of the results to a .LST file. The challenge with this last approach is that if your assignment included creating any type of graphics, then that output might not appear correctly in the .LST file, which is just n ASCII text file of the tabular output from your SAS code. What you are envisioning -- getting all the output in one file would be a burden to students who are new users of SAS. Are these students more experienced and comfortable with writing DATA step code?
Cynthia
ps another option might be that they use Jupyter Notebook. I seem to remember a demo where the SAS code in Jupyter could save the code and results in the Notebook. I am not sure about the Log. However, that would require that your students stop using SAS Studio and switch to Jupyter Notebook so before you ask them to do that, you'd need to find out from other Jupyter users whether what you envision is possible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Cynthia. The solution of three files is probable the most convenient.
Another question just to confirm: The students can always email the instructor the summary, code, results (PDF and/or RTF) by clicking the email icon within "Results" section, correct?
Thanks again.
Kaddour
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
There is a icon, labeled PROGRAM SUMMARY, in SAS/Studio to see that as an HTML page on the CODE window:
Which will open an HTML file in a new browser window:
They could then try using the File Print feature of their browser to print that to a PDF file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Cynthia