MODIFY

The MODIFY allows execution of any Adams Solver command except CONTROL, STOP, from a CONSUB.

Use

Called By

CONSUB

Prerequisite

None

Calling Sequence

CALL MODIFY (comand, istat)

Input Argument

 
comand
A character string or variable that corresponds to the command to be executed.

Output Argument

 
istat
An integer variable that indicates whether or not the call to MODIFY was successful.
If istat = 0, the call to MODIFY was successful.

Extended Definition

You must build a character string for the input and pass the string to MODIFY as if it were an actual interactive command. The general subroutines RSTRNG and ISTRNG are available to help build these strings. CONSUB can call MODIFY. Program control returns to CONSUB after execution of the command(s) issued from MODIFY. For an example of a CONSUB driver subroutine that calls MODIFY, see CONSUB.
 
Caution:  
Adams Solver ignores any part of an argument following five blank spaces. Therefore, when using string concatenation to build a command, it is important to remove trailing blanks. Do this by referring only to the nonblank portion of the string.