Hello,
In conjunction to what Mr. Sample has stated about XDC command, you can also used SDSF batch program (EXEC PGM=SDSF) to capture the SPOOL data and route it to a dataset. The problem with the statement: 'is any option in SDSF to compare the sysouts', is that SYSOUT/or a QSAM DS is written sequentially top-down, once the write is complete, the program will not know what has been written unless programmer holds this data is place.
ramkumar1992sp wrote:...I would need to compare between 2 such 320K output lines. ...
Does this mean that there are 2 lines out of 320k lines in this SYSOUT, which are required to be compared with each other?
If yes, and if they always occur at the same respective rows after every run, SDSF batch program can extract them to two different datasets which can be compared, else a complete dump will have to be taken and the data will have to be segregated prior comparison.
OR, if you can modify the program such that these 2 lines can be written to the same line (with a unique identifier to identify this row), then without doing extra work DFSORT can be used with INCLUDE condition to compare the columns containing data from line-1 with data from line-2. IMO, the more complex task here is to get these 'lines' segregated such that a comparison can be done.