• Aucun résultat trouvé

Indicat~ere

Specified

I

Where Used

[

Turned On Turned Off Notes Resulting IrlCilcator tntemal Output Indicators on This indicator is always Can never be turned

00 Output Specifications ON OFF

(Columns 24 - 25, 27 - 28, 30 - 31)

Reeultlng II~dlcatol'l Input Specifications Indicators on Calcula- When specified record Before the first record Turning OFF and ON can also (01-99) (CoilA'll"' 19-20) tlon Specifications type has been read and is read on the next be accomplished by using

(Columns 10-11, 13-14, is ready for processing. processing cycle. SETON and SETOF operation

16-17) codes.

Output Indicators on Output Specifications (Columns 24-25, 27-28, 30-31)

Calculation Specl- Same as above. Whenever the specified The next time that Same as above flcatlons (Columns field status condition this field status is

5 ... 55, 56-57, is sotlsfied . to be tested

58-59)

Field Indlc:ators Input Specifications Same as above Same as above Same as above Same as above (01-99) (CollA'llns 65-66,

67-68, 69 .. 70)

Halt IndlQ~tors Input Specifications Same as above Same as above Can only be turned If these indicators remain ON,

(HI - H9) (eollA'llns 65-66, OFF by SETOF opera- the object program will

term-67-68, 69-70) tion code. See Note. inate before reading the next

record.

CAlculation Speci-fications (Columns 5 ... 55, 56-57, 58-59)

~.

Control LAvel l,.ut Specifications Same as above and Whenl the value in a control Before the first record Turning OFF and ON can be Indicators (CoilA'll'" 59-60) Calculation Specifl- field changes. All indi- is read on the next accomplished by using SETON (Ll - L9) cations (Columns 7-8) cators of the lower levels processing cycle. and SETOF operation codes.

are also turned 0 N •

LO Internal Indicators on Calcula- This indicator is always Can never be

tlons Specifications ON. turned OFF.

(Columns 10-11, 13-14, 16-17)

Output Indicators on Out put Specifications (Cols.

1--. 2.04-25,27-28,30-31)

LR Intemal Same as above After processing the last Same as above All Control level Indicators record of the last file. (11-l9) are also turned ON when the lR is turned 0 N.

1--.

MR Intemal Same as above When multiple input files Before the first record and the matching fields Is read on the next spec iflcation are used, th is processing cycle.

Indicator is turned ON if a secondary file record matcrnes the primary file record.

~.

Overflow IrlCiicators File Description Same as above When Chamel 12 of the After the detail and These indicators remain ON for OA, OF, OV (CollA'llns 33-34) carrl10ge control"tape is heading records are one complete processing cycle.

senHld. written.

IP Intemal Output Indicators on This indicator is ON at the Before the first record This iAdicator is used to govern Output Specifications beginning of processing is read. printing of the first page of the (Columns 24-25, 27- before any records are report.

28, 30-31) read.

4-All IrlCilcatc)fS specified in columns 69 - 70 of the Input Specification sheet and columns 58 - 59 of the Calculation Specification sheet are ON at the beginning of processing before any , .. cords al"(J read. This is always the case except when the operation codes COMP, lOKUP, SETON, and SETOF are specified.

• BOS/360

RPG

(8K Disk) 163

APPENDIX B: RPG LOGIC FLOW CHARTS

Perform Total Calculation Specifications

/tIv;)ve Data Fie Ids of Record Type from Input Area

Perform Detail Calculation Specifications

1. General Logic for RPG Object Program with RAF File

2.

Perform Total Calculation Specifications

Move Data Fields of Record Types from Input Area

Perform Detail Calculation Specifications

General Logic for RPG Object Program with a Chaining File

r

I I I I I

I I

Perform Iotal Calculation Specificcltions

~ ove

Datel Fields of Record Types from Input Area

No

- ,- - - _ . - - - 1

Perform Conversion Routine

I I I I I

I I

L _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ J

Perform Detail Calculcltion Specifications

3. General Logic for RPG Object Program with Chaining File which Requires Conversion

• BOS/360 RPG (8K Disk) 165

r - I ..---'----.., I

I I I

I I I

Perform Conversion Routine

Perform Total Calculation Spec ifications

MDve Data Fields of Record Type from Input Area

Perform Detai I Calculation Specifications

-,

I I I I I I I I

4. General Logic for RPG Object Program with RAP File which Requires Conversion

Perform Total Calculation Specifications

Move Data Fields

of Record ~

from Input Area

Perform Detail Calculation Specifications

5. General Logic forRPG Object Program with RAF and Chaining Files

APPENDIX C: STERLING ROUTINES FOR THE REPORT PROGRAM GENERATOR

The RPG ste:cling routines furnish users wi th a conv1enient and time-saving means of handling sberling amounts. The presence of sterling fields is indicated to the RPG sterling routines convert the input fields into a pence-format field. A pence-format contain a numeric underpunch.

OUTPUT WHICH IS NOT PRINTED: Sterling the output specifications, the output will be in pence format.

Note 3: The rules governing the use of edir-control words are the same as those for decimal fields.

The following features are available:

1. Zero suppression in the pounds field. and suppression of separation marks between pounds and shillings, shillings and pence, and pence and decimals.

Note: If column 38 of the ~utput­

Format Specification sheet contains ~, the entire pounds field will be the RPG program needs information regarding the input and output formats. This

Lengths of Pence-Format Fields

If a pence-format result field is to be reconverted into a Format-1 field, the highest amount i t is permitted to contain is 2,399,999,999,999,999.

POUND STERLING FORMATS

RPG will support, on the input and output

COLUMN 17 (STERLING-SHILLING FIELD ON INPUT) IBM FORMAT: Two positions are

COLUMN 19 <STERLING-SHILLINGS FIELD ON OUTPUT) IBM FORMAT: Two positions are output-Format Specification sheet containing the edit words. Each edit word is composed of

4. Asterisk protection.

5. An ampersand causes the insertion of a blank in the edit word.

Rules for Forming Edit Words for a Sterlin~

Field

1. An edit word must be enclosed by a set of single-quote symbols.

2. At least one separator character, or provides asterisk protection in both the pounds field and the shillings field.

4. When specifying the floating pound sign, there must be at least Q~~ pounds field position preceding the shillings field and following the pound sign.

5. For each field in which zero suppres-sion is desired, i t must be specified as such. Zero suppression in a field

occurs only if a zero appears in that