guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi there,
I am just providing u psuedo code
1)Initialize working storage variable
2)OPEN the i/p & o/p file
2)READ the file until End of file
PROCESS the record
3)ClOSE the files
PROCESS the record
IF key of the record = WS-KEY
Write record in o/p file
Else
move the key to WS-KEY
END-IF. |
|