BROWSE KCSPEER.IDEDB2U.TBGPASTC.DATAFILE.RX2000 Line 0000000000 Col 001 080
Command ===> Scroll ===> CSR
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
----+----F----+----F----+----F----+----F----+----F----+----F----+----F----+----F
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
------------------------------------------------------------------------------
********************************* Top of Data **********************************
------------------------------------------------------------------------------
SDUMMY STATE-MS ..my test
4444ECEDDE4EECEC6DE4444444444444444444444019A4A8AA444444444444444444444444444444
00002444480231350420000000000000000000000084803523000000000000000000000000000000
The BUILD parameters under IFTHEN=(…) do not create NEW records on output.
All field changes are re-BUILT within the same record, whether HIT=NEXT is used, or not.
The only way to create multiple output records from a single input is: using BUILD=(…,/,...,/,...,/,...) in OUTFIL statement
I am trying to get same record with different "TEXT" when a difference exists. Multiple records one for each IFTHEN=WHEN= match.
Even if one desired to help you, it is impossible to do with the post like this:
1) The given example is not working due to errors in used DDNAMEs, and others...
2) The samples of "input data" are not provided in full
3) The given code gives absolutely no clue: what is the original idea of comparison of unknown, unexplained, and not presented input fields???
4) While having no clear understanding of SORT tools functionality,
it does make sense NOT to practice on real, big and messy, input data,
but instead first to run a SIMPLIFIED test, with simple test data,
preferably truncated to 80 bytes under //INDD1 DD * , with all involved
fields in clear character format. Later, when good understanding of basic
functionality has been obtained, - to rewrite the test code using real
production data formats, etc.
I don't want to verify the conditions; just copied from original post. Only to demonstrate the approach: how to combine various lines in any combination.
Multiple bugs in the original post are not fixed as well. Syntax errors, DD statements missing, etc.