Hi Tom, Thanks for your answer. As far as I understand, I have tried to follow your advice to integrate my macro program inside an autoexec process flow and then setting the SASAUTOS option. /* running parallel processes */
options SASAUTOS;
options autosignon;
options sascmd="sas";
%syslput _all_ / remote=task1;
%syslput _all_ / remote=task2;
Rsubmit task1 inheritlib=(RES);
%sampsql(filein=sashelp.Cars, fileout=SampleSRS1,n=100);
Endrsubmit;
Rsubmit task2 inheritlib=(RES);
%sampsql(filein=sashelp.Cars, fileout=SampleSRS2,n=1000);
Endrsubmit;
waitfor _all_;
signoff _all_; However, I get the following error message : 1 Le Système SAS 14:29 Thursday, April 1, 2021
1 ;*';*";*/;quit;run;
2 OPTIONS PAGENO=MIN;
3 %LET _CLIENTTASKLABEL='Parallelisation : test avec un macro programme';
4 %LET _CLIENTPROCESSFLOWNAME='Foire aux Questions';
5 %LET _CLIENTPROJECTPATH='R:\DMCD\MARK\PERSO\Clement Perso\SAS-BOITE-OUTILS\sas-boite-outils.egp';
6 %LET _CLIENTPROJECTPATHHOST='UC5416';
7 %LET _CLIENTPROJECTNAME='sas-boite-outils.egp';
8 %LET _SASPROGRAMFILE='';
9 %LET _SASPROGRAMFILEHOST='';
10
11 ODS _ALL_ CLOSE;
12 OPTIONS DEV=PNG;
13 GOPTIONS XPIXELS=0 YPIXELS=0;
14 FILENAME EGSR TEMP;
15 ODS tagsets.sasreport13(ID=EGSR) FILE=EGSR
16 STYLE=HtmlBlue
17 STYLESHEET=(URL="file:///C:/Program%20Files%20(x86)/SASHome/x86/SASEnterpriseGuide/7.1/Styles/HtmlBlue.css")
18 NOGTITLE
19 NOGFOOTNOTE
NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR
20 GPATH=&sasworklocation
21 ENCODING=UTF8
22 options(rolap="on")
23 ;
24
25 GOPTIONS ACCESSIBLE;
26
27 /* running parallel processes */
28
ERROR 26-12: Signe égal plus valeur requis après l'option SAS SASAUTOS.
29 options SASAUTOS;
________
26
30 options autosignon;
31 options sascmd="sas";
32 %syslput _all_ / remote=task1;
NOTE: Remote signon to TASK1 commencing (SAS Release 9.03.01M2P081512).
NOTE: Unable to open SASUSER.PROFILE. WORK.PROFILE will be opened instead.
NOTE: All profile changes will be lost at the end of the session.
NOTE: Copyright (c) 2002-2010 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software 9.3 (TS1M2)
Licensed to IRP AUTO OFFICE ANALYTICS VM 4 CORES, Site 70238211.
NOTE: This session is executing on the X64_SRV12 platform.
NOTE: Enhanced analytical products:
SAS/STAT 12.1
NOTE: L'initialisation de SAS used:
real time 0.21 secondes
cpu time 0.10 secondes
NOTE: Remote signon to TASK1 complete.
33 %syslput _all_ / remote=task2;
NOTE: Remote signon to TASK2 commencing (SAS Release 9.03.01M2P081512).
NOTE: Unable to open SASUSER.PROFILE. WORK.PROFILE will be opened instead.
NOTE: All profile changes will be lost at the end of the session.
NOTE: Copyright (c) 2002-2010 by SAS Institute Inc., Cary, NC, USA.
NOTE: SAS (r) Proprietary Software 9.3 (TS1M2)
Licensed to IRP AUTO OFFICE ANALYTICS VM 4 CORES, Site 70238211.
NOTE: This session is executing on the X64_SRV12 platform.
NOTE: Enhanced analytical products:
SAS/STAT 12.1
NOTE: L'initialisation de SAS used:
real time 0.25 secondes
cpu time 0.14 secondes
NOTE: Remote signon to TASK2 complete.
34
35 Rsubmit task1 inheritlib=(RES);
2 Le Système SAS 15:23 Thursday, April 1, 2021
NOTE: Remote submit to TASK1 commencing.
WARNING: Apparent invocation of macro SAMPSQL not resolved.
1 %sampsql(filein=sashelp.Cars, fileout=SampleSRS1,n=100);
-
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
NOTE: Remote submit to TASK1 complete.
36
37 Rsubmit task2 inheritlib=(RES);
3 Le Système SAS 15:23 Thursday, April 1, 2021
NOTE: Remote submit to TASK2 commencing.
WARNING: Apparent invocation of macro SAMPSQL not resolved.
1 %sampsql(filein=sashelp.Cars, fileout=SampleSRS2,n=1000);
-
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
NOTE: Remote submit to TASK2 complete.
ERROR 85-169: Task name expected.
38
39 waitfor _all_;
_
85
40 signoff _all_;
NOTE: Remote signoff from TASK1 commencing.
NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
NOTE: Le Système SAS used:
real time 0.54 secondes
cpu time 0.10 secondes
NOTE: Remote signoff from TASK1 complete.
NOTE: Remote signoff from TASK2 commencing.
NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414
NOTE: Le Système SAS used:
real time 0.29 secondes
cpu time 0.14 secondes
NOTE: Remote signoff from TASK2 complete.
41
42 GOPTIONS NOACCESSIBLE;
43 %LET _CLIENTTASKLABEL=;
44 %LET _CLIENTPROCESSFLOWNAME=;
45 %LET _CLIENTPROJECTPATH=;
46 %LET _CLIENTPROJECTPATHHOST=;
47 %LET _CLIENTPROJECTNAME=;
48 %LET _SASPROGRAMFILE=;
49 %LET _SASPROGRAMFILEHOST=;
50
51 ;*';*";*/;quit;run;
4 Le Système SAS 14:29 Thursday, April 1, 2021
52 ODS _ALL_ CLOSE;
53
54
55 QUIT; RUN;
56
... View more