Problem Note 5209: Unable to process INITCMD message displayed when used to execute SCL
entries
If you use the INITCMD system option to execute an SCL entry in SAS/AF
Software, you may receive the following error:
ERROR: Unable to process initcmd statement.
By design, INITCMD was designed to run windowed applications. If you
use INITCMD with a non-windowed application, the code will actually
execute and then display this error message. In Version 6, you did not
receive an error message so it appeared to run properly.
There are a couple of options for workarounds:
1. Modify the INITCMD to execute a FRAME entry instead. Behind the
frame, copy the SCL code. Make sure all the code is in the INIT section
of the scl, and add a CALL EXECCMD('END;'); at the end of the INIT
section.
2. Use a DM statement to execute your SCL entry. For example,
dm 'af c=mylib.mycat.test.scl; bye;'.
This DM statement will execute the SCL entry and then close your SAS
session. However, you will see the Display Manager windows as the SCL
code executes. By executing the BYE command, your SAS session will
terminate when the SCL code completes execution.
3. Use the INITSTMT system option to execute the SCL code. This will
allow you to specify an initial SAS statement to be executed. For
example,
initstmt 'dm "af c=mylib.mycat.test.scl;bye;";'
As with the preceding option, the Display Manager windows will be
visible as the SCL code executes. By executing the BYE command, your
SAS session will terminate when the SCL code completes execution.
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | SAS/AF | Microsoft Windows 2000 Server | 8 TS M0 | 8.2 TS2M0 |
| Microsoft Windows 95/98 | 8 TS M0 | 8.2 TS2M0 |
| Microsoft Windows 2000 Professional | 8 TS M0 | 8.2 TS2M0 |
| Microsoft Windows 2000 Advanced Server | 8 TS M0 | 8.2 TS2M0 |
| Microsoft Windows 2000 Datacenter Server | 8 TS M0 | 8.2 TS2M0 |
| OpenVMS VAX | 8 TS M0 | 8.2 TS2M0 |
| Solaris | 8 TS M0 | 8.2 TS2M0 |
| OS/2 | 8 TS M0 | 8.2 TS2M0 |
| 64-bit Enabled Solaris | 8 TS M0 | 8.2 TS2M0 |
| IRIX | 8 TS M0 | 8.2 TS2M0 |
| z/OS | 8 TS M0 | 8.2 TS2M0 |
| ABI+ for Intel Architecture | 8 TS M0 | 8.2 TS2M0 |
| CMS | 8 TS M0 | 8.2 TS2M0 |
| HP-UX | 8 TS M0 | 8.2 TS2M0 |
| 64-bit Enabled HP-UX | 8 TS M0 | 8.2 TS2M0 |
| OpenVMS Alpha | 8 TS M0 | 8.2 TS2M0 |
| 64-bit Enabled AIX | 8 TS M0 | 8.2 TS2M0 |
| Microsoft Windows NT Workstation | 8 TS M0 | 8.2 TS2M0 |
| Tru64 UNIX | 8 TS M0 | 8.2 TS2M0 |
| AIX | 8 TS M0 | 8.2 TS2M0 |
*
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.
| Type: | Problem Note |
| Priority: | |
| Topic: | SAS Reference ==> SCL (SAS Component Language)
|
| Date Modified: | 2001-06-18 09:33:26 |
| Date Created: | 2001-06-12 18:05:06 |