Loading...
Select Version
Before the application is started, the POSIX environment must be initialized for processing. The COBOL runtime system then behaves as if it had been started under the POSIX shell (see „COBOL2000 (BS2000) User Manual“ [5]).
After the application has terminated, the POSIX environment must on all accounts be reset by calling the DELETE procedure. Otherwise the environment is set incorrectly for further compilations runs.
The call and processing are then as follows under the $MYHOME ID:
/CALL-PROCEDURE *LIB($MYJAVA.SYSPRC.JENV.090,INITIALIZE), (PWD='myhome/work',JAVA-HOME='/myjava/jre') /START-PROGRAM *MODULE(LIBRARY=LLM.LIB,ELEMENT=HELLO, PROGRAM-MODE=ANY,RUN-MODE=*ADVANCED(SHARE-SCOPE=*NONE)) % BLS0523 ELEMENT 'HELLO', VERSION '@', TYPE 'L' FROM LIBRARY ':LUNB:$MYHOME.LLM.LIB' IN PROCESS % BLS0524 LLM 'HELLO', VERSION ' ' OF '2016-04-13 15:17:10' LOADED >> Please enter name Susanne >> Hello Susanne! /CALL-PROCEDURE *LIB($MYJAVA.SYSPRC.JENV.090,DELETE)