There is no way you can do it in a single macro variable. If I remember correctly only 2000 is allowed in version 6. I stored them in several macro variables if it was more than 2000.
I am curious why you need a macro variable with more than 65000 long. It seems to me it is longer enough. Anyway SAS provides many other ways to generate SAS codes or store information beyond a macro variable.