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.
... View more