Bookworm,
In the US we run out of transponder codes almost weekly so we see proposed flight plans being assigned generic codes of 3100, 5400, etc. Since most approach controls have code subsets assigned to their facilities we can assign one of our local codes to any flight plan that has a generic code.
As for Mode S some facilities have the Mode S antennas and most don't.
Mike