skip to main content

Library Routines : C$SYSTEM

C$SYSTEM
The C$SYSTEM library routine executes a program from an isCOBOL application.
On Linux/Unix the C$SYSTEM library routine uses Java API. In order to make it reflect the system() C library function behavior, set the iscobol.system.exec property to the special value “c”.
Syntax:
 CALL "C$SYSTEM" USING commandLine 
Parameters:
The command specified in commandLine is executed asynchronously.
Only on Windows, the system command interpreter (usually cmd.exe) is used to run the command specified in commandLine.
Note - The flags CSYS-MAXIMIZED, CSYS-MINIMIZED and CSYS-HIDDEN require jna libraries (installed along with isCOBOL) in the Classpath.
Return code:
systemStatus can be any signed numeric data item. It receives the exit status of commandLine.
Examples:
Example - Run notepad.exe and wait for it to finish
call "c$system" using "notepad.exe"

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left