IBM Extension

Format 4

This format describes Boolean data. Boolean data items are items that are limited to a value of 1 or 0.
Note: When you use indicators in a COBOL program, you must describe them as Boolean data items using the data description entry for Boolean data.

Data Description Entry - Format 4 - Boolean Data

Read syntax diagramSkip visual syntax diagramlevel-numberdata-name-1FILLER1REDEFINESdata-name-2LIKEdata-name-3ISTYPEDEFISEXTERNALISGLOBAL2JUSTJUSTIFIEDRIGHTOCCURS clause - Format 1OCCURS clause - Format 2INDICATORINDICATORSINDICinteger-3PICTUREPICIS1VALUEISboolean-literal2SYNCHRONIZEDSYNCLEFTRIGHTTYPEtype-name-1USAGEISDISPLAY.
OCCURS clause - Format 1
Read syntax diagramSkip visual syntax diagramOCCURSinteger-2TIMESINDEXEDBYindex-name-1
OCCURS clause - Format 2
Read syntax diagramSkip visual syntax diagramOCCURSinteger-1TOinteger-2TIMESDEPENDINGONdata-name-4INDEXEDBYindex-name-1
Notes:
  • 1 Cannot be used with the TYPEDEF clause.
  • 2 Syntax-checked only

The special considerations for the clauses used with the Boolean data follow. All other rules for clauses are the same as those for other data.

End of IBM Extension