Few things you need to know about COBOL-arrays. Arrays have multiple benefits. While reading an i/p file, in batch process, the only way you can store data internally is in arrays. So, the data can be used for processing within the program.

COBOL Arrays

Important points are:

Point1:

01 Array-example

     02 Table-1 occurs n times

            03 Field-1    pic x(2)

            03 Field-2  pic x(3)

Here the ‘n’ times is any value from ‘1’ to ‘32767’

Point 2:

We know arrays are fixed length, variable length. While working with DB2, the array must handle BLOB and CLOB (Binary large object and Char Large object)

You can see the syntax from IBM site here.

LATEST POSTS

Azure Data Factory (ADF): The Complete Beginner-Friendly Guide (2026 Edition)

Azure Data Factory (ADF) is Microsoft’s fully managed, cloud-based data integration and orchestration service. It helps you collect data from different sources, transform it at scale, and load it into your preferred analytics or storage systems. Whether you are working with Azure SQL, on-premises databases, SaaS applications, or big-data systems, ADF gives you a unified…

Something went wrong. Please refresh the page and/or try again.

One response

  1. […] Related: COBOL – 2 things you may not known about Arrays […]

    Like