The EDIT keyword changes data in a text‑type record.
From-data and to-data can be unequal in length.
When the length of the to-data is longer than the length of the from-data, the non-blank characters to the right of the from-data are shifted right. Repeating space characters, x'40', anywhere to the right of the from-data, are removed, in order to make room for the longer length. Shifted data may be lost if the record length does not allow for expansion.
When the length of the to-data is shorter than the length of the from-data, no shifting takes place. Blank characters, x'40', are inserted after the changed data to make up the difference between the to-data's and from-data's length.
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|