100%(1)1 out of 1 people found this document helpful
This preview shows page 1 - 4 out of 14 pages.
8/2/2018sas base programming Flashcards | Quizlet1/14sas base programming416 termsjabbybsas program hasdata and proc stepsstep boundariesrun, quit, or begin of next step (not best practice)each step is compiled andexecutedseparatelyglobal statements existoutside steps - ie titlestatements usually begin withidentifying keywordstatements end withsemicolonstatements arefree form and can begin in any columnconventional formattingstructured formatting - using consistent spacing to make easier to readblock comment/comment / can have internal semicolon no nesting no col 1 or 2Want to learn this setquickly?Use Quizlet’s activities andgames to make studyingeasy, effective and fun!FLASHCARDSLEARNMATCH
8/2/2018sas base programming Flashcards | Quizlet2/14comment statement* comment can be in col 1 or 2 can't have internal semicolonsyntax errors are found duringcompilation still compiles but doesn't execute with this problemif there is a syntax errorit stops processing it writes to the log, error or warning location of error & explanation of errora syntax error includesmissing or invalid punctuation invalid options or variable names missing or misspelled keywordsif data error in data step thennote written to log and data step continues to execred code ispotential errorpurple code is indication ofunbalanced quotation marksto turn off titles subsequentlytitle;variables arecolumns in datadata stepreads raw data can use to create new vars exec once for each ohs in input dsat start of data step, vars arecreated in pdv and obsaren't added b/c there aren't any obs yet
8/2/2018sas base programming Flashcards | Quizlet3/14at end of data stepvals of vars created reset to missing in pdvproc stepafter data step to create reportglobal statement exampletitle 'title for report';sas librarydatasets stored in this collection of one of more sas filesworktemp library for duration of sessionpermanent SAS library is one thatresideson the external storage medium of your computer and is not deleted when theSAS session terminates. Permanent SAS libraries are stored until you delete them.The library is available for processing in subsequent SAS sessions. When workingwith files in a permanent SAS library, you generally specify a libref as the first partof a two-level SAS filename. The libref tells SAS where to find or store the file.sasuser and sashelpperm libraries avail in every sas sessionlibrefhow you refer to sas library as shortcut to physical location of sas filesall sas datasets havetwo level name consists of libref and data set name separated by a periodwork can be referenced withone level name because it's the default libraryuser def libraries arepermanent but not automatically available must use libname to associate it to physical location stored in catalogflibname is aglobal stmt