PRB: SYSTEM Function Ignores SET string=string Command

ID: Q49921


The information in this article applies to:
  • Microsoft FORTRAN for MS-DOS, versions 4.1, 5.0, 5.1
  • Microsoft FORTRAN PowerStation for MS-DOS, versions 1.0, 1.0a
  • Microsoft Fortran Powerstation 32 for Windows NT, versions 1.0, 4.0
  • Microsoft FORTRAN for OS/2, versions 4.1, 5.0, 5.1


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 query words: 1.00 4.00 4.10 5.00 5.10

Keywords : kbFortranPS kbLangFortran
Version : :1.0,1.0a,4.0,4.1,5.0,5.1
Platform : MS-DOS NT OS/2 WINDOWS
Issue type :


Last Reviewed: November 1, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.