Using the CRTBNDRPG Command

Chapter 6. Creating

a

Program

with

the

CRTBNDRPG

Command

 

 

 

 

 

 

 

 

This

chapter

shows

you

how

to create an ILE program using RPG IV s

the

Create

Bound

RPG

Program

(CRTBNDRPG) command. With this command

you

can

create

one

of

two

types of ILE programs:

1.OPM-compatible programs with no static binding

2.Single-module ILE programs with static binding

Whether you obtain a program of the first type or the second typ whether the DFTACTGRP parameter of CRTBNDRPG is set to *YES or *NO respectively.

Creating

a

program

of

the

first type

produces a program that behav

program

in the areas

of open scoping,

override scoping, and RCLRSC. Thi

degree

of

compatibility is

due in part to its running in the same

OPM programs,

namely,

in

the

default activation group.

However, with this high compatibility comes the inability to have sta Static binding refers to the ability to call procedures (in other m programs) and to use procedure pointers. The inability to have stati that you cannot:

¹ Use the CALLB operation in your source

¹ Call a prototyped procedure

¹Bind to other modules during program creation

Creating

a program of the second

type produces a program

with

ILE

such

as

static binding.

You

can

specify at program-creation

time

the

group the program is

to

run

in,

and any modules for static

binding.

can

call

procedures

from

your source.

 

 

Using the CRTBNDRPG

Command

 

 

 

 

 

 

 

 

 

 

 

The

Create

Bound

RPG

(CRTBNDRPG)

command

creates a program object from

RPG

IV source in one step. It also

allows

you to bind in

other

mo

programs

using a

binding

directory.

 

 

 

 

The

command

starts

the

ILE RPG

compiler

and creates a temporary modu

in

the

library

QTEMP. It

then

binds it

into

a program object

of

typ

program object is created, the temporary module used to create th deleted.

The CRTBNDRPG command is useful when you want to create a program obj from standalone source code (code that does not require modules to

together),

because

it

combines the steps of

creating and

binding.

F

allows

you

to create an OPM-compatible

program.

 

 

 

 

 

Note:

If

you

want

to

keep

the

module

object

in

order

to

bind it

 

 

into

a

program

object,

you

must

create

the

module

using the

CR

Copyright IBM Corp. 1994, 1999

57

Page 81
Image 81
IBM AS/400 manual With, Using the Crtbndrpg Command

AS/400 specifications

The IBM AS/400, now known as the IBM iSeries, is a midrange computer system that has been a cornerstone of enterprise computing since its introduction in 1988. Designed to provide a robust platform for business applications, the AS/400 is celebrated for its reliability, scalability, and integrated database capabilities.

One of the key features of the AS/400 is its Integrated Operating Environment, which blends hardware and software resources seamlessly. This integration allows businesses to execute diverse workloads, ranging from traditional applications to modern web-based services, all on a single platform. The operating system, OS/400 (now IBM i), offers a rich set of APIs and tools for developers, simplifying application development and management.

Another standout characteristic of the AS/400 is its built-in database, DB2 for i. This powerful relational database management system allows for efficient data handling and provides advanced features such as support for SQL, XML, and JSON, making it easier for businesses to manage their data and integrate it with other systems. The database's tight integration with the operating system enables high performance and security.

In terms of scalability, the AS/400 can accommodate small businesses as well as large enterprises, with the ability to support hundreds of users simultaneously. Its architecture allows for easy upgrades in hardware, meaning that organizations can scale their systems without replacing the entire infrastructure.

Security is another critical attribute of the AS/400. With a sophisticated security model, it offers built-in user authentication, access control, encryption, and auditing capabilities to protect data and applications from unauthorized access.

The AS/400 also supports multiple programming languages, including RPG, COBOL, Java, and PHP, giving organizations the flexibility to choose the development tools that best fit their needs. This diversity helps maintain legacy applications while also developing new ones that leverage modern technologies.

Moreover, the platform supports both traditional green-screen interfaces and modern graphical user interfaces, allowing organizations to transition smoothly into contemporary user experience paradigms.

Overall, the IBM AS/400 stands out as a resilient, flexible, and secure computing platform that enables organizations to effectively manage their business operations, streamline processes, and adapt to changing market demands. Its unique combination of integrated features and capabilities ensures that it remains relevant in today's fast-paced technology landscape.