IBM Version 4 Packaging Your Own Software Products, Software products, RPG Example on page A-3

Models: Version 4

1 505
Download 505 pages 30.92 Kb
Page 257
Image 257

Appendix A. Performing Tasks Using APIs—Examples

This appendix contains the following examples of using multiple APIs to tasks:

Ÿ

Packaging your

own

software products

Ÿ

Retrieving a

file

description to a user space

ŸUsing data queues versus user queues

Packaging Your Own Software Products

You can define, create, distribute, and maintain your own product us following demonstrates how you can use the APIs to package a product the way IBM packages products.

The example product being packaged in this example is called ABC Prod product is made up of one library, ABC, with no options off of this Product consists of the following objects:

Figure

A-1. ABC Software

Packaging

 

 

 

 

 

 

 

 

 

 

Number

Object Name

Object

Type

Text

Description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

ABCPGMMRM1

*PGM

MRM

 

 

 

1

preprocessing

program

2

ABCPGMMRM2

*PGM

MRM

postprocessing

program

 

3

ABCPGMMRI1

 

*PGM

 

MRI

 

2

preprocessing

program

4

ABCPGMMRI2

 

*PGM

 

MRI

postprocessing

program

5

ABCPGM

 

*PGM

CPP

 

3 for

ABC

command

6

QCLSRC

 

*FILE(SRCPF)

Source

physical

 

file

 

7

ABCDSPF

*FILE(DSPF)

Display

file

 

 

 

 

 

8

ABCPF

 

*FILE(PF)

 

Physical

file

 

 

 

 

9

ABCMSG

 

*MSGF

Message

file

 

 

 

 

 

10

ABC

 

*CMD

 

Command

for

ABC

Product

 

11

ABCPNLGRP

 

*PNLGRP

Panels

for

ABC

 

 

 

 

12

ABC0050

 

*PRDDFN

Product

definition

 

 

13

ABC0029

 

*PRDLOD

 

Product

load

for

MRI

 

14

ABC0050

 

*PRDLOD

 

Product

load

for

MRM

 

15

ABC

 

*LIB

 

ABC

Product

 

 

 

Note:

 

 

 

 

 

 

 

 

 

 

 

 

 

1.Machine readable material

2.Machine readable information

3.Command processing program

To package

a

product,

first

you

create all of the objects (number

number

15 in

 

Figure A-1)

that

will

comprise

your product. (“CL Program fo

ating

Objects

and Library for Packaging a

Product” on page A-2 shows

that

creates

the objects.) After your objects are created, you d

“Program for

Packaging a

Product—OPM

RPG Example” on page A-3.

Copyright IBM Corp. 1997

A-1

Page 257
Image 257
IBM Version 4 manual Packaging Your Own Software Products, Software products, RPG Example on page A-3