COBOL Arrays: Two Things You Need to Know

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.

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

30 SQL Practice Queries with Solutions — Run Them Live

Practice 30 SQL queries with solutions, from SELECT and JOINs to subqueries and window functions. Run SQL queries live in an interactive SQL Playground.

Supercharge Your Database Skills: Try Our New Interactive SQL Plugin!

Struggling with database queries? Explore our new interactive SQL plugin to write, test, and master SQL directly in your browser. Try the live demo now!

How to Count Spark Stages by Sight and Optimize Shuffles

Want to predict execution stages before running a job? Learn how to count Spark stages by sight with code breakdowns, shuffle rules, and optimization traps.

Databricks Cluster Min & Max: How to Find and Right-Size

Learn how to find and audit Min and Max worker limits in Databricks, track real cluster usage via system tables, and prevent runaway compute costs.

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

Discover more from Srinimf

Subscribe now to keep reading and get access to the full archive.

Continue reading