1 / 10

ILE COBOL

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

leala
Télécharger la présentation

ILE COBOL

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

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: • Change the ILE COBOL source program where required using SEU. • Compile the ILE COBOL source program using the CRTCBLMOD command to create a new module object(s). • 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

More Related