Home > AS/400 Tips > iSeries administrator tips > Getting up to speed on ILE commands
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

Getting up to speed on ILE commands


Ron Turull
05.25.2005
Rating: -4.61- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



[TABLE]

Before you dive into ILE as a programmer or start managing ILE objects as an administrator, you need to understand the many ILE-related objects. (We discussed these in the last two installments -- How to use ILE objects -- Part I and Part II). You also need to understand the many ILE-related commands and how they interrelate. This will help both your productivity as you learn ILE and your system's resources as you deploy ILE.

A quick reference to ILE commands

The following sections will summarize the new ILE-related commands. They are grouped into rough categories for clarity.

Module and program creation commands

CRTxxxMOD. These Create Module commands compile source members of the various ILE languages into ILE modules, intermediate non-executable objects that can be bound into ILE programs. The xxx is replaced with the appropriate language designator, such as RPG, CBL, C, or CL, to produce CRTRPGMOD, CRTCBLMOD, CRTCMOD, or CRTCLMOD.

[TABLE]
[IMAGE]

CRTPGM. The Create Program command allows you to bind together one or more modules -- created with the CRTxxxMOD commands -- into a single executable program. The modules can be of different languages.

CRTBNDxxx. These Create Bound Program commands combine the function of the CRTxxxMOD and CRTPGM commands. They can be used to quickly compile a source member and automatically bind the resulting (temporary) module into an executable ILE (i.e., bound) program in one step.

These commands can also be used to create an ILE program that runs in the default activation group, which is not an option when you use the CRTPGM command. Like the CRTxxxMOD commands, you should replace the xxx in CRTBNDxxx with the appropriate language identifier. Note: You cannot list a


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
iSeries administrator tips
Translating Linux for IBM i admins: Using GUI to make it easy
Translating Linux for IBM i admins: Working with jobs and networking
OpenOffice: What to know before making the transition from Microsoft Office
OpenOffice: An enterprise open source solution
Database performance comparisons on IBM i
Translating Linux for IBM i admins: User profile commands
Modern System i reports using Client Access
Tips for installing Lotus Domino server on a System i partition
The iSeries Blog has a new home on IT Knowledge Exchange
Virtualization for IBM i: Backups

iSeries ILE programming
How to use an embedded SQL statement and display the result in a subfile
Eight steps for creating program documentation using AS/400 utilities
Searching fields for values
Searching part of a name or address in AS/400
Top 10 programmer tips YTD
How to use the binder language to manage service programs -- Part 3: Examples and pitfalls
Top 10 programmer tips of 2005
How to use the binder language to manage service programs -- Part 2: Understanding the binder language
How to use the binder language to manage service programs -- Part 1: Service program signatures
Display attributes made simple

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


ny other modules on the CRTBNDxxx commands to bind into the program (as you can on the CRTPGM command). You must use binding directories to reference other modules or service programs on the CRTBNDxxx commands.

CRTSRVPGM. The Create Service Program command is similar to the CRTPGM command except it creates a service program.

Binding directory commands

CRTBNDDIR. The Create Binding Directory command creates a "shell" to hold binding directory entries that you add later using the ADDBNDDIRE command. Binding directory entries are references to modules and service programs. Binding directories can be specified on the CRTPGM, CRTBNDxxx, and CRTSRVPGM commands. The binding directory entries are then used to locate unresolved procedures. Using binding directories can significantly reduce the amount of information required on the CRTPGM, CRTBNDxxx, and CRTSRVPGM commands, thus increasing productivity.

ADDBNDDIRE. The Add Binding Directory Entry command can be used to add module and service program names to a binding directory. Only the names are stored in the binding directory, not the actual module or service program. The stored names are then used as references to locate unresolved externals (i.e. procedures and variables) when the binding directory is specified on a CRTPGM, CRTBNDxxx or CRTSRVPGM command.

RMVBNDDIRE. The Remove Binding Directory Entry command is the opposite of the ADDBNDDIRE command; it removes a specific entry or group of entries from a binding directory.

DSPBNDDIR. The Display Binding Directory command is used to display the entries stored in a binding directory.

WRKBNDDIR. The Work with Binding Directories command allows you to interactively work with a list of binding directories.

WRKBNDDIRE. The Work with Binding Directory Entries command allows you to interactively work with the entries of a binding directory, adding and removing them with simple menu commands.

Module and program maintenance commands

CHGMOD, CHGPGM and CHGSRVPGM. These commands allow you to change certain attributes of modules, programs and service programs, respectively. Theey are similar to the "old" CHGPGM. For example, they can be used to optimize or remove observability from a module, program or service program.

DLTMOD, DLTPGM and DLTSRVPGM. These commands delete modules, programs and service programs, respectively.

DSPMOD, DSPPGM and DSPSRVPGM. These commands display information about a module, program or service program, respectively.

WRKMOD, WRKPGM and WRKSRVPGM. These commands allow you to interactively work with a list of modules, programs or service programs, respectively.

UPDPGM and UPDSRVPGM. These commands allow you to replace one or more modules in a program or service program with new modules without requiring you to recreate the entire program. The new modules must have the same name as the ones to be replaced.

-----------------------------------
About the author: Ron Turull is editor of Inside Version 5. He has more than 20 years' experience programming for and managing AS/400-iSeries systems.


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts