IBM manual xx ILE RPG for AS/400 Programmers Guide, Element

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 22
Image 22
Element

Table

2

(Page 1

of

2).

New Language Elements Since V4R2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Language Unit

 

Element

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Control

specifi

- CCSID(*GRAPH:

 

 

 

Sets

the

default

graphic

CCSID

for

cation

keywords

*IGNORE

*SRC

 

the module. This setting is used for

 

 

 

number)

 

 

 

 

 

literals, compile-time data and

 

 

 

 

 

 

 

 

 

 

 

 

program-described input and output

 

 

 

 

 

 

 

 

 

 

fields and definitions. The default is

 

 

 

 

 

 

 

 

 

 

*IGNORE.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CCSID(*UCS2: number)

 

Sets

the

default

UCS-2 CCSID for

 

 

 

 

 

 

 

 

 

 

the module. This setting is used for

 

 

 

 

 

 

 

 

 

 

literals, compile-time data and

 

 

 

 

 

 

 

 

 

 

 

 

program-described input and output

 

 

 

 

 

 

 

 

 

 

fields and definitions. The default is

 

 

 

 

 

 

 

 

 

 

13488.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

INTPREC(10

20)

 

Specifies the decimal precision of

 

 

 

 

 

 

 

 

 

 

integer

 

and

 

unsigned

intermediate

 

 

 

 

 

 

 

 

 

 

values

in

binary

arithmetic

operations

 

 

 

 

 

 

 

 

 

 

in

expressions.

The

default,

 

 

 

 

 

 

 

 

 

 

 

 

 

INTPREC(10), indicates that 10-digit

 

 

 

 

 

 

 

 

 

 

precision is to be used.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OPENOPT{(*NO

*YES)}

 

Indicates whether the overflow indi-

 

 

 

 

 

 

 

 

 

 

cators

should

be

reset to

*OFF

when

 

 

 

 

 

 

 

 

 

 

a

file

 

is

opened.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

THREAD(*SERIALIZE)

 

 

Indicates

that

the

module

is

enabled

 

 

 

 

 

 

 

 

 

 

to run in a multithreaded

environ-

 

 

 

 

 

 

 

 

 

 

ment. Access to the procedures

in

 

 

 

 

 

 

 

 

 

 

the

module

is

to

be

serialized.

 

 

 

 

 

 

 

 

 

 

Definition spec

-CCSID(number *DFT)

 

Sets

the

graphic

and UCS-2 CCSID

 

ification

 

 

 

 

 

 

 

for

the

definition.

 

 

 

 

 

 

 

keywords

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Built-in

 

functions%DIV(n:m)

 

 

 

 

 

Performs integer division on the two

 

 

 

 

 

 

 

 

 

 

operands

n

and

m;

the

result

 

is

n/m.

 

 

 

 

 

 

 

 

 

 

The operands must be numeric

 

 

 

 

 

 

 

 

 

 

 

 

 

values with zero decimal positions.

 

 

 

 

 

 

 

 

 

 

 

 

%GRAPH(char-expr

 

Converts to graphic data from single-

 

 

 

graph-expr

UCS2-expr

byte{:

character,

graphic,

or

 

UCS-2

 

 

 

ccsid})

 

 

 

 

 

data.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

%REM(n:m)

 

 

 

 

 

Performs the integer remainder oper-

 

 

 

 

 

 

 

 

 

 

ation on two operands n and

m;

the

 

 

 

 

 

 

 

 

 

 

result is the remainder of n/m. The

 

 

 

 

 

 

 

 

 

 

operands must be numeric values

 

 

 

 

 

 

 

 

 

 

 

with

zero

decimal positions.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

%UCS2(char-expr

graphConverts-

to UCS-2

data

from

single-

 

 

 

expr

UCS2-expr {: ccsid})byte character,

graphic,

or

 

UCS-2

 

 

 

 

 

 

 

 

 

 

data.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

%XFOOT(array-expr)

 

Produces

the

sum

of all the ele-

 

 

 

 

 

 

 

 

 

 

ments in the specified array

 

 

 

 

 

 

 

 

 

 

 

 

expression.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

xx ILE RPG for AS/400 Programmer's Guide

Page 22
Image 22
IBM manual xx ILE RPG for AS/400 Programmers Guide, Element