Changing the file from horizontally to vertical
Posted: Tue Feb 10, 2009 2:16 pm
Hi all.
I have a file where the data is listed horizontally. Each row has a composite key, i.e., Key1 and key2 and the columns of data. The keys can be in the file 1 to 5 times. How can I list the data vertically one key followed by the repeated data?
Thanks in advance for any help
Key1 Key2 Fld1 Fld2 Fld3
001 00A 123 456 789
002 00B xxx yyy zzz
002 00B uuu vvv www
003 00Q ddd eee fff
001 00A 123 456 789
002 00B xxx yyy zzz uuu vvv www
003 00Q ddd eee fff
I have a file where the data is listed horizontally. Each row has a composite key, i.e., Key1 and key2 and the columns of data. The keys can be in the file 1 to 5 times. How can I list the data vertically one key followed by the repeated data?
Thanks in advance for any help
Key1 Key2 Fld1 Fld2 Fld3
001 00A 123 456 789
002 00B xxx yyy zzz
002 00B uuu vvv www
003 00Q ddd eee fff
001 00A 123 456 789
002 00B xxx yyy zzz uuu vvv www
003 00Q ddd eee fff