If you ship an application that contains both 32-bit and 64-bit versions of your programs, you can either:
- Store the 32-bit programs and the 64-bit programs in separate directories, and specify both directories to the COBPATH environment
variable. You then need to specify cobrun32 or cobrun64, as appropriate, to run the required version of your program.
- Use different filenames for the system executable files for the 32-bit and 64-bit versions of your programs. For example,
to create a version of myprog.cbl to run in 32-bit mode:
cob32 -xo myprog myprog.cbl
You can then run the program by entering:
./myprog
To create a version of myprog.cbl to run in 64-bit mode:
cob64 -xo myprog64 myprog.cbl
You can then run the program by entering:
./myprog64