jagomart
digital resources
picture1_Sample Collection Ppt 81678 | Chapter 7 8 Newbook


 237x       Filetype PPTX       File size 0.08 MB       Source: people.stat.sc.edu


File: Sample Collection Ppt 81678 | Chapter 7 8 Newbook
outline automatic macro variables user defined macro variables processing macro variables displaying macro variables masking special characters manipulating character strings sas functions and macro variables 2 macro variables macro variables ...

icon picture PPTX Filetype Power Point PPTX | Posted on 09 Sep 2022 | 3 years ago
Partial capture of text on file.
                        Outline
    Automatic Macro Variables
    User-defined Macro Variables
    Processing Macro Variables
    Displaying Macro Variables
    Masking Special Characters
    Manipulating Character Strings
    SAS Functions and Macro Variables
                                                        2
                Macro Variables
    Macro variables allow the user
       –to substitute text—particularly repetitive 
         text
       –to obtain session information
       –to obtain information on text strings
                                                        3
          Macro Variables-%LET
     SAS programs often include a single 
      variable used and defined in multiple 
      locations
     %LET allows the user to define a macro 
      variable, often at the start of the program, 
      and substitute the macro variable 
      throughout the program
                                                        4
          Macro Variables-%LET
     Original code             Modified code
    title "Citibase Data  %let year=1991;
      for 1991";               title "Citibase Data 
    data citiday1991;            for &year";
    set citiday;               data citiday&year;
    if                         set citiday;
      year(collection_dat if 
      e)=1991;                   year(collection_date)
    run;                         =&year;
                                                        5
        Macro Variables
  SAS’s macro facility allows text to be 
    saved as macro variables
  Macro variables are independent of 
    SAS data sets
  Two types of macro variables
    –automatic
    –user-defined
The words contained in this file might help you see if this file matches what you are looking for:

...Outline automatic macro variables user defined processing displaying masking special characters manipulating character strings sas functions and allow the to substitute text particularly repetitive obtain session information on let programs often include a single variable used in multiple locations allows define at start of program throughout original code modified title citibase data year for citiday set if collection dat e date run s facility be saved as are independent sets two types...

no reviews yet
Please Login to review.