IBM AS/400 manual Creating a NOMAIN Module, Creating a Module Object

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 99
Image 99
Creating a NOMAIN Module

Creating a Module Object

Table 6 (Page 2

of

2).

CRTRPGMOD Parameters and Their Default Values Grouped by Function

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DEFINE(*NONE)

 

Specifies

condition

names

that

are

defined

before

the

co

 

 

 

 

 

 

 

begins

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PRFDTA(*NOCOL)

 

Specifies

the

program

profiling

data

attribute

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Compiler

Listing

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OUTPUT(*PRINT)

 

Determines if there is a compiler listing

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INDENT(*NONE)

 

Determines

if

indentation should show in listing, and

identif

 

 

 

 

 

 

 

acter

for

marking

it

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OPTION(*XREF

*NOSECLVL

*SHOWCPY

 

 

Specifies

the

contents

of

compiler

listing

 

 

 

 

 

 

*EXPDDS *EXT

*NOSHOWSKP

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

*NOSRCSTMT

)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Data

Conversion

Options

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CVTOPT(*NONE)

 

Specifies

how

various

data

types

from

externally

describe

 

 

 

 

 

 

 

are

handled

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ALWNULL(*NO)

 

Determines

if

the

module

will

accept

values

from

null-capable

 

 

 

 

 

 

 

fields

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FIXNBR(*NONE)

 

Determines

which decimal

data

that

is

not

valid

is

to

be

 

 

 

 

 

 

 

the

compiler

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Run-Time

Considerations

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SRTSEQ(*HEX)

 

Specifies the sort sequence table to be used

 

 

 

 

 

 

 

 

 

 

 

 

OPTION(*DEBUGIO)

 

*DEBUGIO/*NODEBUGIO, determines if breakpoints are gener-

 

 

 

 

 

 

 

 

ated for input and output specifications

 

 

 

 

 

 

 

 

 

 

 

 

 

LANGID(*JOBRUN)

 

Used with SRTSEQ to specify the language identifier for s

 

 

 

 

 

 

 

sequence

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TRUNCNBR(*YES)

 

Specifies

action to take when numeric overflow occurs for

 

 

 

 

 

 

 

packed-decimal, zoned-decimal, and binary fields in fixed f

 

 

 

 

 

 

 

operations.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

When

requested,

the

 

CRTRPGMOD

command

creates a compiler listing which

 

 

for

the

most

part identical

to

the

listing

that

 

is

produced

by

the

 

 

command.

(The

listing

created

by

CRTRPGMOD will

never

have a

binding

s

 

 

For

information

on

using

the compiler

listing, see “Using a Compiler List

 

 

page 63.

A sample

compiler

listing

is

provided

in

 

Appendix D,

“Compiler L

 

 

on

page 423.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Creating a NOMAIN Module

In this example you create an NOMAIN module object TRANSSVC using the CRTRPGMOD command and its default settings. TRANSSVC contains prototyped procedures that perform transaction services for procedures in other source for TRANSSVC shown in Figure 36 on page 76. The prototypes for t cedures in TRANSSVC are stored in a /COPY member, as shown in Figure 3 page 78.

1. To create a module object, type:

CRTRPGMOD MODULE(MYLIB/TRANSSVC) SRCFILE(MYLIB/QRPGLESRC)

The module will be created in the library MYLIB with the name s command, TRANSSVC. The source for the module is the source member TRANSSVC in file QRPGLESRC in the library MYLIB.

Chapter 7. Creating a Program with the CRTRPGMOD and CRTPGM Commands75

Page 99
Image 99
IBM AS/400 manual Creating a NOMAIN Module, Creating a Module Object