Trying to do this in EG, I got less far that I had 2-3 years ago. If I run it on SASApp, the signon gives me a load of errors. If I run it on Local, the signon works and I can run code in Rsubmit to 3 different servers; but then I had a few problems mixing code running on Local and code running on SASApp. Then I remembered, that the ask was "SAS Studio on Compute on Viya" I took some simple code into that environment and made some progress: Signon worked. Rsubmit para_i WAIT=YES; libname sWork "/sasvpath/.."; EndRsubmit; worked fine. Control was passed back to the main server and I created a 10m obs, dataset: data series_1; do i = 10000001 to 20000000; output; end; run; Fine. Ran the same code on each rSubmit; creating sWork.para_i; this time with WAIT=NO (expecting they would run in parallel). A WAITFOR _ALL_; before running some more code on the main server to append the datasets: series_1 and sWork.para_1, sWork.para_2 and sWork.para_3; using data and SET. This all worked, but the remote code was ridiculously slow and it wasn't clear what if anything was running in parallel. From the log Signon seemed to take a good time longer than the log showed (perhaps 8s lag each) Creating work.series_1 took 0.27s. The FULLSTIMER log between the first and 2nd "main" steps was 38s; during which time the rsubmits were running. Only after the signoff did the log include the code that was in the RSubmit WAIT=NO steps. They showed it took 12.6s, 18.4s and 18.6s to create the 10m obs para_i datasets. This is a total of 48s, which is more than the 37s between the two "main" steps, but 37s is longer than the 19s of the longest remote. From those times, I don't know what is running in parallel, or why it is a 100x slower to write a 82Mb file on the perm folder in Rsubmit than in Work on the main connection; unless it is 18s of overhead + 0.3s of work. I appreciate that I am trying to run something that is very quick on the Rsubmit, but when I accidentally ran it for 55m obs in the loop, it was taking forever, enough minutes for me to regret it and abort it. Thanks for everyone's suggestions, but I am going to close this thread. I will pass my attempt on to the programmer who asked about it, as they most likely have a genuine use case. It also looks like we have some setup that I don't fully understand or have access to, so any solution looks like it needs some systems support. I'll mark SASKiwi solution as best, even if I haven't been able to successfully produce useful results in my set up.
... View more