Resources

SAS University Edition: Help Center


How do I write and run a SAS program using JupyterLab in SAS University Edition?

To write a new SAS program in JupyterLab in SAS University Edition, you must first create a new SAS notebook. You then write the program in a code cell.

  1. If you do not have a Launcher tab open in the main work area, click New Launcher button on the File Browser tab. From the Launcher tab, click the SAS kernel in the Notebook area. A new Jupyter notebook file with an empty code cell opens in a separate tab.

    Launcher tab with SAS kernel selected

  2. Enter your program in the code cell.

  3. To run the program and add a new code cell below the program, select the cell in the notebook and click Run the selected cells and advance button on the toolbar. The output is automatically displayed below your code. If the code has no errors, the results are displayed. If the code has errors, the log is displayed. You can collapse and expand the output by clicking the blue bar in the left margin of the output cell.

    Note You can also run a program by using one of the Run options from the Run menu.

    New SAS notebook with SAS code and results

    Note You can create additional code cells by clicking Insert a cell below button on the notebook toolbar. To run all of the cells in a notebook, select Run > Run All Cells.