The SAS support website http://support.sas.com/ has a technote on this item, found doing a search there. Your window macro is not supported with rsubmit.
you can set up the %window macro up to be called on the client, but rsubmit all the heavy lifting.... you'll need to "push" local macro variables to the server. for example, to push MacroVar1 to the server, just add this
[pre]%syslput MacroVar1=&MacroVar1;[/pre]