BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Kboukaabar
Obsidian | Level 7

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

1 ACCEPTED SOLUTION

Accepted Solutions
Kboukaabar
Obsidian | Level 7

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

View solution in original post

4 REPLIES 4
Cynthia_sas
SAS Super FREQ

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.

Kboukaabar
Obsidian | Level 7

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

Tom
Super User Tom
Super User

There is a icon, labeled PROGRAM SUMMARY, in SAS/Studio to see that as an HTML page on the CODE window:

Tom_0-1674754793576.png

Which will open an HTML file in a new browser window:

Tom_1-1674754885011.png

They could then try using the File Print feature of their browser to print that to a PDF file.

 

Cynthia_sas
SAS Super FREQ
Thanks, @Tom, that looks like a much easier solution. I had not experimented at all with that feature.
Cynthia

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1718 views
  • 10 likes
  • 3 in conversation