Posted: Tue Mar 20, 2007 5:24 pm Post subject: Switch position of the record in the file
I have a file with the VB. Is it possible by using any Utility to move the last record to the first record position?
For Example:
Input file:
111111
222222
3333333333
.................
Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
Posted: Tue Mar 20, 2007 5:51 pm Post subject:
With the example you show, you could just sort the records on the key and the 0 record would be first followed by the 1, 2 and 3 records. Are the keys really in that order by key? Or are they not necessarily in order? Is there anything unique about the last record (for example, it has 0 in postion 1) other than it being the last record? _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
I probably didn't show the correct example. There is no key in the record, i just need to make the last record in the file to be the first record. Only the last record should be effected. the sort is not required.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum