For example, a variable LABCAT has values like "Hematology", "Chemical", "Urinalysis"..... and variable lab parameter PARAM has values like "WBC", "RBC", "BASOPHILS", ...so on like 100. I have 100 values for PARAM.
Example Look-up Table:
PARAMN PARAM PARAMCD ATYPE LBCAT LBTESTCD
1 Potassium)mmol/L) K num CHEMISTRY K
2 Albumin(g/L) ALB num CHEMISTRY ALB
3 Creatinine(umol/L) CREAT num CHEMISTRY CREAT
4 Basophils(10^9L) BASO num HEMATOLOGY BASO
5 Prothrobin Time PT num HEMATOLOGY PT
6 Color COLOR char URINALYSIS COLOR
7 pH PH char URINALYSIS PH
.........
.
.
.
How do I create macro where it directly takes the PARAM values for 100 different values automatically and creates the output table. In simple, I want to create a macro in such a way that I want to call that macro and I should get all the 100 outputs/ reports/ tables.
For your reference I am also attaching a mock table output that I want for 100 tables.
Please let me know if you need any additional information.
... View more