GO TO - Branching

Code: G

This function is a conditional and an unconditional branch function, depending on the contents of the parameter.

Parameter

Value

Parameter

Value

Description

0

Default

Unconditional branch.

Be aware that only one unconditional branch is allowed, as it is used for controlling retail lines in printing.

F1-F999

Branch depending on field value (Numeric and alpha)

0-8192

Branch depending on value (Numeric)

"Text"

Branch depending on text ( Aplha )

One character space is represented with a _ (underscore)

1

F1-F999

Branch number two field if field equal to or parameter 0 is default

Action

Action to be taken if field equal to or parameter 0 is default

2

F1-F999

Branch number two field if field is less than

Action

Action to be taken if field is less than

3

F1-F999

Branch number two field if field is greater than

Action

Action to be taken if field is greater than

4

F1-F999

1

F1-F999

Stop branching to this field if field equal to or parameter 0 is default

Default

No further action

5

F1-F999

2

F1-F999

Stop branching to this field if field is less than

Default

No further action

6

F1-F999

3

F1-F999

Stop branching to this field if field is greater than

Default

No further action

7

F1-F999

4

F1-F999

Branch two field after stopping if field equal to or parameter 0 is default

Default

4

F1-F999

Branch to current field1 after stopping if field equal to or parameter 0 is default

8

F1-F999

5

F1-F999

Branch two field after stopping if field is less than

Default

5

F1-F999

Branch to current field1 after stopping if field is less than

9

F1-F999

6

F1-F999

Branch two field after stopping if field is greater than

Default

6

F1-F999

Branch to current field1 after stopping if field is less than

The following action values are valid:

Action

Description

Default

No Action

F1-F999

Branch two field number

H

Set warning flag in Field

1-60

Abortion transaction and taken over all error message to number 1-60

A

Abortion transaction and set error flag on field.

K

Branch to previous serial read.

When printing totals the branch is ignored

X

Add Fashion modification 1st

-

Branch to current field

R

Set key value for continuation form.

D

Branch to the first occurrence of a repetition or an unconditional branch

G

Branch to the field after the first occurrence of a repetition or an unconditional branch

Branch to current field1 (Next Field)

w

Branch to write of current record area

W

Branch to the field after write of current record area.

E

Exit the form.

e

Exit form after processing current field.

Branches go to the point specified, without completing the rest of the functions for the data item, including the fixed logic functions.These fixed logic functions are responsible for getting data from a record, passing it through any function specified processing and putting it on a form or visa versa.If the line contains a function modification fashion the line is processed twice, once in the original mode and once in modified fashion.

NOTE: A function code G with action code X is an exception to this rule, in that the rest of the processing should not be done in the original fashion, and the line should be processed in the modified mode.