SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 11674: SCL code after ENDSUBMIT statement may execute prematurely

DetailsHotfixAboutRate It
If you submit SAS code that references a remote libref within a SUBMIT
CONTINUE block in a SAS/AF FRAME entry, the SAS Component Language (SCL)
code following the ENDSUBMIT statement may execute before the SAS code
in the SUBMIT block finishes. For example, if the SAS code creates a
data set, this data set may not be available when the SCL code attempts
to open it.

To circumvent the problem, you can execute the CALL WAIT routine in SCL
code following the ENDSUBMIT statement to give the SAS code time to
complete.

Another circumvention is to execute a DO loop in your SCL code that
attempts to reference the created data set repeatedly until either the
maximum executions is reached or the data set exists. For example,

   dsid=0;
   i = 0;
   do until(dsid ne 0 or i = 10000);
      dsid=open('work.dset');
      i + 1;
   end;

A Technical Support hot fix for SAS 9.1.2 (9.1 TS1M2) for this
issue is available at:

http://www.sas.com/techsup/download/hotfix/c9_sbcs_prod_list.html#011674


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/AFz/OS9.1 TS1M09.1 TS1M3
Microsoft Windows NT Workstation9.1 TS1M09.1 TS1M3
Microsoft Windows XP Professional9.1 TS1M09.1 TS1M3
Microsoft Windows Server 2003 Standard Edition9.1 TS1M09.1 TS1M3
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M09.1 TS1M3
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M09.1 TS1M3
Microsoft Windows 2000 Server9.1 TS1M09.1 TS1M3
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M09.1 TS1M3
Microsoft Windows 2000 Professional9.1 TS1M09.1 TS1M3
Microsoft Windows 2000 Datacenter Server9.1 TS1M09.1 TS1M3
Microsoft Windows 2000 Advanced Server9.1 TS1M09.1 TS1M3
64-bit Enabled Solaris9.1 TS1M09.1 TS1M3
64-bit Enabled AIX9.1 TS1M09.1 TS1M3
OpenVMS Alpha9.1 TS1M09.1 TS1M3
64-bit Enabled HP-UX9.1 TS1M09.1 TS1M3
HP-UX IPF9.1 TS1M09.1 TS1M3
Linux9.1 TS1M09.1 TS1M3
Tru64 UNIX9.1 TS1M09.1 TS1M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.