Presentation is loading. Please wait.

Presentation is loading. Please wait.

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.

Similar presentations


Presentation on theme: "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."— Presentation transcript:

1 ILE COBOL

2 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

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

4 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

5 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.

6 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

7 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.

8 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.

9 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

10 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


Download ppt "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."

Similar presentations


Ads by Google