C

end

 

 

C\

 

 

 

C\ No matter how the program got to the \PSSR, end the progra￿m

C\

 

 

 

C

move

'1'

\inlr

C

return

 

 

C

endsr

 

 

Program

for

Packaging

a

Product—Examples

 

 

 

 

 

 

 

 

This

section

includes the examples in

“Packaging

Your

Own

Software Produ

 

 

 

page

A-1.

 

 

 

 

 

 

Program

for

Packaging

a

Product—ILE

C

Example

 

 

 

 

 

 

 

Refer to “Program

for Packaging a Product—OPM RPG Example”

on page A-3

 

 

 

the

original

example.

 

 

 

 

 

 

 

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

 

 

 

 

/\ Program Name:

 

SFTWPRDEX

 

 

\/

 

 

 

 

/\

 

 

 

 

 

\/

 

 

 

 

/\ Program Language:

ILE C

 

 

\/

 

 

 

 

/\

 

 

 

 

 

\/

 

 

 

 

/\ Description:

 

This example shows you the steps necessary\/

 

 

 

 

/\

 

 

to package your product like IBM's.

\/

 

 

 

 

/\

 

 

 

 

 

\/

 

 

 

 

/\ Header Files Included: <stdlib.h>

 

 

\/

 

 

 

 

/\

 

 

<signal.h>

 

 

\/

 

 

 

 

/\

 

 

<string.h>

 

 

\/

 

 

 

 

/\

 

 

<stdio.h>

 

 

\/

 

 

 

 

/\

 

 

<qszcrtpd.h>

 

 

\/

 

 

 

 

/\

 

 

<qszcrtpl.h>

 

 

\/

 

 

 

 

/\

 

 

<qszpkgpo.h>

 

 

\/

 

 

 

 

/\

 

 

<qlicobjd.h>

 

 

\/

 

 

 

 

/\

 

 

<qusec.h>

 

 

\/

 

 

 

 

/\

 

 

<qliept.h>

 

 

\/

 

 

 

 

/\

 

 

 

 

 

\/

 

 

 

 

/\ APIs Used:

 

QSZCRTPD - Create Product Definition

\/

 

 

 

 

/\

 

 

QSZCRTPL - Create Product Load

 

\/

 

 

 

 

/\

 

 

QSZPKGPO - Package Product Option

 

\/

 

 

 

 

/\

 

 

QLICOBJD - Change Object Description

\/

 

 

 

 

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

 

 

 

 

#include <stdlib.h>

 

 

 

 

 

 

 

 

#include <signal.h>

 

 

 

 

 

 

 

 

#include <string.h>

 

 

 

 

 

 

 

 

#include <stdio.h>

 

 

 

 

 

 

 

 

#include <qszcrtpd.h>

 

 

 

 

 

 

 

 

#include <qszcrtpl.h>

 

 

 

 

 

 

 

 

#include <qszpkgpo.h>

 

 

 

 

 

 

 

 

#include <qlicobjd.h>

 

 

 

 

 

 

 

 

#include <qusec.h>

 

 

 

 

 

 

 

 

#include <qliept.h>

 

 

 

 

 

 

 

 

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

 

 

 

 

/\ Function:

Create_Prod_Def_Obj

 

 

\/

 

 

 

 

/\ Description:

Create the product definition ABCðð5ð for product

\/

 

 

 

 

/\

 

ABC.

 

 

 

\/

 

 

 

 

/\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/

 

 

 

 

 

 

 

Appendix B. Original

Examples in

Additional BLanguages-129

Page 407
Image 407
IBM Version 4 manual This Section Includes the examples Packaging Your, Software Produ, Sftwprdex