Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Compiler and Runtime Migration Guide


Language Environment services

Can VS COBOL II programs call Language Environment callable services?

You can use dynamic calls from VS COBOL II programs to Language Environment date and time callable services only. You cannot use dynamic calls from VS COBOL II programs to other Language Environment callable services, nor can you use static calls to any Language Environment callable services from VS COBOL II programs.

You can dynamically call the following Language Environment services from VS COBOL II programs (any release):

CEECBLDY

CEEDATE

CEEDATM

CEEDAYS

CEEDYWK

CEEGMT

CEEGMTO

CEEISEC

CEELOCT

CEEQCEN

CEESCEN

CEESECI

CEESECS

CEE3CTY

Can users call Language Environment callable services from BAL (assembler) programs if the programs are Language Environment-conforming assembler programs?

Yes. Any Language Environment-conforming BAL routines can use Language Environment callable services. Non-Language Environment-conforming BAL routines cannot use Language Environment callable services. The Language Environment Programming Guide describes how to make your existing BAL programs into Language Environment-conforming BAL programs, using macros supplied by IBM with the Language Environment product.

Can OS/VS COBOL programs use Language Environment callable services?

No. OS/VS COBOL programs cannot use the Language Environment callable services directly, but OS/VS COBOL programs can call an Enterprise COBOL program to place calls to the services.

Can condition handling be added to a pure OS/VS COBOL application by converting the main routine to Enterprise COBOL?

Yes, with restrictions on recovery. For details, see Converting programs that use ESTAE/ESPIE for condition handling.

What is COBOL multithreading and how does it relate to PL/I multitasking?

COBOL multithreading is the support of multiple programs running at the same time in the same address space in the same process. It cannot be initiated by COBOL, but it can be initiated by C programs doing "pthread create". It is compatible with PL/I multitasking in that multiple PL/I tasks can call COBOL programs when they are compiled with the THREAD compiler option.

PL/I can initiate multitasking using native language and manage the interaction between the separate tasks.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)