Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COBOL maximum record lengths for variable records

Status
Not open for further replies.

cs31

Programmer
Feb 28, 2003
4
0
0
US
Can anyone offer a solution that lets me store variable length records that are greater than 32K?
 
OS/390.
Trying to store an alphanumeric record that is > 32K
 
Where are you trying to store it? Working-Storeage? File? Linkage?
 
Hi rabbit,
I am trying to write it in a file.
I don't know if there is a creative way to have an LRECL that is > 32K or store the data so it can be read as one record.
 
I don't think you can, using QSAM. The record length field is only 15 bits long. Using VSAM, maybe.
 
Can we try this logic?

File1
=====
Key field + first portion of the record

File2
=====
Key field + Remaining portion of the record

During write:
=============
The record to be split into 2; First 32K to be written to first file (Including key); second portion prefixed with the same key value - to be written to the second file.

During read:
============
Both the files to be read and records concatenated to form a single work record before processing.

 
Hi CS,

What do you want to do with the data? Try to give us a blow by blow of how the data will flow and be manipulated during every step of its life.

If you can be specific and descriptive, we may be able to derive an alternative solution for you.

Regards, Jack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top