Created
October 21, 2015 23:48
-
-
Save victw/ac4f03c3150ecbf6a9e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This is an example of a linear-main with an unhandled divide by zero error | |
Ctl-Opt Option(*SrcStmt); | |
Ctl-Opt Main(ILEMSGDIV); | |
Dcl-PR ILEMSGDIV ExtPgm('ILEMSGDIV'); | |
End-Pr; | |
Dcl-Proc ILEMSGDIV; | |
Dcl-S Result zoned(2:0) ; | |
Dcl-S Zero zoned(1:0) Inz(0); | |
//Divide by 0 error | |
Result = 10/Zero; | |
End-Proc; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment