I have a RPGILE (XOP560) program. I am able to compile sucessfully this program.
once i call this program i am getting below error.
please advice me.
Additional Message Information
Message ID . . . . . . : RNQ1255 Severity . . . . . . . : 99
Message type . . . . . : Inquiry
Date sent . . . . . . : 04/06/09 Time sent . . . . . . : 03:45:07
Message . . . . : Session or device error occurred in file WDRPIK (C G D F).
Cause . . . . . : RPG procedure XOP560 in program NITCO/XOP560 at statement
249 detected a session or device error. Recovery may be possible. Examine
the major/minor return code value to determine the specific error that
occurred. If the major return code is 82 then the error occurred while
acquiring a session or device. If the major return code is 83 then the error
occurred during an I/O operation and the session or device is still active.
Recovery . . . : Check the job log for more information on the cause of the
error and contact the person responsible for program maintenance.
Possible choices for replying to message . . . . . . . . . . . . . . . :
D -- Obtain RPG formatted dump.
S -- Obtain system dump.
G -- Continue processing at *GETIN.
C -- Cancel.
F -- Obtain full formatted dump.
Technical description . . . . . . . . : The major return code is 83. The
minor return code is 22.
----------------------------------------------------------------
where WDRPIK display file as below
A*%%TS SD 20090401 035420 KSS991U REL-V4R4M0 5769-PW1
A*%%EC
A DSPSIZ(24 80 *DS3)
A R PKSCR
A*%%TS SD 20090401 035420 KSS991U REL-V4R4M0 5769-PW1
A CA03(03)
A 1 3'51 Pick Labels'
A COLOR(WHT)
A 3 3'Enter Pick Label'
A PKLBL 9Y 0B 4 3
A 20 DSPATR(RI)
A DSPATR(UL)
A 6 3'ENT=PICK LBL'
A COLOR(WHT)
A 6 17'F3-Ext'
A COLOR(WHT)
A R MSGRCD SFL
A*%%TS SD 20090401 010400 KSS991U REL-V4R4M0 5769-PW1
A SFLMSGRCD(24)
A MSGKEY SFLMSGKEY
A PGM SFLPGMQ(10)
A R MSGCTL SFLCTL(MSGRCD)
A*%%TS SD 20090401 010400 KSS991U REL-V4R4M0 5769-PW1
A SFLDSP
A SFLDSPCTL
A 01 SFLINZ
A SFLSIZ(0002)
A SFLPAG(0001)
A PGM SFLPGMQ(10)
************** End of data ***************************************
Software/Hardware used:
ASKED:
April 6, 2009 10:53 AM
UPDATED:
September 16, 2009 6:18 PM
i got below errors while call this program.
i checked in dspjoblog below errors i found. please advice
Cannot process subfile request for file WDRPIK in library NITCO.
Session or device error occurred in file WDRPIK.
Application error. RNX1255 unmonitored by XOP560 at statement 0000000249,
instruction X’0000′.
Hi,
If you press help on each message you should see more information.
Regards,
Martin Gilbert.
A SFLSIZ(0002)
A SFLPAG(0001)
May have something to do with it. Depends on how you have written the RPG. SFLPAG of 0001 means you only have one subfile record on the screen. You might want to try increasing the size of the subfile and the size of the subfile page.
Regards
Mike
Since you are only showing one record at a time on the screen, this error probably means there were no subfile records created but the program didn’t check and attempted to display the subfile anyway. If that is not the case, as Martin said, your SFLRRN was probably either not set (i.e. 0) or was set greater than the number of subfile records generated.
Kevin C. Ketzler – Affiliated
You might want to take a dump of the program when it crashes and look at the value in SFRRN. This might give a clue as to what the problem is.
Cheers.
Usually an empty subfile. Can also be an undefined numeric field (unlikely in your case – looks like you have a message subfile).
A good practice is to flag (or count) that you have something in your subfile. If empty then display an alternate screen that has no subfile (e.g. a combo prompt-plus-subfile blows up if sfl is empty so I test first and just do the prompt as a separate screen if sfl is empty).
Of course, I’m getting a similar halt today at the SFLCLR point. I’ll follow up with the cause of that once I get it resolved.
Aha ! My halt on the SFLCLR was because I was doing an EXFMT on the clear. This must be a Write.
So feasible that your pgm might be doing similar – an EXFMT to a message subfile would likely give this error.
Mike L.