By 'run' I mean that it executes an exe file that was written with Visual BASIC 6.0. Something like ShellExecute from the Win32API. After the COBOL program is executed, it tells an executable written in Visual BASIC 6.0 to execute also in order to perform additional tasks. What would 'call system using command line' do?
call "SYSTEM" using command-line.
where command line is any executable available on the system, along with parameters to it.
So to start notepad.exe the following could be done.
01 cmd-lin pic x(80) value "notepad.exe c:\autoexec.bat".
call "SYSTEM" using cmd-lin.
This would start notepad.exe on a new window.
note that the call system does not allow you to exchange information with the called program (apart from the command line parameters supplied as part of the call).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.