Skip to main content
Swapnil Gupta
Participating Frequently
Aug 14, 2020 9:14 PM UTC

Asynchronous RM/COBOL CALL

Hi -

 

I have situation .  I want to call RM/COBOL program B from RM/COBOL program A but donot want to wait for response. 

 

Am I able to do using RM/COBOL?

    2 replies

    Thomas Morrison
    Participating Frequently
    Aug 14, 2020 9:20 PM UTC

    Hi -

     

    I have situation .  I want to call RM/COBOL program B from RM/COBOL program A but donot want to wait for response. 

     

    Am I able to do using RM/COBOL?

    Seems like the simplest way would be to use CALL "SYSTEM" to execute a runcobol command line, which will start another instance.  Simple parameters can be passed using the runcobol A option, or even the switches (as a throwback to the 1960s!).  More complex parameters can be passed by exporting data to a temp file and using the A parameter to specify the filename of the parameters.  (For the latter case, I would use XML Extensions to substantially reduce the burden of the export and import of complex parameters.)

    Tom Morrison, Consultant, South Carolina, USA
    Swapnil Gupta
    Participating Frequently
    Aug 14, 2020 9:39 PM UTC

    Seems like the simplest way would be to use CALL "SYSTEM" to execute a runcobol command line, which will start another instance.  Simple parameters can be passed using the runcobol A option, or even the switches (as a throwback to the 1960s!).  More complex parameters can be passed by exporting data to a temp file and using the A parameter to specify the filename of the parameters.  (For the latter case, I would use XML Extensions to substantially reduce the burden of the export and import of complex parameters.)

    Thanks