sas base programming Flashcards _ Quizlet.pdf - sas base programming Flashcards | Quizlet sas base programming 416 terms sas program has data and proc

sas base programming Flashcards _ Quizlet.pdf - sas base...

This preview shows page 1 - 4 out of 14 pages.

8/2/2018 sas base programming Flashcards | Quizlet 1/14 sas base programming 416 terms jabbyb sas program has data and proc steps step boundaries run, quit, or begin of next step (not best practice) each step is compiled and executed separately global statements exist outside steps - ie title statements usually begin with identifying keyword statements end with semicolon statements are free form and can begin in any column conventional formatting structured formatting - using consistent spacing to make easier to read block comment / comment / can have internal semicolon no nesting no col 1 or 2 Want to learn this set quickly? Use Quizlet’s activities and games to make studying easy, effective and fun! FLASHCARDS LEARN MATCH
Image of page 1
8/2/2018 sas base programming Flashcards | Quizlet 2/14 comment statement * comment can be in col 1 or 2 can't have internal semicolon syntax errors are found during compilation still compiles but doesn't execute with this problem if there is a syntax error it stops processing it writes to the log, error or warning location of error & explanation of error a syntax error includes missing or invalid punctuation invalid options or variable names missing or misspelled keywords if data error in data step then note written to log and data step continues to exec red code is potential error purple code is indication of unbalanced quotation marks to turn off titles subsequently title; variables are columns in data data step reads raw data can use to create new vars exec once for each ohs in input ds at start of data step, vars are created in pdv and obs aren't added b/c there aren't any obs yet
Image of page 2
8/2/2018 sas base programming Flashcards | Quizlet 3/14 at end of data step vals of vars created reset to missing in pdv proc step after data step to create report global statement example title 'title for report'; sas library datasets stored in this collection of one of more sas files work temp library for duration of session permanent SAS library is one that resides on the external storage medium of your computer and is not deleted when the SAS session terminates. Permanent SAS libraries are stored until you delete them. The library is available for processing in subsequent SAS sessions. When working with files in a permanent SAS library, you generally specify a libref as the first part of a two-level SAS filename. The libref tells SAS where to find or store the file. sasuser and sashelp perm libraries avail in every sas session libref how you refer to sas library as shortcut to physical location of sas files all sas datasets have two level name consists of libref and data set name separated by a period work can be referenced with one level name because it's the default library user def libraries are permanent but not automatically available must use libname to associate it to physical location stored in catalogf libname is a global stmt
Image of page 3
Image of page 4

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture