subfile processing – Incorrect record number in subfile SFLRCDNBR or SFLSIZ field.

65 pts.
Tags:
AS/400 errors
AS/400 Subfiles
RPG
RPG Error Messages
Subfile Control Record
I am getting the above error -

this the dds specs

 A A R SUBDTB SFL

 A SUBPART 35A B 6 18

 

A R SUBCTLB SFLCTL(SUBDTB)

 

A*%%TS SD 20031114 134548 KAUSC REL-V5R2M0 5722-WDS

 

A SFLSIZ(0020)

 

A SFLPAG(0010)

 

A ROLLUP

 

A ROLLDOWN

 

A 60 SFLDSPCTL

 

A N61 OVERLAY

 

A 61 SFLCLR

 

A 62 SFLDSP

 

A 70 SFLEND(*MORE)

 

A LSTRRNB 4S 0H SFLRCDNBR(CURSOR) --- rest of display screen -- headings



RPG code:

c eval lstrrnb = rrnb

C RRNB IFEQ 1

 

 

C EVAL *IN60 = *ON

 

 

C EVAL *IN61 = *OFF

 

 

C EVAL *IN62 = *OFF

 

 

C WRITE SUBDTB

 

 

C WRITE SUBKEY

 

 

C ELSE

 

 

C EVAL *IN60 = *ON

 

 

C EVAL *IN70 = *ON

 

 

C EVAL *IN61 = *OFF

 

 

C EVAL *IN62 = *ON

 

 

C WRITE SUBKEY

 

 

C ENDIF

 

 

C

 

 

C EXFMT SUBCTLB  

 



 What am I doing wrong that is giving me the Incorrect record number in subfile SFLRCDNBR or sflsiz field?

 

 

 

 

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • philpl1jb
    When you program attempts to show the display file field LSTRRNB must have a value between 1 and the current size of the subfile. and there must be records in the subfile. Phil
    49,750 pointsBadges:
    report
  • philpl1jb
    wrong Phil!!! Field LSTRRNB must have a value between 1 and the current number of records in the subfile.
    49,750 pointsBadges:
    report
  • TomLiotta
    Without knowing what value you are placing into LSTRRNB, Phil's response is the best we can do. We can't even tell which branch of the IFEQ the program takes. I assume that the message identifier is CPF5218. The logic isn't clear. It looks as if you only write a record to your subfile when rrnb = 1, yet you set LSTRRNB to any value that might be in rrnb. What is the code intended to do? Tom
    125,585 pointsBadges:
    report
  • Splat
    What field is associated with the subfile record format - LSTRRNB or RRNB? Where are you setting the value of the associated field to match the number of records written to the subfile?
    7,055 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following