PRB: SYSTEM Function Ignores SET string=string Command

ID: Q49921

4.10 5.00 5.10 1.00 1.00a | 4.10 5.00 5.10 | 1.00 4.00

MS-DOS                    | OS/2           | WINDOWS NT
kbprg kbprb

The information in this article applies to:

SYMPTOMS

An attempt to issue the "SET string=string" command with the SYSTEM function in the FORTRAN run-time library fails to change the environment.

RESOLUTION

This behavior is expected. The SYSTEM command cannot modify the system environment.

MORE INFORMATION

The following code example demonstrates this situation. The environment does not change.

Sample Code

C Compile options needed: None

      INTERFACE TO FUNCTION SYSTEM[C] (STRING)
      INTEGER*2 SYSTEM
      CHARACTER*1 STRING[REFERENCE]
      END

      INTEGER*2 SYSTEM
      I = SYSTEM('SET CL=/FPi /Lr'C)
      END

Additional reference words: 1.00 4.00 4.10 5.00 5.10 KBCategory: kbprg kbprb KBSubcategory: FORTLngIss
Keywords          : kbFortranPS kbLangFortran 
Version           : 4.10 5.00 5.10 1.00 1.00a | 4.10
Platform          : MS-DOS NT OS/2 WINDOWS

Last Reviewed: December 13, 1995