Solved

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

Posted on 2012-03-12
5
504 Views
Last Modified: 2012-08-14
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
Comment
Question by:spr-electrolux
  • 2
  • 2
5 Comments
 
LVL 27

Expert Comment

by:tliotta
ID: 37711905
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
 
LVL 34

Expert Comment

by:Gary Patterson
ID: 37712066
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
 

Accepted Solution

by:
spr-electrolux earned 0 total points
ID: 37758985
I used a data structure to read the Data area, and the problem was resolved. Thank you for your attention.
0
 
LVL 27

Expert Comment

by:tliotta
ID: 37767975
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
 

Author Closing Comment

by:spr-electrolux
ID: 37775756
The limitation was the field size.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Convert websphere application server default chained Certificates from 1024 to 2048 keysize or higher size and also you can change signatureAlgorithm . Please make sure Websphere Application Server fixpack 7.0.0.23 or Above. The following steps a…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now