skip to main content

Procedure Division Statements : GO TO

GO TO
General Format
Format 1
GO TO Procedure-Name-1
Format 2
GO TO { Procedure-Name-1 } ... DEPENDING ON Identifier-1
Syntax rules
1.
General rules
1.
2.
Examples
Format 1 - Go to a paragraph if a condition is true
  if ws-amount > 0 go to compute-interest
  else go to exit-compute.
  compute ws-interest = ws-amount * ws-rate / 100 / 12
  move ws-interest to loan-interest
  exit.
Format 2 - Go To a paragraph depending on menu option selected
  accept ws-option
  go to op1 op2 op3 depending on ws-option.
  display message "processing op1"
  go to process-exit.
  display message "processing op2"
  go to process-exit.
  display message "processing op3"
  go to process-exit.
  exit.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left