[Migrated content. Thread originally posted on 13 December 2011]
I have a remote project “Program3” in a AIX system created with Visual Cobol Eclipse (Windows). This project contains a unique program that makes a CALL to “Program4.so”; and “Program4” only displays “Hello World! I’m Program4!!!”.When I execute “Program3” from AIX system, I receive the error:
Load error : file 'Program4'
error code: 173, pc=0, call=1, seg=0
173 Called program file not found in drive/directoryTo solve this problem I had to initialize COBPATH with the “Program4.so” path.
But the problem is that it seems that the initialization of COBPATH does not work in certain cases:
1)“Program3” works correctly when COBPATH initialization is realized in command line
(DES):aixlab0102:/>export COBPATH=/MNG/DESA/FICH/EQBASE/00550051/VC_OBJSor from “Program3” code ..
...
SET ENVIRONMENT “COBPATH“ TO
"/MNG/DESA/FICH/EQBASE/00550051/VC_OBJS".
...2)But If I have the “export” command "export COBPATH=/MNG/DESA/FICH/EQBASE/00550051/VC_OBJS"
in a script VC_CFG.sh, and I execute the script
(DES):aixlab0102:/>. ./VC_CFG.sh“Program3” returns the error again.
Load error : file 'Program4'
error code: 173, pc=0, call=1, seg=0
173 Called program file not found in drive/directoryI can understand it because if I do
(DES):aixlab0102:/>echo $COBPATH it displays "/MNG/DESA/FICH/EQBASE/00550051/VC_OBJS".
And if I make a display of the variable from “Program3” code
MOVE SPACES TO VAL.
CALL "C$GetEnv" USING "COBPATH" VAL.
CANCEL "C$GetEnv".
display "GetEnv COBPATH: ", VAL. It displays "GetEnv COBPATH: /MNG/DESA/FICH/EQBASE/00550051/VC_OBJS"
Where can be the problem?
Thank you