Thread: COBOL

STOP RUN vs GOBACK - which one do I use?

Started by Alex • user3 replies169 viewsLast activity 2 weeks ago
Post #1
0 votes
Alex
Reputation
8
Posts: 35
Joined: Jun 15, 2026, 9:20 AM
Posted: Jul 30, 2026, 1:37 PM

My hello world uses STOP RUN. Training slides also show GOBACK. Are they the same thing?

Post #2
1 votes
Marty
Reputation
412
Posts: 58
Joined: Aug 12, 2024, 9:14 AM
Posted: Jul 30, 2026, 3:37 PM

Main programs: either works, lots of shops prefer GOBACK now.
Subprograms (CALLed): use GOBACK or EXIT PROGRAM. STOP RUN in a subprogram can kill the whole run unit, which is usually bad.

Post #3
0 votes
Sam
Reputation
5
Posts: 28
Joined: Jul 1, 2026, 2:30 PM
Posted: Jul 30, 2026, 10:37 PM

Same question was going to be my next post. Bookmarking.

You must be signed in to reply to this thread