COBOL Runtime Error Code – 048 Attempt to divide by zero (Fatal) -You a

In this post, you’ll learn about the COBOL runtime Error Code 048 and the reason why you are receiving it

COBOL Error Code :

048

Reason for this Error in COBOL

Attempt to divide by zero (Fatal) -You are executing a program that is trying to perform a fixed-point divide by zero. Alternately, if you have COBFSTAT environment variable set to HOSTSTAT, this could be mainframe file status code “90”. -Either recode your program so that you can trap the error with an ON SIZE ERROR clause, or run your program without the RTS O switch set, or recompile your program without the CHECKDIV”OSVS” directive set.