Skip to main content

I am trying to run program thru BAT file it goes to PC driver module and it is not able to call the program. and gives return code zero.

I am trying to run program thru BAT file it goes to PC driver module and it is not able to call the program. and gives return code zero.

What is it that you are trying to call and what error are you receiving? If you are trying to call an .int/.gnt/.dll that has the same name on disk as the program in the call statement and you are receiving an RTS error 173 that means that it cannot find the program. If the program is in the current directory or is in the same directory as the main program doing the call then it should be found. If the subprogram resides in a different directory then you should include the directory name within the PATH environment variable if you are calling a .dll, otherwise you should include the directory name within the COBPATH or COBDIR environment variable if you are calling an .int or .gnt.

If you are trying to call an entry point within a module that has a different name than the name in the CALL statement then you need to first load the module before the entry point can be resolved.

01 pp procedure-pointer.

set pp to entry "mydll"
call "myentry"

I am trying to run program thru BAT file it goes to PC driver module and it is not able to call the program. and gives return code zero.

Thanks Sir ..Issues resolved while moving code from mainframe to NEX a unwanted character got inserted at the last of the DCLGEN.