Author: nartcr
Subject: ICETOOL/SYNCSORT - SYSPRINT output
Posted: Wed Oct 05, 2016 10:46 pm (GMT 5.5)
I have an input file with length 133. Basically output from SPUFI. I have a specific requirement to run it through SORT program,
input
What I am trying to achieve is to merge the records with same keys in a single line.
Keys technically would be 1 2 3 4 5 etc. They can continue to grow upto million. Across different pages, keys column be different column. Basically, this is DSNTEP2/DSNTEP4 output from querying 30-40 DB2 tables.
Sample output for 1 record would be:
Have anyone tried to create output like this before?
Subject: ICETOOL/SYNCSORT - SYSPRINT output
Posted: Wed Oct 05, 2016 10:46 pm (GMT 5.5)
I have an input file with length 133. Basically output from SPUFI. I have a specific requirement to run it through SORT program,
input
Code: |
PAGE 17 ------------------------------------------------------------------------- | ABCDE_ABCD_WARNING_FLAG | ABCD_CATEGORY | ABCDEFGHIJ_TYPE | ABC123 | AU ------------------------------------------------------------------------- 1_| N | COLLABCDE | ABCDE | N | Y 2_| N | COLLABCDE | ABCDE | N | Y 3_| N | COLLABCDE | ABCDE | N | Y 4_| N | COMABCDEABCDE | ABCDE | Y | Y 5_| N | COLLABCDE | ABCDE | N | N |
Code: |
PAGE 20 -------------------------------------------------------------- | PAYMENT_DATE | BUSINESS_FACILITY_ID | BUSINESS_FA -------------------------------------------------------------- 1_| 2013-11-28 | 123123 | B.E.1. ABCDESION 2_| 2013-11-28 | 12312 | SDDRCAN ABCDEDION CENT 3_| 2013-12-12 | 123123 | TEST TEST TEST SALES L 4_| 2013-12-12 | 123123 | TEST'S TEST1 & TESTTES 5_| 2013-12-12 | 123123 | NEW TECHNOLOGY |
What I am trying to achieve is to merge the records with same keys in a single line.
Keys technically would be 1 2 3 4 5 etc. They can continue to grow upto million. Across different pages, keys column be different column. Basically, this is DSNTEP2/DSNTEP4 output from querying 30-40 DB2 tables.
Sample output for 1 record would be:
Code: |
1_| N | COLLABCDE | ABCDE | N | Y| 2013-11-28 | 123123 | B.E.1. ABCDESION |
Have anyone tried to create output like this before?