问题 1
How do you handle errors in COBOL programs?
Errors in COBOL programs are often handled using the ON EXCEPTION clause or the use of condition names. This allows for the graceful handling of errors.
Example:
READ FILE-1 INTO WS-RECORD ON EXCEPTION
DISPLAY 'Error reading file'
END-READ.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗?
添加评论
查看评论