When Task Builder uses a COBOL copybook that contains a REDEFINES clause to create a task, the redefined field and the redefining fields are made available to use as input to, or output from, your task. However, when you are adding fields as input or output, you cannot use both the redefined field and the fields that redefine it you can add the redefined field, or one or more of the redefining fields, but not both.
For example, given the following partial COBOL copybook, you could select either field A, or fields B-1 and/or B-2, but not field A and fields B1 and/or B2:
05 A PIC X(6). 05 B REDEFINES A. 10 B-1 PIC X(2). 10 B-2 PIC X(4).
When creating a new task in Task Builder, field B would be labeled "B_REDEF_A" in the field's tree. Adding field A to the tree of input fields and then attempting to add fields B_1 or B_2 would cause a warning dialog box to appear. Similarly, adding field B_1 and/or B_2 and then attempting to add field A would also cause a warning dialog box to appear.
![]() |
|
![]() |
Task Builder for IMS Help Links |
![]() |
About COBOL Copybooks |
![]() |
Creating a Task Definition |
![]() |
Properties of Input and Output Fields |
![]() |