Access
- ssh - preferable
- terminal emulator TN3270
Compilers
- z/OS V2.4 XL C/C++
- Enterprise COBOL for Z/OS V6.3
- had to use standard
shshell,tcshdidn’t show compilers errors - For Cobol in
.profile- export STEPLIB=IGY630.SIGYCOMP
- export PATH=$PATH:/usr/lpp/IBM/cobol/igyv6r3/bin
- export LIBPATH=$LIBPATH:/path_to_your_custom_library
Compiling
C
compiling large amount of single function files
rm -rf lib o
mkdir -p o lib
cd o && xlc -O2 -Wl,DLL -qexportall -v ../src/*.c
linking to library
cd lib && xlc -o MYLIB ../o/*.o -Wl,DLL -qexportall -v
this step produces two files MYLIB & MYLIB.x, where MYLIB.x contains IMPORT CODE,'MYLIB','FUNC1' for each function in library
Cobol
cob2 -v -o test -qdll test.cbl MYLIB.x
produces dynamically linked test executable