Is it possible to dynamically change the record length of a sequential file and revert back to the same record length? I can elaborate my question a little bit..
Suppose i create a sequential file with record length 50.Now I want to insert a new field.Now my question is "Is it possible to extend the record length when i want 2 insert a field and switch back to the same record length(ie 50) if i dont want to insert a field?"
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
As has been posted - yes you can.
Any program that is going to read the file will need to know which record format it has read (often accomplished by using a "record code" that is put in the record).
You might want to post some of your data and how you want things to work for your situation - the "switch back" may present some "opportunities" depending on just how this is defined. If you can show some original records and then what will happen with them, it will be more clear.