Updating an Individual Record’s Values
Understand how to update values of individual records within fixed-width data by calculating byte offsets and using substrReplace. Learn to manipulate specific fields efficiently by determining record and field positions in consistent-width datasets or variable width fields.
We'll cover the following...
We'll cover the following...
We use the substrReplace method to insert a decimal separator into a string of numbers. We can make further use of this method to actually update the value of an individual record. For example, we assume the following data string:
1 1200 5 1 2 3232 1
2 3 1600 10 3 4 62200 4
4 5 ...