N1 contains five records:N2 contains five records:0000033.32
0000041.47
0000100.01
0000050.12
0000000.02I would like to know how to compare these two files on a one to one basis and write the record with the greater variable into an Output file through Cobol program.000000044.470
000000109.230
000000300.000
000000020.010
000000050.990
My expeced output will look like this:000000044.470
000000109.230
000000300.000
0000050.12
000000050.990
Is there some good reason that you continue to refuse to post the data "in a file layout"? Initially, it appeared as though you had a single file with multiple numbers in it. CG posted numbers in 2 files and you commented on the format of them, but not about having 2 files.In a file layout , the numeric portion of the number is preceded by spaces and not zeros.
N1 contains five records:N2 contains five records:33.32
41.47
100.01
50.12
0.02I would like to know how to compare these two files on a one to one basis and write the record with the greater variable into an Output file through Cobol program.44.470
109.230
300.000
20.010
50.990
My expeced output will look like this:44.470
109.230
300.000
50.12
50.990
Or this:000000044.470
000000109.230
000000300.000
0000050.12
000000050.990