Silverfrost Logo About Us | Contact Us
 

DOSPARAM@

Platform

x64, Win32

Purpose

To get a DOS environment parameter value.

Syntax

SUBROUTINE DOSPARAM@(PARAM, VALUE)
CHARACTER (LEN=*) PARAM, VALUE

Description

This routine returns the value VALUE of a DOS parameter PARAM, which has been set using the DOS SET command. This can be very useful while creating environments in which programs are controlled by global information set up in batch files.

Example

After the DOS command
SET FILENAME=FRED
has been executed, the following code would open the file FRED:

 

    CHARACTER (LEN=50)::FILE
    CALL DOSPARAM@('FILENAME',FILE)
    OPEN(FILE=FILE,UNIT=6)

 

 

Copyright © 1999-2017 Silverfrost Limited