sas eg test project setup

Upload: ajay-bhat

Post on 24-Feb-2018

212 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/25/2019 SAS EG Test Project Setup

    1/2

    SAS logo Print

    Setup Instructions for SAS Enterprise GuideFollow these instructions to create a project for this course that will prompt you to create your data each time you open SAS Enterprise Guide.

    Open a new project and run code to define the orion library and create your practice data.In SAS Enterprise Guide, you submit a program that creates practice data in thetemporary work library and assigns the orion library that you use in this courseto the work library where your data is stored. This scenario works in all SAS Enterprise Guide configurations. 1.Start SAS Enterprise Guide and create a new project for this course.

    2.Select File then New then Program (or click the New and select Program). An empty Program window opens and a Program item is added to the Project Tree.

    3.Click here to open a popup window with the code that creates your practice data. Select all of the code (Ctrl+A) and then copy it (Ctrl+C).

    4.Click in the Program window in Enterprise Guide and paste the code (Ctrl+V).

    5.Click Run to submit the code. After the code runs, the Results window displaystwo tables. The second table lists the data sets that the program created.

    6.Click the Log tab and view the Log Summary to verify that there are no warnings or errors.

    View the list of notes (there will be many notes because SAS writes a note foreach data set that the program creates). Select the note Libref ORION was successfully assigned as follows: to highlight it in the log. Just below that note in

    the log is the path to the folder where your practice files are stored. In somepractices you might be asked to copy this filepath to create an external file. For now, just take note that this is where you can find the path to your files.

    Set options and save the project to use in this course.1.In the Project Tree, right-click Process Flow and select Rename. Type Autoexec. When you name a process flow Autoexec, SAS Enterprise Guide prompts you to runthe process flow when you open the project. This makes it easy to recreate yourdata when you start practicing in the course.

    2.Select File then New then Process Flow (or click New and select Process Flow). An empty process flow is added to the Project Tree window. You can use this process flow for your work.

    3.Select Tools then Options then Results General. SAS Enterprise Guide submits some code along with the code you submit. To make it easier to see the log messages associated with the code you submit, you can set an option to hide the generated wrapper code. Clear the Show generated wrapper code in SAS log option.

  • 7/25/2019 SAS EG Test Project Setup

    2/2

    4.By default, SAS Enterprise Guide creates results in SAS Report format. To moreclosely match the output shown in this course, select HTML and clear SAS Reportin the Result Formats area. Click OK to close the Options window.

    5.Select File then Save Project As (or click Save Project ). Save your project to a location on your local computer. We suggest you use the course code ECPRG193to name this project.

    You have set up your practice data. Each time you start SAS Enterprise Guide andopen the project for this course, you will be prompted to run the Autoexec process flow. You must select Yes to run the code that creates the data in the orionlibrary so that you have access to your practice data in the programs you write. Each practice page reminds you to define the orion library and has a link to this setup page.

    Close