Okay. I have now managed to create 1 output file from an Informix database. Here is some example data:
07963213829;2616007;04;MPRC - WIP ;2004-01-15 17:01;Y;A/P SE0086 FLEXI CONN
; ; ; 2;351884002137232 ; ;;1; ;1; ; ; ; ;1; ; ;B C/VR
07963213829;2616007;04;MPRC - WIP ;2004-01-15 17:01;Y;REPLACED FLEXI/OUTER LENS/ BATTERY
; ; ; 2;351884002137232 ; ;;1; ;1; ; ; ; ;1; ; ;B C/VR
07963213829;2616007;04;MPRC - WIP ;2004-01-15 17:01;Y;TESTED TO SPEC
; ; ; 2;351884002137232 ; ;;1; ;1; ; ; ; ;1; ; ;B C/VR
For example the second field (

will be an identifier number. For example: 2616007.
In the 5th field is a comment. Example: TESTED TO SPEC.
As you will notice I have duplicated lines with the same identifier number but with different comments in the 5th field.
What I need to is to identify the second field number. And from that insert any other 5th fields onto the same line and create 1 line with all the fields and a combined text of the 5th field from the duplicated lines.
For example I am after this from it:
07963213829;2616007;04;MPRC - WIP ;2004-01-15 17:01;Y;A/P SE0086 FLEXI CONN REPLACED FLEXI/OUTER LENS/ BATTERY TESTED TO SPEC ; ; ; 2;351884002137232 ; ;;1; ;1; ; ; ; ;1; ; ;B C/VR
I hope that makes sense?
Thanks again.
( "To become Wise, first you must ask Questions"
