Resolving Conversion Problems

¹In renaming an externally described data structure field or an e described file field

I* If the RPG III source

member contains only the source

I* statement describing field CHAR below, the Conversion

I* Aid is unsure how to convert it. This statement may be

I* a rename of an externally described data structure fiel￿d

I* which is converted to

a definition specification) or

I* a rename of an externally described file field)

I* (which is converted to an input specification).

I

CHARACTER

CHAR

 

Figure

 

204. RPG III Source with a renamed field

 

 

 

 

 

 

In the above two instances,

a

data structure is assumed and defin

 

tions are produced. A block

of

comments

containing

the

input

specifica

 

also

produced.

For

example,

the Conversion Aid will convert the source

 

Figure 203

on page 400

to

the code

shown

in Figure 205.

If

Input

spe

 

code

is

required,

delete

the definition specifications and blank ou

 

from

the

corresponding Input

specifications.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D* If the RPG III source member contains only the source

 

 

 

 

 

 

 

D* statements describing fields FIELD1 and FIELD2 below, t￿he

 

 

 

 

 

 

 

D* Conversion Aid is unsure how to convert them. These

 

 

 

 

 

 

 

D* statements may be data structure fields (which are conve￿rted

 

 

 

 

 

 

D* to definition specifications) or program-described fil￿e

 

 

 

 

 

 

 

D* fields (which are converted to input specifications).

 

 

 

 

 

 

 

D FIELD1

 

 

 

1

3

 

 

 

 

 

 

 

 

 

 

D FIELD2

 

 

 

4

6

 

 

 

 

 

 

 

 

 

 

I*

 

 

 

 

 

 

 

1

3

FIELD1

 

 

 

 

 

 

 

 

I*

 

 

 

 

 

 

 

4

6

FIELD2

 

 

 

 

 

 

 

 

 

 

 

 

Figure

 

205. RPG IV source after converting source with input fields only

 

 

 

Remember

that

you

have

two

ways of correcting

these

types of

pro

 

use

the

EXPCPY(*YES)

 

option

of

the

CVTRPGSRC

command,

or manually

correct

 

the

code

after

conversion.

 

 

 

 

 

 

 

 

Use of Externally

Described

Data

Structures

 

 

 

 

 

 

 

 

 

There

are two

problems

that

you may have to fix manually even thoug

 

the

EXPCPY(*YES)

option

on

the

CVTRPGSRC

command.

 

 

 

 

¹

The

merging

of

an

array

with

an

externally described DS

subfield

¹The renaming and initializing of an externally described DS subfiel These problems are related to the use of externally described dat

Because these problems will generate compile-time errors, you can use mation in the ILE RPG compiler listingILE andRPG forthe AS/400 Referenceto

correct them.

Appendix B. Using the RPG III to RPG IV401 Conversion Aid

Page 425
Image 425
IBM AS/400 Use of Externally, Structures, Command Or manually Correct Code After Conversion, Char

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.