Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何比较 Cobol 中的两个文件,两个文件都有重复记录。any1 可以给出伪代码。代码必须在重复记录条件下工作
我不确定您到底在追求什么(例如,您希望从比较中报告什么),但一个想法可能是按如下方式进行:
在一个文件的 EOF 上,您需要检查剩余文件中的尾随唯一记录,这些记录可能在也可能不在 EOF。