IBM Version 4 Universal Remote User Manual


 
Appendix A. Performing Tasks Using APIs—Examples
This appendix contains the following examples of using multiple APIs to perform
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 using APIs. The
following demonstrates how you can use the APIs to package a product similar to
the way IBM packages products.
The example product being packaged in this example is called ABC Product. The
product is made up of one library, ABC, with no options off of this product. ABC
Product consists of the following objects:
To package a product, first you create all of the objects (numbers 1 through 11 and
number 15 in Figure A-1) that will comprise your product. (“CL Program for Cre-
ating Objects and Library for Packaging a Product” on page A-2 shows the code
that creates the objects.) After your objects are created, you do the steps listed in
“Program for Packaging a Product—OPM RPG Example” on page A-3.
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
Copyright IBM Corp. 1997 A-1