View previous topic :: View next topic
|
Author |
Message |
k_kirru Currently Banned New User
Joined: 14 Sep 2005 Posts: 16
|
|
|
|
Hi,
I have one sequential file, here I need to change the columns to rows and rows to columns, below is my requirement.
Seq File:
ABC BCD CDE DEF EFG FGH GHI ......
123 234 345 456 567 678 789 .....
Now output file should be:
ABC 123
BCD 234
CDE 345
DEF 456
EFG 567
FGH 678
GHI 789
. .
. .
. .
Can anyone suggest me how to get this in COBOL/EZT/REXX/FOCUS...
if so can you give me the sample code.
Thanks in advance...
Regards,
Kiran |
|
Back to top |
|
|
ashimer
Active Member
Joined: 13 Feb 2004 Posts: 551 Location: Bangalore
|
|
|
|
In COBOL read the first record , store in an array, one array occurence will be your one col , read the second record into a second array ... combine the corresponding array occurences and write into the output file as a single record ... |
|
Back to top |
|
|
|