ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Session or device error !

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Session or device error !

    Hi all,

    Getting “Session or device error” when executing a Subfile Control record through an RPG program
    Error fires on this line
    Code:
    EXFMT     IQ01
    Subsequent Joblog on error is as follows

    Code:
       Cannot process subfile request for file DSP293D in library
     ? C                                                         
       Cannot process subfile request for file DSP293D in library
     ? C                                                         
       Session or device error occurred in file DSP293D.         
       Session or device error occurred in file DSP293D (C G D F)
     ? C                                                         
       Session or device error occurred in file DSP293D (C G D F)
     ? C                                                         
       RNX1255 received by procedure DSP293CL. (C D I R)         
     ? C                                                         
       Application error.  RNX1255 unmonitored by DSP293CL at statement
         0000000754, instruction X'0000'.
    I double checked the Subfile Record counter is greater than 0, Subfile record & Subfile Control display indicators are ‘ON’ & found all correct but, couldn’t figure-out the reason yet.

    Any suggestions would be appreciated.

    Thanks
    Dhanuxp

  • #2
    Re: Session or device error !

    hi,

    pls post ur dds and rpg code then only some person can guide u ,

    go throw this following link

    Comment


    • #3
      Re: Session or device error !

      Lots of things can throw this error. Basically, almost anytime it tries to display a subfile and cant for some reason it will throw this error out.

      ie
      a) displaying an empty subfile
      b) displaying a window subfile in an incorrect position
      c) attempting to read from an unvited device

      The joblog may have a line or two right above this that can clue you in better.
      Michael Catalani
      IS Director, eCommerce & Web Development
      Acceptance Insurance Corporation
      www.AcceptanceInsurance.com
      www.ProvatoSys.com

      Comment


      • #4
        Re: Session or device error !

        Hi

        Please check its giving error to EXFMT ?

        See the Return code:-

        A major return code of 82 indicates that a device error or a session error occurred during an open or acquire operation

        A major return code of 83 indicates that an error occurred in sending data to a device or receiving data from the device.

        A major return code of 81 indicates a serious error that affects the device or session.



        Originally posted by dhanuxp View Post
        Hi all,

        Getting ?Session or device error? when executing a Subfile Control record through an RPG program
        Error fires on this line
        Code:
        EXFMT     IQ01
        Subsequent Joblog on error is as follows

        Code:
           Cannot process subfile request for file DSP293D in library
         ? C                                                         
           Cannot process subfile request for file DSP293D in library
         ? C                                                         
           Session or device error occurred in file DSP293D.         
           Session or device error occurred in file DSP293D (C G D F)
         ? C                                                         
           Session or device error occurred in file DSP293D (C G D F)
         ? C                                                         
           RNX1255 received by procedure DSP293CL. (C D I R)         
         ? C                                                         
           Application error.  RNX1255 unmonitored by DSP293CL at statement
             0000000754, instruction X'0000'.
        I double checked the Subfile Record counter is greater than 0, Subfile record & Subfile Control display indicators are ?ON? & found all correct but, couldn?t figure-out the reason yet.

        Any suggestions would be appreciated.

        Thanks
        Dhanuxp

        Comment


        • #5
          Re: Session or device error !

          Well this is one of very common error in AS00 and some time very difficult to handle as well

          there can be many reason for session and device error .Few are below:

          1.TRYING TO SHOW EMPTY SUBFILE.
          2.FIELD AND POSTION IN DDS ARE NOT CORRECT.
          I PREFER SE JOBLOG THIS TIME.

          you are working on you should ensure that if the subfile is
          devoid of records (RRN = 0) that you switch off the
          conditioning indicator associated with the DDS keyword
          SFLDSP.
          A common 1255 error is an empty subfile, but there are other causes of this status code. For what it's worth, status code 1255 is used for WORKSTN I/O when the operation has a major return code (of "major minor return code" fame) of 82 or 83. If you want to know the major and minor return codes, the RNX1255 message immediately preceding the RNQ1255 message in the joblog gives them.. Put your cursor over the RNX1255 message in the joblog and press F1 to see the whole message.

          (RNQ0xxx messages often have other messages preceding them in the joblog too. When you get an unfamiliar error message, it's always a good idea to look back through the joblog to see everything that might have gone wrong.)


          if u still not able to resolve then i would like to have some look on dds as well as RPG code

          Pramendra Pandeya
          Young people knows how to run fast but old people knows the way..

          Comment


          • #6
            Re: Session or device error !

            Hey,

            Check ur PF, whether it has records, & also make sure that RRN is initialzed.

            Also before Exfmt, make sure that SFLDSP & SFLDSPCTL indicator is ON & SFLCLR ind is off.

            The comman way & most used method is :
            1- Clear the SFL
            2-Load the data from PF to SFL
            3- Display the SFL

            Wait for User inputs, depending on the Inputs processing of Options is done.

            Thanks
            hsp.
            'Coding = Experience'
            hsp

            Comment


            • #7
              Re: Session or device error !

              The record format used in the EXFMT command/opcode is that of the subfile control or the subfile record? Ideally it should be the subfile control record format.

              Comment


              • #8
                Re: Session or device error !

                Originally posted by dhanuxp View Post
                Hi all,

                Getting “Session or device error” when executing a Subfile Control record through an RPG program
                Error fires on this line
                [code]
                Hello Vikram!As he has already mentioned that he is showing EXFMT(subfile control format)so It is wrong to point out ,I guess...

                Pramendra Pandeya
                Young people knows how to run fast but old people knows the way..

                Comment


                • #9
                  Re: Session or device error !

                  Post some code or Ill make the next guess
                  All my answers were extracted from the "Big Dummy's Guide to the As400"
                  and I take no responsibility for any of them.

                  www.code400.com

                  Comment


                  • #10
                    Re: Session or device error !

                    Originally posted by pramendra View Post
                    Hello Vikram!As he has already mentioned that he is showing EXFMT(subfile control format)so It is wrong to point out ,I guess...

                    Pramendra Pandeya
                    Well its only for confirmation considering that many at times we assume that we are using the control record format while actually using the subfile record format. In any case, it doesnt hurt to double check

                    I guess we would need the code and dds to determine the actual problem.

                    Comment

                    Working...
                    X