The code as such doesn't make sense.
- there are no endrsubmit's for the rsubmit's, so it is unclear what is executed where
- a dataset test is created, but never used
- a dataset simon is used, but where does it come from?
I can guess that you get a lookup table from DB/2 that contains keys and id's.
Your first step will be to import the data from the Excel file into SAS. Then you have to make sure that the customer id`s from Excel can be matched to those from DB/2 (same variable attributes, same contents). Then you can join the two tables on customer id.
... View more