• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 594
  • Last Modified:

How can I read more than 1024 bytes from a data area?

I have a big text that I need to read from a data area I created. The text goes over 1024 bytes, and the program is only reading 1024. Isthere any way to do this?
0
spr-electrolux
Asked:
spr-electrolux
  • 2
  • 2
1 Solution
 
tliottaCommented:
Can you tell us something about the program? E.g., what language is it? Is it OPM or ILE? How is it reading the data area now?

And something about that data area might also be useful, in particular, how is it defined?

Tom
0
 
Gary PattersonVP Technology / Senior Consultant Commented:
Please post your code!

General-purpose character data areas have a size limit of 2000 characters.  How you retrieve it depends on your programming language.

The special local data area (LDA) has a limit of 1024 bytes - is there any chance that you are trying to read more than 1024 bytes from the LDA?

- Gary Patterson
0
 
spr-electroluxAuthor Commented:
I used a data structure to read the Data area, and the problem was resolved. Thank you for your attention.
0
 
tliottaCommented:
I don't mind closing the question, but the reason ( The limitation was the field size. ) does not fit with the statement of the problem. If the problem is closed, it probably should also be deleted. In addition to Gary's suggestion about the size limit for a *LDA, it's also possible that debug was only displaying the first 1024 bytes -- that's the default debug length limit.

But fields aren't limited to 1024 bytes, so that doesn't seem to fit.

Tom
0
 
spr-electroluxAuthor Commented:
The limitation was the field size.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Managing Security & Risk at the Speed of Business

Gartner Research VP, Neil McDonald & AlgoSec CTO, Prof. Avishai Wool, discuss the business-driven approach to automated security policy management, its benefits and how to align security policy management with business processes to address today's security challenges.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now