[Info-vax] Command Procedure Pipe output to a variable

Arne Vajhøj arne at vajhoej.dk
Thu Sep 2 10:18:45 EDT 2021


On 9/2/2021 9:33 AM, HCorte wrote:
> One more question finished the command procedure, know whanted to
> pass a variable/symbol to a program in fortran. Posted the question
> in "comp.lang.fortran" but forgoted to specify in the initial
> inquiry/question that was using OpenVMS.
> 
> One suggestion was to use "EXECUTE_COMMAND_LINE" that from what could
> tell its specific to Unix, and also "popen" from what could get also
> Unix specific is there a equivalent for OpenVMS?
> 
> $ FORTRAN /VERSION HP Fortran V8.2-104939-50H96
> 
> $ SHOW SYSTEM OpenVMS V8.4
You need to pass from DCL to Fortran?

If DCL get info and then run Fortran program there
are plenty of options:
- call Fortran program with argument
- set symbol and let Fortran call LIB$GET_SYMBOL
- define logical in process table and let Fortran call SYS$TRNLNM

If DCL and Fortran are running in different processes
then:
- define logical in job/group table and let Fortran call SYS$TRNLNM

Arne



More information about the Info-vax mailing list