OPM-Compatible Application

Chapter 3. Program Creation Strategies

There are many approaches you can take in creating programs using an guage. This section presents three common strategies for creating IL using ILE RPG or other ILE languages.

1. Create a program using CRTBNDRPG to maximize OPM compatibility.

2. Create an ILE program using CRTBNDRPG.

3. Create an ILE program using CRTRPGMOD and CRTPGM.

The first

strategy

is

recommended

as a

temporary

one.

It

is

intend

have OPM applications and who, perhaps due to lack of time,

cannot

mov

applications

to

ILE

all at once. The second strategy can

also be

a

allows you

time

to

learn

more about

ILE,

but also

allows

you

to

immed

some of its features. The third strategy is more involved,

but

 

off

bility.

 

 

 

 

 

 

 

 

 

 

 

Both the first and second strategy make use of the one-step progra process, namely, CRTBNDRPG. The third strategy uses the two-step progr ation process, namely, CRTRPGMOD followed by CRTPGM.

Strategy 1: OPM-Compatible Application

Strategy 1 results in an ILE program that interacts well with OPM prog allows you to take advantage of RPG IV enhancements, but not all of enhancements. You may want such a program temporarily while you comple migration to ILE.

Method

Use the following general approach to create such a program:

1. Convert your source to RPG IV using the CVTRPGSRC command.

Be sure to convert all /COPY members that are used by the sourc converting.

2.Create a program object using the CRTBNDRPG command, specifying DFTACTGRP(*YES).

Specifying DFTACTGRP(*YES) means that the program object

will run

only

in

default

activation

group.

(The

default

activation group

is

the

activa

all

OPM

programs

are

run.)

As

a

result,

the program object will intera

OPM programs

in

the

areas

of

 

override

scoping,

open

scoping,

and

RCLRS

When

you

use

this

approach

you cannot

make use of ILE static bindi

means

that

you

cannot code a bound procedure

call

in

your

source,

use the BNDDIR or ACTGRP parameters on

the CRTBNDRPG

command

when

 

creating

this

program.

 

 

 

 

 

 

 

 

 

Copyright IBM Corp. 1994, 1999

23

Page 47
Image 47
IBM AS/400 manual Program Creation Strategies, Strategy 1 OPM-Compatible Application, Method, But also Allows You

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.