Value of macro variable id has been assigned in the local session. The macro variable is required for the remote session. Use %syslput to assign the value to the local macro variable to the sever session (remote).
Reference: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/connref/n1bc4zi0lp02ivn1oxn9gc1bsaha.htm
%syslput: Creates a single macro variable in the server session or copies a specified group of macro variables to the server session.
%put &id;
%syslput id=&id;
rsubmit;
%put &id;