COBOL - Simple Insertion Editing
This type of editing is valid for alphanumeric-edited, numeric-edited, and DBCS items.
Each insertion symbol is counted in the size of the item, and represents the position within the item where the equivalent character is to be inserted.
For edited DBCS items, each insertion symbol (B) is counted in the size of the item and represents the position within the item where the DBCS space is to be inserted.
For example:
PICTURE | Value of data | Edited result |
X(10)/XX | ALPHANUMER01 | ALPHANUMER/01 |
X(5)BX(7) | ALPHANUMERIC | ALPHA NUMERIC |
99,B999,B000 | 1234 | 01,b234,b000 |
99,999 | 12345 | 12,345 |
GGBBGG | D1D2D3D4 | D1D2bbbbD3D4 |
Note: The symbol b represents a space.
If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!