Can I compile my DYLs to a 31 bit load module or does DYL only support 24 bit? If only 24 bit, is there a way to call a 31 bit Cobol program from within the 24 bit DYL?
Cobol/LE programs in 31bit or 24bit may fail if the correct options are not utilized with Vision Results
z/OS 2.1 and above
Cobol/LE and level
Vision Results 6.0 and above
Documentation for review: Vision Reference Guide Chapter 4 would be good to review to understand all the options available
(Page 83 Environment Specific Options)
COBOL II Environment
OPTION [COB2NR | NOCOB2NR]
Specifying NOCOB2NR overrides the DYLINSTL parameter setting, COB2NR=Y,
which allows proper execution when calling COBOL II subroutines compiled with
the NORES option. Conversely, indicating COB2NR reinstates this feature.
IBM Language Environment (LE) Support
OPTION [LE | NOLE]
The LE keyword can be used to override the DYLINSTL LE setting, which
initializes the IBM Language Environment (LE). This allows your program to CALL
subroutines written in any LE-compliant language, including COBOL, C, PL/I,
FORTRAN, and Assembler as well as the IBM LE Service Routines such as
CEEDATE and CEEDAYS.
If LE is specified and DYLINSTL parameter COBENV=Y, a warning message will
be issued, stating the COBENV option will be ignored.
LE can be specified with OPTION FREEZE and OPTION RESTORE to override
DYLINSTL LE=N. Note that the RESTORE with LE works only if LE was enabled
when the program was frozen either via DYLINSTL LE=Y or OPTION LE. If LE was
not enabled on the FREEZE, then a S0C7 abend can occur if LE is encountered
on the RESTORE.