if the file have billions lines, it is not intersting to read all th file as you shown when you procees all the rows...
plan bullshit ...
if You need to process all the rows You need to read all of them
( why is not wise to process large files with rexx has been debated to death )
and that' exactly what You are doing when You
"EXECIO * DISKR IN (FINIS STEM DT."
sorry to tell you that but your code is a litle bit heavy..
it looks like pretty basic to me
execio
test the return code
1st alternative to process the whole stem
2nd alternative to process only selected rows
If i use my code (i found mine more simple)
your code You choices ...
but frankly - performance wise - Your code sucks
here again the technical reasons why ...
no reason to use stems PTL. TEXT. TX.
the PTL and TX comparisons can be done without using a intermediate variable
rexx will duplicate in the queue the content of the TEXT stem
but ... if You are happy everybody is happy
