Solved

SFLRCDNBR IBM Field Length restriction

Posted on 2013-11-17
4
1,066 Views
Last Modified: 2013-11-18
I am using SFLRCDNBR  on a subfile which is working fine, but when i hit 10000 record the pgm is erroring because of its field Length Issue.


00080A            DSPREC         4S 0B  4 12SFLRCDNBR(CURSOR)

Open in new window


How can i overidr this issue.

Thanks You all
Orm
0
Comment
Question by:Oramcle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 35

Accepted Solution

by:
Gary Patterson earned 500 total points
ID: 39654992
Subfiles have a 9999 record size limit.  Either modify the program to only load 9999 max or change design to a page at a time subfile.  Terrible for performance to load so many at once anyway.
0
 
LVL 27

Expert Comment

by:tliotta
ID: 39655125
The basic idea is that no user should be expected to have to scroll through 500 screens to get to a subfile record, so there shouldn't be a need for as many as 9999 subfile records. (A subfile with 20 rows per page needs 500 pages for 10000 records.)

The limit is never likely to be increased by IBM, so Gary's recommended page-at-a-time subfile style is good whenever more than a couple hundred subfile records are expected.

Tom
0
 

Author Closing Comment

by:Oramcle
ID: 39656162
As always Gary Rocks.
0
 
LVL 35

Expert Comment

by:Gary Patterson
ID: 39656582
I don't write much interactive green-screen code any more, but when I did, I had gotten away from "all at once" subfiles completely.  

I just had a good page-at-a-time program template that I used whenever I needed a subfile program.

You can find the same template in Kevin Vandever's book "Subfiles in RPG IV : Rules, Examples, Techniques, and Other Cool Stuff".  Kevin also recently released an updated version of the book called "Subfiles in Free-Format RPG: Rules, Examples, Techniques, and Other Cool Stuff".  I also used Kevin's book as a textbook when I taught subfile programming - it really is a great resource.

Both are available from the MC Press Bookstore:  www.mc-store.com

Disclaimer:  Kevin and I worked together for several years - but I don't get paid in any way for selling his book.

- Gary Patterson
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Why do some people recommend buying business VoIP from an ISP? What are the benefits to my company? What are the costs?
First of all let me say that the only language that I speak is English, but in answering questions here I often come across people whose English skills are not the best and I’d like to be able to communicate better with them, and the following descr…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Suggested Courses

624 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