Menu

Troubles with using PDM options in TN5250j product.

Matt Tyler
2018-03-13
2018-03-15
  • Matt Tyler

    Matt Tyler - 2018-03-13

    I am attempting to use the PDM option feature that opens up a LPEX editor session from the PDM options.
    The option i am using is "EB CALL PGM(ISPHERE/HANDLER) PARM('EDITOR' '&L' '&F' '&N' '*BROWSE') ".

    I am at RDi 9.6.x and iSphere 3.2.4r

    I am opening the 5250 from the iSphere 5250 Emulator, NOT the designer session.

    My job log shows these commands after running command

    3200 - RTVJOBA CURLIB(&CURLIB) USRLIBL(&LIBL)                           
    3700 - SNDRCVF DEV(*FILE) RCDFMT(HEADER) WAIT(*YES) OPNID(*NONE)      /*
    File name is  EDITOR. */                                                
         - RETURN        /* RETURN due to end of CL program */ 
    

    Is there a debugging option i can set on to see why its not working. I tried this in the past but i never followed through with 5250 embedded in RDi as i perfer ACS sessions but its more difficult to use ACS 5250 copy/paste in open dialog to review source code and i dislike 5250 source editors.

    Thanks, Matt

     
    • Thomas Raddatz

      Thomas Raddatz - 2018-03-14

      Matt,

      Unfortunately error handling in the Java code is not much sophisticated and hence there is no debug option to get more information about the problem. I think it was not that difficult to debug the Java code in order to find the problem. If you think that was an option for you, I could assist you with that. However you should already know how to checkout a project from SourceForge and how to launch an Eclipse test application.

      Beside that you could launch ISPHERE/HANDLER from a non RDi 5250 session and compare the result with the image attached.

      The Java code first checks for the "TN5250J-EDITOR" string at row 1, column 2 on the screen.

      Then it checks the following parameters before it launches the editor:

      • Library <> ''
      • Source File <> ''
      • Source Member <> ''
      • Mode <> ''
      if (!library.equals("") && !sourceFile.equals("") && !member.equals("") && !mode.equals("")) {
          runnable = new OpenLpexAsync(getShell(), sessionsInfo, library, sourceFile, member, mode, currentLibrary, libraryList.toString());
          getShell().getDisplay().asyncExec(runnable);
      }
      

      Eventually it gets the source member to open it in RDi:

      IQSYSMember iseriesMember = getConnection().getMember(library, sourceFile, member, null);
      if (iseriesMember != null) {
         ...
      }
      

      Unfortunately there nothing added to the Eclipse debug log when something goes wrong.

      So please check that "library", "source file", "source member" and "mode" are properly set on the "TN5250J-EDITOR" screen and that "TN5250J-EDITOR" is at position 2.

      The last option is to aad some debug statements to the Java code and create a beta version that you have to install to get additional information.

       
  • Matt Tyler

    Matt Tyler - 2018-03-15

    Thanks Thomas, using ACS 5250 running the EB option, "CALL PGM(ISPHERE310/HANDLER)
    PARM('EDITOR' 'XXXX' 'QRPGSRC' 'XXXXXX' '*BROWSE')", the string TN5250-EDITOR starts in position 3 (note my library for the product version I am using is ISPHERE310 and has been updated with the latest version and I have changed all references Icould find to use this library). Others in our group are not yet able to upgrade to the latest version.

    Thanks, Matt

     
  • Matt Tyler

    Matt Tyler - 2018-03-15

    Okay never mind I decided to up load the library from the latest downloaded version and now it is working. Normally, I dont update the sever library when the tool does not ask for it.

    Thanks, Matt

     
    • Thomas Raddatz

      Thomas Raddatz - 2018-03-15

      I am happy it works now. Sorry for the mess. That obviously was my fault, when I forgot to increase the version number of the required host library.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.