TSO-ISPF JCL COBOL VSAM DB2 CICS Tools Articles Job Portal Forum Quiz Interview Q&A

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:

PICTUREValue of dataEdited result
X(10)/XXALPHANUMER01ALPHANUMER/01
X(5)BX(7)ALPHANUMERICALPHA NUMERIC
99,B999,B000123401,b234,b000
99,9991234512,345
GGBBGGD1D2D3D4D1D2bbbbD3D4

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!

Are you looking for Job Change? Job Portal