Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 8500

COBOL Programming :: RE: Need help in reading and validating a multiline file

$
0
0
Author: Abid Hasan
Posted: Tue Apr 18, 2017 11:22 pm (GMT 5.5)

Hello Rahul/Arun,

You guys are spot on with the approaches involving DFSORT, the only problem that I could think of at the time of posting was at least 2 passes of data, again the reason being - first pass is required to traverse through the data once and identify the groups and pad an identifier. Rest of it is an algorithm to play with this and segregate.

Mr. Sorichetti,

Aah, you got me there icon_smile.gif a much better approach indeed. I didn't like the solution I'd posted because of the 'undefined/large' (going by what TS had posted initially) size of the table. The revisit to the table is a costly affair, but would have been quick since all operation would be in-memory. But your solution solves it in a much better way.
_________________
Thanks.


Viewing all articles
Browse latest Browse all 8500

Trending Articles