拒绝原因 [英] Abend Causing Line

查看:161
本文介绍了拒绝原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么办法可以从偏移量(如$ code> offset + 00007D0A at address 1515CD0A )中找到导致异常(如SO4C)的确切行号,该假脱机带有错误消息。

Is there any way that we can find the exact line number that causes an abend ( like SO4C) from the Offset(like offset +00007D0A at address 1515CD0A) given in the spool with the error message.?

推荐答案

如果您的程序使用选项OFFSET,NOLIST编译,则会在输出列表中列出动词/行号其中包含从程序开始的偏移量。列表上的行号最接近的偏移量,但小于或等于abend中报告的offset,就是您要查找的位置。

If your program is compiled with options OFFSET,NOLIST, you will have a list of verbs/line numbers in the output listing which contain the "offset" from the start of the program. The line number on the the listing which has the closest offset, but less than or equal to, the "offset" reported in the abend, is where you want to look.

如果您使用NOOFFSET,LIST,您将在编译列表中获得生成的汇编程序,并且您的abendoffset应与所生成的指令之一的offset完全匹配,您应该能够轻松识别COBOL来源线,它是列出实际机器说明之前的行号的第一个动词。

If you use NOOFFSET,LIST, you will get the "generated assembler" in your compile listing, and your abend "offset" should match exactly to the "offset" of one of the generated instructions, and you should be able to easily identify the COBOL source line from that, it is the first verb with line number before the actual machine instruction listed.

请记住,在极少数情况下,设法覆盖程序代码,这最终导致了一个异常,你必须更努力地工作,但是对于一个普通的而言,这是非常简单的。

Bear in mind that in the rare cases in which you've managed to overwrite program code and that has eventually caused an abend you'll have to work harder, but for an "ordinary" abend it is quite straightforward.

如果你使用编译器选项NOLIST,NOOFFSET,那么你将不会有任何线索。使用其中一个选项重新运行编译。除非程序大小相同,否则再次运行撤销作业

If you use compiler options NOLIST,NOOFFSET, then you will have no clue. Re-run the compile with one of the options set. Unless the program sizes are identical, run the abending job again as well

如果使用LIST,OFFSET,编译器将产生诊断消息,您将必须选择一个有效的选项。 LIST和OFFSET是互斥的。

If you use LIST,OFFSET, the compiler will produce a diagnostic message, and you will have to choose one of the valid options. LIST and OFFSET are mutually exclusive.

这篇关于拒绝原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆