Sunteți pe pagina 1din 10

ILE COBOL

IBM defines ILE as: The Integrated Language Environment (ILE) is a new set of tools and associated system support. ILE is designed to enhance program development and maintenance on the AS/400 system. In addition to enhancements to the OS/400 operating system, ILE includes a new family of compilers: ILE RPG/400 ILE COBOL/400 ILE C/400 ILE CL

Benefits of ILE
Better call performance Modularity Multiple-language integration Enhancements to the ILE compilers Reusable components

Creating ILE Cobol pgms


Use SEU to enter ILE COBOL source
Specify CBLLE for the TYPE parameter. If SQL embedded COBOL specify SQLCBLLE for the TYPE parameter

Note
The ILE COBOL compiler does not produce an executable program object. It produces one or more module objects that can be bound together. These modules can later form one or more runnable units known as program objects The ILE COBOL compiler creates these modules which are system objects of type *MODULE.

Specific benefits
You cannot run a module. You have to bind one or more module objects together to create a program object. IBM: This ability to combine module objects allows you to:
Reuse pieces of code generally resulting in smaller programs.
Share code between several programs therefore eliminating the chance of introducing errors to other parts of the overall program while updating a shared section. Mix languages to select the language that best performs the task that needs to be done

The Create COBOL Module (CRTCBLMOD) command creates one or more module objects from ILE COBOL source statements.

The Create Bound COBOL Program (CRTBNDCBL) command creates a program object(s) from ILE COBOL source statements in a single step.
The Create Program (CRTPGM) command creates a program object from one or more previously created module objects and, if required, one or more service programs. You can bind module objects created by any of the ILE Create Module commands, CRTCBLMOD, CRTCMOD, CRTRPGMOD or CRTCLMOD.

To make changes to the ILE COBOL source program, do the following: 1. Change the ILE COBOL source program where required using SEU. 2. Compile the ILE COBOL source program using the CRTCBLMOD command to create a new module object(s). 3. Bind the module objects using the CRTPGM command or UPDPGM command to create a new program object.

Calling ILE programs/procedures


To call a program Us the format CALL LINKAGE TYPE IS PROGRAM Program-Name

PROCEDURE DIVISION. . CALL LINKAGE TYPE IS PROGRAM literal-1 .......... CANCEL LINKAGE TYPE IS PROGRAM literal-1

Continued
To call a procedure (*MODULE) Use format CALL LINKAGE TYPE IS PROCEDURE Program-Name PROCEDURE DIVISION. .

CALL LINKAGE TYPE IS PROCEDURE literal-1

CANCEL LINKAGE TYPE IS PROCEDURE literal-1

S-ar putea să vă placă și