If Then Else Statement In SAS

Поділитися
Вставка
  • Опубліковано 10 лют 2025
  • SAS evaluates the expression in an IF THEN ELSE statement to produce a result that is either nonzero, zero, or missing. A nonzero and non-missing result causes the expression to be true; a result of zero or missing causes the expression to be false.
    If the conditions that are specified in the IF clause are met, the IF THEN statement executes a SAS statement for observations that are read from a SAS data set, for records in an external file, or for computed values. An optional ELSE statement gives an alternative action if the THEN clause is not executed. The ELSE statement, if used, must immediately follow the IF-THEN statement.
    Using IF THEN statements without the ELSE statement causes SAS to evaluate all IF THEN statements. Using IF-THEN statements with the ELSE statement causes SAS to execute IF THEN statements until it encounters the first true statement. Subsequent IF THEN statements are not evaluated.
    #sasprogramming #sasprogrammingtutorial #basesas #dataanalysis #analytics #analyticsschool

КОМЕНТАРІ • 5

  • @yo0b
    @yo0b 6 місяців тому +1

    Unfortunately, your channel does not support automatic video subtitles

    • @analyticsschool
      @analyticsschool  6 місяців тому

      Most of the videos have video subtitles. Only few of them doesn't have subtitles.

  • @minahamdani3224
    @minahamdani3224 3 роки тому

    Many thanks! this is really helpful

  • @madhusree2087
    @madhusree2087 5 років тому +1

    How to Control which observation and variable in sas data sets are processed and output