I would need help with how to correctly use multiplle macros in where clause For instnace, I create some macros %LET Amantadi = ('17520', '17521', '17530'); %LET Rimantad = ('00730'); %LET Tamiflu = ('98980', '98981', '26729', '73441'); %LET Relenza = ('92221'); If I refer them in WHERE clause, say, WHERE GCN in (&Amantadi,&Rimantad, &Tamiflu, &Relenza), an error message was generated. If I create another macro to combine the 4, %let GCNs = (&Amantadi,&Rimantad, &Tamiflu, &Relenza); the result look like ('17520', '17521', '17530'), ('00730'),('98980', '98981', '26729', '73441'), ('92221'); so how to do it correctly as coding like this WHERE GCN in ('17520', '17521', '17530'), ('00730'),('98980', '98981', '26729', '73441'), ('92221'); Any suggestion helps. Leigh R.
... View more