Compiler Listings

 

*--------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

.4/

 

 

1

 

* Data structure .

 

. . . . .

:

DSEXT1

 

 

 

 

 

 

 

 

 

*

 

 

 

 

1

 

* Prefix . .

. . .

 

. . . . .

:

BI_ :

 

0

 

 

 

 

 

 

 

 

*

 

 

 

 

1

 

* External format

 

. . . . . :

REC1 : MYLIB/DSEXT1

 

 

 

 

 

 

 

*

 

 

 

 

1

 

* Format text

. .

 

. . . . .

:

Record format description

 

 

 

 

 

 

*

 

 

 

 

1

 

*--------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

1

.5/

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15=D BI_FLD1

 

 

 

 

5A

EXTFLD (FLD1)

 

 

 

 

 

FLD1 description

 

 

 

 

 

1000001

16=D

 

 

 

 

 

 

INZ (*BLANK)

 

 

 

 

 

 

 

 

 

 

 

 

 

1000002

17=D BI_FLD2

 

 

 

 

10A

EXTFLD (FLD2)

 

 

 

 

 

FLD2 description

 

 

 

 

 

1000003

18=D

 

 

 

 

 

 

INZ (*BLANK)

 

 

 

 

 

 

 

 

 

 

 

 

 

1000004

19=D BI_FLD3

 

 

 

 

18A

EXTFLD (FLD3)

 

 

 

 

 

FLD3 description

 

 

 

 

 

1000005

20=D

 

 

 

 

 

 

INZ ('111')

 

 

 

 

 

 

 

 

 

 

 

 

 

1000006

21=IINREC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2000001

 

*--------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

2

 

* RPG record format

. . . . :

INREC

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

2

 

* External format

 

. . . . . :

INREC : MYLIB/INFILE

 

 

 

 

 

 

 

*

 

 

 

 

2

 

*--------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

2

22=I

 

 

 

 

A

1

25

FLDA

 

 

 

 

 

 

 

 

 

 

 

 

 

2000002

23=I

 

 

 

 

A

26

90

FLDB

 

 

 

 

 

 

 

 

 

 

 

 

 

2000003

24=I

 

 

13488 *VAR

C

91

112

UCS2FLD

 

 

 

 

 

 

 

 

 

 

 

 

 

2000004

25=IREC1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3000001

 

*--------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

3

 

* RPG record format

. . . . :

REC1

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

3

 

* External format

 

. . . . . :

REC1 : MYLIB/KEYL6

 

 

 

 

 

 

 

 

*

 

 

 

 

3

 

*--------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

3

26=I

 

 

 

*ISO-D

1

10

FLD12

 

 

 

 

 

 

 

 

 

 

 

 

 

3000002

27=I

 

 

 

 

A

11

13

FLD13

 

 

 

 

 

 

 

 

 

 

 

 

 

3000003

28=I

 

 

 

 

A

14

17

FLD14

 

 

 

 

 

 

 

 

 

 

 

 

 

3000004

29=I

 

 

 

 

A

18

22

FLD15

 

 

 

 

 

 

 

 

 

 

 

 

 

3000005

30=I

 

 

13488

C

23

32

FLDC

 

 

 

 

 

 

 

 

 

 

 

 

 

3000006

31=I

 

 

13488 *VAR C

33

44

FLDCV

 

 

 

 

 

 

 

 

 

 

 

 

 

3000007

32=I

 

 

835

G

45

54

FLDG

 

 

 

 

 

 

 

 

 

 

 

 

 

3000008

33=IREC2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4000001

 

*--------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

4

 

* RPG record format

. . . . :

REC2

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

4

 

* External format

 

. . . . . :

REC2 : MYLIB/KEYL6

 

 

 

 

 

 

 

 

*

 

 

 

 

4

 

*--------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

4

34=I

 

 

 

*ISO-D

1

10

FLD22

 

 

 

 

 

 

 

 

 

 

 

 

 

4000002

35=I

 

 

 

 

A

11

13

FLD23

 

 

 

 

 

 

 

 

 

 

 

 

 

4000003

36=I

 

 

 

 

A

14

17

FLD24

 

 

 

 

 

 

 

 

 

 

 

 

 

4000004

37=I

 

 

 

 

A

18

22

FLD25

 

 

 

 

 

 

 

 

 

 

 

 

 

4000005

Line

<---------------------

 

 

Source Specifications ----------------------------------------------

 

 

 

 

 

 

 

><----

Comments

 

----> S￿rc Seq

Number

....1....

+....

2....

+<--------

26 - 35 -------->....

4....

+....

5....

+....

6

....+

....7

....+....

8....

+

....9....

+

...10 Id

Number

38

C

 

 

 

MOVE

 

 

 

'123'

 

BI_FLD1

 

 

 

 

 

 

 

 

 

001500

39

C/COPY MYCPY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

971104

001600

 

*--------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

.6/

 

 

 

 

* RPG member name

 

. . . . . :

MYCPY

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

5

 

* External name .

 

. . . . .

:

MYLIB/QRPGLESRC(MYCPY)

 

 

 

 

 

 

 

*

 

 

 

 

5

 

* Last change

. .

 

. . . . .

:

98/07/24

16:20:04

 

 

 

 

 

 

 

 

*

 

 

 

 

5

 

* Text 'description' . . . .

:

Text specified on Copy Member

 

 

 

 

 

*

 

 

 

 

5

 

*--------------------------------------------------------------------------------------------

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*

 

 

 

 

 

.7/

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

40+C

Blue(1)

 

 

DSPLY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5000100

41+C

Green(4)

 

 

DSPLY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5000200

42+C

Red(2)

 

 

DSPLY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5000300

.8/

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

43

C

*in20

 

 

doweq

 

 

 

*OFF

 

 

 

 

 

 

 

 

 

 

 

 

 

001700

44

C

 

 

 

READ

 

 

 

InRec

 

 

 

 

 

 

----20

 

 

 

 

 

001800

45

C

 

 

 

if

 

 

 

NOT *in20

 

 

 

 

 

 

 

 

 

 

 

 

001900

46

C

FLDA

 

 

DSPLY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

002000

47

C

 

 

 

endif

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

002100

48

C

 

 

 

enddo

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

002200

49

C

 

 

 

write

 

 

 

outrec

 

 

 

 

 

 

 

 

 

 

 

 

002300

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.9/

 

 

 

 

 

 

50

C

 

 

 

SETON

 

 

 

 

 

 

 

 

 

 

 

LR----

 

 

 

 

 

002400

47

C/DEFINE ABC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

971104

002500

51

C/IF DEFINED(ABC)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

971104

002600

52

C

 

 

 

MOVEL

 

 

 

'x'

 

 

Y

 

 

 

10

 

 

 

 

 

 

002700

54

C

 

 

 

MOVEL

 

 

 

'x'

 

 

Z

 

 

 

10

 

 

 

 

 

 

002800

55

C/ELSE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

971104

002900

.10/

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

------

C

 

 

 

MOVEL

'

'

 

Y

 

 

10

 

 

 

 

 

 

 

 

971104

003000

------

C

 

 

 

MOVEL

'

'

 

Z

 

 

10

 

 

 

 

 

 

 

 

971104

003100

56

C/ENDIF

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

971104

003200

Figure 217 (Part 2 of 3). Sample Source Part of the Listing

Appendix D. Compiler Listings429

Page 453
Image 453
IBM AS/400 manual Part 2 of 3. Sample Source Part of the Listing

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.