There are a lot of POSSIBLE reasons that are data dependent. Without knowing the data, we are shooting in the dark. Possible reasons include:
-- size of data set a vs b.
-- indexing on a vs b.
-- location of a vs b (e.g. SAS dataset or Oracle database).
-- data set type (view vs dataset)