BookmarkSubscribeRSS Feed
vapodaca11
Calcite | Level 5

I am able to start the parallel processing procedure but it is failing to bring over my macro variables. I am using the %syslput _all command to bring them over. This is usuing a Linux based system. Does anyone know how I could bring over my Marco variables in parallel processing?

3 REPLIES 3
SASKiwi
PROC Star

Please post a complete example of your code. Did you SIGNON first before using %SYSLPUT?

vapodaca11
Calcite | Level 5

It appears that it is not bringing in any of my macro variables. 

 

Code I am using:
signon task&threadnum inheritlib=(risk);

rsubmit wait=no log="&basedir./task&threadnum..log" output="&basedir./task&threadnum..lst";

%syslput _all_;
%put _all_;

 

data risk.servings_thread&threadnum._&scenario (keep=scenario estnum lotnum servnum serving_conc serving_weight serving_cfu random);
set risk.lots_&scenario (where=(&beginest <= estnum <= &endest));...................

 

Error I am getting:

WARNING: Apparent symbolic reference THREADNUM not resolved.
1 data risk.servings_thread&threadnum._&scenario (keep=scenario estnum lotnum servnum
-
22
200
1 ! serving_conc serving_weight serving_cfu random);
WARNING: Apparent symbolic reference SCENARIO not resolved.

SASKiwi
PROC Star

This should work. You are copying local macro variables up to your RSUBMIT server session.

 

signon task&threadnum inheritlib=(risk);

%syslput _all_;

rsubmit wait=no log="&basedir./task&threadnum..log" output="&basedir./task&threadnum..lst";

%put _all_;

endrsubmit;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 553 views
  • 2 likes
  • 2 in conversation