Example 1. To cause an abend with user abend 1004:
77 abend-code pic 9(08) comp. 77 abend-type pic 9(08) comp. 77 abend-sys pic 9(08) comp value 1. 77 abend-user pic 9(08) comp value 0. ... Move 1004 to abend-code call 'MFJZABND' using abend-user abend-code
Example 2. To cause an abend with system abend SDED (note that system abend codes are always hex not decimal):
77 abend-code pic 9(08) comp. 77 abend-type pic 9(08) comp. 77 abend-sys pic 9(08) comp value 1. 77 abend-user pic 9(08) comp value 0. ... Move h’ded’ to abend-code call 'MFJZABND' using abend-sys abend-code