Resolving Conversion Problems

Resolving Conversion Problems

Conversion problems may arise for one or more of the following reasons:

¹ The RPG III source has compilation errors

¹ Certain features of the RPG III language are not supported by R

¹ One or more /COPY compiler directives exists in the RPG III sourc

¹ Use of externally described data structures

¹Behavioral differences between the OPM and ILE run time

Each of these areas is discussed in the sections which follow.

Compilation Errors in Existing RPG III Code

The Conversion Aid assumes that you are attempting to convert a valid R program, that is, a program with no compilation errors. If this is not unpredictable results may occur during conversion. If you believe your contains compilation errors, compile it first using the RPG III compiler any errors before performing the conversion.

Unsupported RPG III Features

A few features of the RPG IIInot supportedlanguage arein RPG IV. The most notable of these are:

¹ The auto report function

¹ The FREE operation code

¹The DEBUG operation code

Since the

auto

report

function

is

not supported,

the

Conversion

Aid

will

ically expand these programs (that

 

is,

call

auto report)

prior to

perf

version

if

the

type

is

RPT

or

RPT38.

 

 

 

 

 

 

 

You

must

replace

the

 

FREE or DEBUG operation code with equivalent logic

before

or

after

conversion.

 

 

 

 

 

 

 

 

 

 

If

you

 

specify

the

 

CVTRPT(*YES) option on the CVTRPGSRC command, you will

receive

 

a

conversion

report

that identifies

most

of

these types

of

For

further

information

 

on

converting

auto

report

members, see

“Converting

Report

Source

Members”

on

page 389.

For

further

information

on

differenc

between

 

RPG

III

and

RPG

IV,

see

Appendix A,

“Behavioral

Differences

OPM

RPG/400

and

ILE

RPG

 

for

AS/400”

on

page 373.

 

 

 

 

 

Use of the /COPY

Compiler

Directive

 

 

 

 

In

some

cases,

errors

will not

be found

until you actually compile the

RPG

IV source. Conversion errors of this

type are usually related to

/COPY

compiler directive.

These

errors fall

into two categories: merging

and

context-sensitive problems. Following is

a

discussion of why these pr

occur

and how

you might

resolve

them.

 

 

398 ILE RPG for AS/400 Programmer's Guide

Page 422
Image 422
IBM AS/400 manual Resolving Conversion Problems, Compilation Errors in Existing RPG III Code, Unsupported RPG III Features

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.