I have a requirement where I have to concatenate the column value of say N records and create one record out of it. For eg in the following sample data of 129 records, I have to combine the column JMTXLN based on the columns JMKCOO,JMDOCO,JMDCTO. This means my output will contain only 4 records(in this case) but the column JMTXLN will be concatenated into one column. So the first 32 records will make a single record and the column values of JMTXLN will be concatenated into single row :
JMKCOO JMDOCO JMDCTO JMLNID JMPNTC JMLINS JMTXLN
00054 1 OO 0 Y 100 ************************************************************
00054 1 OO 0 Y 200 Supplier should not invoice for receipts against this
00054 1 OO 0 Y 300 Blanket Order, Payment for material received will be made
00054 1 OO 0 Y 400 against Release Orders only.
00054 1 OO 0 Y 500 Parts produced for this Blanket Order must comply with the
00054 1 OO 0 Y 600 CompanyX Supplier Quality Standard.
00054 1 OO 0 Y 700 Parts/Material shipped on this Blanket Order must be in
00054 1 OO 0 Y 800 compliance with the CompanyX Supplier and Interplant
00054 1 OO 0 Y 900 Packaging and Handling Guide.
00054 1 OO 0 Y 1000 In the event CompanyX cancels a purchase order or any
00054 1 OO 0 Y 1100 portion thereof for industry non-standard material unique
00054 1 OO 0 Y 1200 to CompanyX requirements, Supplier shall be entitled, subject
00054 1 OO 0 Y 1300 to the maximum stated below, to be reimbursed by CompanyX for
00054 1 OO 0 Y 1400 actual costs incurred by Supplier as a direct result of such
00054 1 OO 0 Y 1500 cancellation which are not recoverable by Supplier by one or
00054 1 OO 0 Y 1600 more of the following:
00054 1 OO 0 Y 1700 a) Supplier's cancellation of material open purchase
00054 1 OO 0 Y 1800 order(s)
00054 1 OO 0 Y 1900 b) Supplier's shipment of the material affected to other
00054 1 OO 0 Y 2000 parties within a reasonable time, or
00054 1 OO 0 Y 2100 c) The exercise by Supplier, in a commercially reasonable
00054 1 OO 0 Y 2200 manner, of all other available mitigation measures.
00054 1 OO 0 Y 2300 Notwithstanding the foregoing, in no event will CompanyX's
00054 1 OO 0 Y 2400 liability for such purchase order cancellations exceed the
00054 1 OO 0 Y 2500 sum of (1) Supplier's then current agreed upon purchase
00054 1 OO 0 Y 2600 price of the SDC quantity recommended by CompanyX based on
00054 1 OO 0 Y 2700 Supplier's response time, plus (2) Supplier's actual cost of
00054 1 OO 0 Y 2800 raw materials and/or parts purchased by Supplier within
00054 1 OO 0 Y 2900 Supplier's established replenishment lead time to meet
00054 1 OO 0 Y 3000 CompanyX requirements as such requirements are set forth
00054 1 OO 0 Y 3100 in the most recent forcast received by Supplier.
00054 1 OO 0 Y 3200 **********************************************************
00054 2 YA 0 Y 100 ************************************************************
00054 2 YA 0 Y 200 Supplier should not invoice for receipts against this
00054 2 YA 0 Y 300 Blanket Order, Payment for material received will be made
00054 2 YA 0 Y 400 against Release Orders only.
00054 2 YA 0 Y 500 Parts produced for this Blanket Order must comply with the
00054 2 YA 0 Y 600 CompanyX Supplier Quality Standard.
00054 2 YA 0 Y 700 Parts/Material shipped on this Blanket Order must be in
00054 2 YA 0 Y 800 compliance with the CompanyX Supplier and Interplant
00054 2 YA 0 Y 900 Packaging and Handling Guide.
00054 2 YA 0 Y 1000 In the event CompanyX cancels a purchase order or any
00054 2 YA 0 Y 1100 portion thereof for industry non-standard material unique
00054 2 YA 0 Y 1200 to CompanyX requirements, Supplier shall be entitled, subject
00054 2 YA 0 Y 1300 to the maximum stated below, to be reimbursed by CompanyX for
00054 2 YA 0 Y 1400 actual costs incurred by Supplier as a direct result of such
00054 2 YA 0 Y 1500 cancellation which are not recoverable by Supplier by one or
00054 2 YA 0 Y 1600 more of the following:
00054 2 YA 0 Y 1700 a) Supplier's cancellation of material open purchase
00054 2 YA 0 Y 1800 order(s)
00054 2 YA 0 Y 1900 b) Supplier's shipment of the material affected to other
00054 2 YA 0 Y 2000 parties within a reasonable time, or
00054 2 YA 0 Y 2100 c) The exercise by Supplier, in a commercially reasonable
00054 2 YA 0 Y 2200 manner, of all other available mitigation measures.
00054 2 YA 0 Y 2300 Notwithstanding the foregoing, in no event will CompanyX's
00054 2 YA 0 Y 2400 liability for such purchase order cancellations exceed the
00054 2 YA 0 Y 2500 sum of (1) Supplier's then current agreed upon purchase
00054 2 YA 0 Y 2600 price of the SDC quantity recommended by CompanyX based on
00054 2 YA 0 Y 2700 Supplier's response time, plus (2) Supplier's actual cost of
00054 2 YA 0 Y 2800 raw materials and/or parts purchased by Supplier within
00054 2 YA 0 Y 2900 Supplier's established replenishment lead time to meet
00054 2 YA 0 Y 3000 CompanyX requirements as such requirements are set forth
00054 2 YA 0 Y 3100 in the most recent forcast received by Supplier.
00054 2 YA 0 Y 3200 **********************************************************
00054 2 YA 0 Y 3400 Key Tronic Corporation must invoice for a specific quantity.
00054 2159 OO 0 Y 100 ************************************************************
00054 2159 OO 0 Y 200 Supplier should not invoice for receipts against this
00054 2159 OO 0 Y 300 Blanket Order, Payment for material received will be made
00054 2159 OO 0 Y 400 against Release Orders only.
00054 2159 OO 0 Y 500 Parts produced for this Blanket Order must comply with the
00054 2159 OO 0 Y 600 CompanyX Supplier Quality Standard.
00054 2159 OO 0 Y 700 Parts/Material shipped on this Blanket Order must be in
00054 2159 OO 0 Y 800 compliance with the CompanyX Supplier and Interplant
00054 2159 OO 0 Y 900 Packaging and Handling Guide.
00054 2159 OO 0 Y 1000 In the event CompanyX cancels a purchase order or any
00054 2159 OO 0 Y 1100 portion thereof for industry non-standard material unique
00054 2159 OO 0 Y 1200 to CompanyX requirements, Supplier shall be entitled, subject
00054 2159 OO 0 Y 1300 to the maximum stated below, to be reimbursed by CompanyX for
00054 2159 OO 0 Y 1400 actual costs incurred by Supplier as a direct result of such
00054 2159 OO 0 Y 1500 cancellation which are not recoverable by Supplier by one or
00054 2159 OO 0 Y 1600 more of the following:
00054 2159 OO 0 Y 1700 a) Supplier's cancellation of material open purchase
00054 2159 OO 0 Y 1800 order(s)
00054 2159 OO 0 Y 1900 b) Supplier's shipment of the material affected to other
00054 2159 OO 0 Y 2000 parties within a reasonable time, or
00054 2159 OO 0 Y 2100 c) The exercise by Supplier, in a commercially reasonable
00054 2159 OO 0 Y 2200 manner, of all other available mitigation measures.
00054 2159 OO 0 Y 2300 Notwithstanding the foregoing, in no event will CompanyX's
00054 2159 OO 0 Y 2400 liability for such purchase order cancellations exceed the
00054 2159 OO 0 Y 2500 sum of (1) Supplier's then current agreed upon purchase
00054 2159 OO 0 Y 2600 price of the SDC quantity recommended by CompanyX based on
00054 2159 OO 0 Y 2700 Supplier's response time, plus (2) Supplier's actual cost of
00054 2159 OO 0 Y 2800 raw materials and/or parts purchased by Supplier within
00054 2159 OO 0 Y 2900 Supplier's established replenishment lead time to meet
00054 2159 OO 0 Y 3000 CompanyX requirements as such requirements are set forth
00054 2159 OO 0 Y 3100 in the most recent forcast received by Supplier.
00054 2159 OO 0 Y 3200 **********************************************************
00054 24000072 OO 0 Y 100 ************************************************************
00054 24000072 OO 0 Y 200 Supplier should not invoice for receipts against this
00054 24000072 OO 0 Y 300 Blanket Order, Payment for material received will be made
00054 24000072 OO 0 Y 400 against Release Orders only.
00054 24000072 OO 0 Y 500 Parts produced for this Blanket Order must comply with the
00054 24000072 OO 0 Y 600 CompanyX Supplier Quality Standard.
00054 24000072 OO 0 Y 700 Parts/Material shipped on this Blanket Order must be in
00054 24000072 OO 0 Y 800 compliance with the CompanyX Supplier and Interplant
00054 24000072 OO 0 Y 900 Packaging and Handling Guide.
00054 24000072 OO 0 Y 1000 In the event CompanyX cancels a purchase order or any
00054 24000072 OO 0 Y 1100 portion thereof for industry non-standard material unique
00054 24000072 OO 0 Y 1200 to CompanyX requirements, Supplier shall be entitled, subject
00054 24000072 OO 0 Y 1300 to the maximum stated below, to be reimbursed by CompanyX for
00054 24000072 OO 0 Y 1400 actual costs incurred by Supplier as a direct result of such
00054 24000072 OO 0 Y 1500 cancellation which are not recoverable by Supplier by one or
00054 24000072 OO 0 Y 1600 more of the following:
00054 24000072 OO 0 Y 1700 a) Supplier's cancellation of material open purchase
00054 24000072 OO 0 Y 1800 order(s)
00054 24000072 OO 0 Y 1900 b) Supplier's shipment of the material affected to other
00054 24000072 OO 0 Y 2000 parties within a reasonable time, or
00054 24000072 OO 0 Y 2100 c) The exercise by Supplier, in a commercially reasonable
00054 24000072 OO 0 Y 2200 manner, of all other available mitigation measures.
00054 24000072 OO 0 Y 2300 Notwithstanding the foregoing, in no event will CompanyX's
00054 24000072 OO 0 Y 2400 liability for such purchase order cancellations exceed the
00054 24000072 OO 0 Y 2500 sum of (1) Supplier's then current agreed upon purchase
00054 24000072 OO 0 Y 2600 price of the SDC quantity recommended by CompanyX based on
00054 24000072 OO 0 Y 2700 Supplier's response time, plus (2) Supplier's actual cost of
00054 24000072 OO 0 Y 2800 raw materials and/or parts purchased by Supplier within
00054 24000072 OO 0 Y 2900 Supplier's established replenishment lead time to meet
00054 24000072 OO 0 Y 3000 CompanyX requirements as such requirements are set forth
00054 24000072 OO 0 Y 3100 in the most recent forcast received by Supplier.
00054 24000072 OO 0 Y 3200 **********************************************************
The output should look like:
00054 1 OO 0 NULL NULL <Conbine_JMTXLN>
00054 2 YA 0 NULL NULL <Conbine_JMTXLN>
00054 2159 OO 0 NULL NULL <Conbine_JMTXLN>
00054 24000072 OO 0 NULL NULL <Conbine_JMTXLN>
Thanks in advance!
If any other information is required please respond.
![Smile :)](./images/smilies/icon_smile.gif)