Solved

SFLRCDNBR IBM Field Length restriction

Posted on 2013-11-17
4
976 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
  • 2
4 Comments
 
LVL 34

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 34

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

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

Suggested Solutions

Note: This is the second blog post in a series on email clearinghouses (https://www.xmatters.com/alert-management/blog-email-has-failed-us?utm_campaign=70138000000ydLoAAI&utm_source=exex&utm_medium=article&utm_content=blog-post).   Every month t…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

896 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

12 Experts available now in Live!

Get 1:1 Help Now