Link to home
Start Free TrialLog in
Avatar of Oramcle
Oramcle

asked on

SFLRCDNBR IBM Field Length restriction

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
ASKER CERTIFIED SOLUTION
Avatar of Gary Patterson, CISSP
Gary Patterson, CISSP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Member_2_276102
Member_2_276102

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
Avatar of Oramcle

ASKER

As always Gary Rocks.
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