Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
If you do not specify STOP RUN (or GOBACK) you will most likely get an 0c1, 0c4, 001 etc abend. Depending on where your program winds up, you will fall out the bottom or hit an i/o on an un-opened file.
I ran one here and thanks to abend-aid got
Because the program did not have a terminator (STOP, GOBACK, or EXIT),
control fell through the last instruction.
It "knew" i fell out the bottom.
You also need an ENVIRONMENT DIVISION or you will get something like
10 IGYDS1005-E THE "ENVIRONMENT DIVISION" HEADER WAS NOT FOUND.