Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
When converting from assembler to cobol, it is not a good proctice to try to convert line by line. . .
A far better approach is to understand what business process is provided by the assembler code and write cobol code that provides the same functionality. Many things in assembler do not have a 1-to-1 equivelent in cobol. The part of the assembler code that requires the best understanding is the implementation of business rules - not "housekeeping" and file definition/access.
Both programs should be able to read the input and produce the exact same output.