Online File

How to use this page


Rick Aster: Professional SAS Programming Secrets: Contents

Chapter 5
Program 5g
PCTCHG function


*
  Professional SAS Programming Secrets
  Program 5g
  PCTCHG function
*;
proc fcmp outlib=work.cmp.business_math;
function pctchg(x1, x2);
   if (not x1) or missing(x2) then percent = .;
   else percent = (x2/x1 - 1)*100;
   return (percent);
   endsub;
quit;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech | Dictionary

Download | Rastinate

Rick Aster

Professional SAS Programming Secrets

Contents/Online Files

Corrections