Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Session or device error occured"

933 views
Skip to first unread message

John

unread,
Sep 12, 2002, 6:03:39 PM9/12/02
to

In my RPG program, when I am doing EXFMT on SFLCTL, I am getting this error
message "Session or device error occurred". I tried this program in debugg but
every thing seems fine. Can someone suggest me something.? Thanks

--
Use our news server 'news.foorum.com' from anywhere.
More details at: http://nnrpinfo.go.foorum.com/

Hannes

unread,
Sep 13, 2002, 7:27:01 AM9/13/02
to
A little bit few information for this question and therefore many
possible answers. One possibility could be you have SFLDSP on with an
empty subfile. Another could be, you have RSTDSP=*NO with OVRDTA and the
wrong record on the screen. A thirc could be, you have an
outputcharacter with a hexcobe beneath X'40.

Regards
Hannes

John schrieb:

carl

unread,
Sep 14, 2002, 7:11:54 PM9/14/02
to
John <John...@hotmail.com> wrote in message news:<2002912-23...@foorum.com>...

> In my RPG program, when I am doing EXFMT on SFLCTL, I am getting this error
> message "Session or device error occurred". I tried this program in debugg but
> every thing seems fine. Can someone suggest me something.? Than

Hi John,

You really need to look at the job log or program dump for more
details regarding this message.
If i remember correctly (sorry, but i dont have access to a 400 right
now)...When you get the message, do you have an option to type 'D' to
get a dump of the program? If so, use it, and the head on over to
output queue qezdebug and look for more information on what exactly
caused the error there.
"Session or device error occurred" is a very general (and vague)
message. you will really have to do a little more digging to get at
the cause.

Hope this helps.
C.

Steve Anderson

unread,
Sep 15, 2002, 2:58:57 AM9/15/02
to
Hi John,

This normally means that you have no records in the subfile when you do an
EXFMT to the control format and the SFLDSP indicator on.

Hope it helps!

Steve

Alex Nubla

unread,
Sep 16, 2002, 1:56:25 PM9/16/02
to
Hello John:

Check your subfile control record format and look for the keyword
SFLRCDNBR. There should be an associated field for this.

Now, go back to Debugging your program and step through your program,
stop on the statement prior to EXTFMT on SFLCTL. Check the variable
associated with the SFLRCDNBR. If this value is ZERO. This is your
problem why you have a device session error. This means that after
you have loaded your SFL, this field is the one that tells the OS
where to position the cursor in the list of SFL. This should not have
a value of ZERO.

Regards,
Alex Nubla

John <John...@hotmail.com> wrote in message news:<2002912-23...@foorum.com>...

0 new messages