COBOL Composite Field Handling for Varying Length Data

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

COBOL language does not support varying length attributes for character and graphic fields, requiring application programmers to maintain two separate subfields, which complicates data processing and storage.

Innovation Solution

Treat the length subfield and data subfield as a single composite field during processing, automatically setting the length subfield to the appropriate value, allowing varying length character and graphic data items to be defined and processed as one field within COBOL record descriptions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If COBOL language is used for data processing, then programming simplicity and language portability are improved, but the ability to handle varying length fields is lost requiring complex workarounds

Engineering Contradiction:
Improvevarying length field supportVSAvoiddata structure complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The data field is segmented into two distinct COBOL data items: a first data item for the varying length field and a second data item for the length indicator. This segmentation allows the system to represent varying length fields within COBOL's fixed structure constraints, resolving the contradiction between language simplicity and varying length support.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The length indicator field acts as an intermediary between the varying length data field and the COBOL processing system. This intermediary stores the actual length information, enabling the COBOL compiler and runtime to correctly interpret and process varying length fields without requiring language-level support for this feature.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Ease of operation

If two separate subfields are used to represent varying length data, then COBOL compatibility is maintained, but data processing complexity and manual maintenance burden increase

Engineering Contradiction:
Improvedata processing easeVSAvoidfield maintenance complexity
Core Design Contradiction:
Ease of operationVSDevice complexity

Solution Approach 1:

The system implements automatic feedback mechanisms where the length indicator is automatically updated based on the actual content of the varying length field. During data extraction, loading, or modification operations, the system automatically calculates and updates the length indicator, eliminating manual maintenance requirements and reducing processing complexity.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The data structure performs self-service by automatically maintaining the relationship between the varying length field and its length indicator. The system automatically updates the length indicator whenever the field content changes, freeing programmers from manual maintenance and reducing operational complexity.

Inventive Principle:
Principle #25Self-service

3Productivity

If automatic length tracking is implemented, then manual maintenance burden is reduced, but processing overhead increases

Engineering Contradiction:
Improvedata processing productivityVSAvoidprocessing overhead
Core Design Contradiction:
ProductivityVSUse of energy by moving object

Solution Approach 1:

The length indicator is calculated and stored in advance during data extraction, loading, or insertion operations. By performing this action preliminarily, the system avoids repeated length calculations during subsequent processing operations, reducing overall processing overhead while maintaining automatic length tracking.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS7730471B2Method and system for processing COBOL language record description entries that specify data items that include a varying length characteristic and computer readable storage medium for storing instructions for performing the method
Publication Date: 2010.06.01 BMC SOFTWARE INC
  • US7730471B2 patent drawing
  • US7730471B2 patent drawing
  • US7730471B2 patent drawing

AI summary

A method, system and computer readable storage medium for storing instructions for processing COBOL language record description entries that specify data items that include a varying length characteristic are provided. The method includes providing COBOL language record description entries that specify data items that include a varying length characteristic and a plurality of subfields including a length subfield. The method further includes processing the COBOL language record description entries to create at least one of a compiled specification and compiled data. The subfields are treated as a single composite field, and the length subfield is automatically set to the appropriate corresponding value during processing.