skip to main content

Library Routines : SYSTEM

SYSTEM
This routine allows to execute an operating system command.
The SYSTEM library routine has been implemented in isCOBOL using Java API. For this reason the implementation differs from the one available in other COBOLs, that usually reflects the system() C library function behavior. The SYSTEM library routine behavior can be configured by setting the iscobol.system.exec property.
Syntax:
 CALL "SYSTEM" USING commandLine
              GIVING systemStatus
Parameters:
Return code:
systemStatus can be any signed numeric data item and receives the system exit status.
Examples:
Example - Execute an external batch file
move "c:\myapp\bats\bkp1.bat" to commandLine
call "system" using commandLine

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