Rabidwolff's Alehouse
"Your place for fun and knowledge."
HOME | Quotes | SAS | C# | BEER



Basics
FORMATS
INFORMATS
DATETIME
ATTRIB
LENGTH
FORMAT
INFORMAT
LABEL
JOINS
OPERATORS

Statements
RETAIN
FIRST.
LAST.

Procedures
PROC SORT
PROC COPY
PROC CPORT
IF ELSE
PROC REPORT

Functions
CAT
CATS
CATT
CATX

CDISC
Random Q & A

CDISC
CDISC Info

Coded Tools
XML Output
Examples

Question and Answers

  1. Question:
    What is the difference betweeen %LOCAL and %GLOBAL?

    Answer:
    The %LOCAL saves a variable only within the current block/marco of excuction while %GLOBAL is active at any point after declaration while the program is in memory.

  2. Question:
    What is the Program Data Vector (PDV)?

    Answer:
    The PDV is basically run time memory. SAS is procedural, it will process a data step one record at a time.

  3. Question:
    How do you get the number of the current record or observation as SAS iterates through?

    Answer:
    You can use the SAS system varaible _N_ that is incremeted by 1 as SAS iterates through each record.


Rabidwolff Industries | Establisted: 10/15/2011 | Version: 4 8/4/2012 | Page Last Generatated: 9/25/2021 3:36:04 PM