-
Notifications
You must be signed in to change notification settings - Fork 8
/
bmicalc.sas
38 lines (28 loc) · 1.14 KB
/
bmicalc.sas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
%macro BmiCalc(oz,in) / des='Calculate BMI';
/********************************************************************************
BEGIN MACRO HEADER
********************************************************************************
Name: BmiCalc
Author: Chris Swenson
Created: 2012-01-03
Purpose: Calculate BMI based on weight in ounces and height in inches.
Arguments: oz - weight (in ounces) variable
in - height (in inches) variable
Revisions
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Date Author Comments
¯¯¯¯¯¯¯¯¯¯ ¯¯¯¯¯¯ ¯¯¯¯¯¯¯¯
YYYY-MM-DD III Please use this format and insert new entries above
********************************************************************************
END MACRO HEADER
********************************************************************************/
703*(&OZ/16)/(&IN**2)
%mend BmiCalc;
/*
data test;
format oz in 4.;
oz=185*16;
in=12*5+10;
bmi=%BmiCalc(oz, in);
run;
*/