Loading

GOTO statement in Easytrieve

As you would expect, GOTO statement just transfers control directly to the label specified. Below example explains that.

 LIST ON
 JOB INPUT NULL
  DISPLAY 'ONE'
  GOTO LINE-FOUR
  DISPLAY 'TWO'
  DISPLAY 'THREE'
  LINE-FOUR
   DISPLAY 'FOUR'
 STOP

Output from this will be

 ONE
 FOUR

Related Posts




blog comments powered by Disqus

There's 0 Comment So Far

Share your thoughts, leave a comment!