%let hostn=2;
signon s390deva script='!sasroot\tst\m900\rlink\testsrc\scrmvs.sas';
rsubmit;
data _null_;
file 'sastnd.rlink.testpdsr(a)';
put 'data a; x=1; run;';
run;
data _null_;
file 'sastnd.rlink.testpdsr(b)';
put 'data a; x=1; run;';
run;
endrsubmit;
filename locdir
'/unixhost/sas/programs';
rsubmit;
filename inpds
'mfhost.sas.programs' shr;
proc download infile=inpds('*')
outfile=locdir;
endrsubmit;
The first FILENAME statement
defines the fileref LOCDIR, which identifies the physical location
for the files that are downloaded to the UNIX client. The RSUBMIT
statement indicates that the statement that follows will be processed
on the
z/OS server. By not specifying a
server-ID, this example assumes that the
z/OS computer is your current server.
The second FILENAME statement defines the fileref INPDS for the partitioned
data set MFHOST.SAS.PROGRAMS, which contains the SAS programs that
will be downloaded to the client. The PROC DOWNLOAD step transfers
all the files in the partitioned data set on the
z/OS server to the
library LOCDIR on the UNIX client. The ENDRSUBMIT statement indicates
the end of the block of statements that are submitted to the server
for processing.