# jCL GO F

Updated: 10/19/2020, 10:24:56 AM
Created: 10/19/2020, 10:24:56 AM
Last Updated By: Daniel Klein
Read Time: 1 minute(s)

Tags: go jcl

# Description

This command transfers control to the statement containing the next M (mark) command. It takes the general form:

G F
1

or

GO  F
1

or

GOTO F
1

# Note

The program is scanned forward from the current line, until the next M command is found. Program execution then jumps to that line. If an M command cannot be found, the jCL  program will terminate with an error message: Can't find mark at line n in programname.

# Example

001 PQN

...

005 GO  F
006 10 MV %1 "ABC"
007 MV %6 "DEF"
008 MV %10 "HIJ"
009 M
.
1
2
3
4
5
6
7
8
9
10

The GO F command on line 5 causes the program to be scanned from line 6, looking for the next M command. In this case, control will be transferred to line 9.

Back to jCL.