已经是连着第二次犯这个错误了,上次没有记录,今天又发生了,而且忘记了错误原因~所以今天还是决定记下来。
OC4错误
CEE3204S The system detected a protection exception (System Completion Code=0C4)
From compile unit SM0300 at entry point SM0300 at compile unit offset +
address 19F5150C.
一直以为是Move语句哪里错了,变量改了又改,突然想起去看一下打印的文件状态~~~
96错误~~~查错误代码,原来是对于Open的文件,没有通过DD语句指定输入信息。
晚上再次犯这个错误。
调了很久~~忘记查看文件状态。查看发现是90错误,Google了半天,提示可能是DD语句有问题,检查了10遍DDNAME,Select语句,都没问题,最后………………突然发现DSNNAME的HLQ写错了,光顾着看Member滴名字。。。
For VSAM file: An OPEN statement with the OUTPUT phrase was attempted, or
an OPEN statement with the I-O or EXTEND phrase was attempted for an
optional file, but no DD statement was specified for the file.
For QSAM file: An OPEN statement with the OUTPUT phrase was attempted, or
an OPEN statement with the I-O or EXTEND phrase was attempted for an
optional file, but no DD statement was specified for the file and the
CBLQDA(OFF) run-time option was specified.
结论:出现这个错误很可能是文件打开不正常导致的。