Topic
  • 8 replies
  • Latest Post - ‏2019-05-02T14:01:07Z by eric.simpson
Sergey Chebotarev
Sergey Chebotarev
19 Posts

Pinned topic I can not compile the code

‏2019-03-01T12:37:43Z |

Tell me how to compile code in RDi, for example on RPG? The code is open in the editor. I choose Compile (G) -> Compile (Prompt) -> CRTBNDRPG ... In the dialog box that appears, I click OK, the window closes, but the compiled program does not appear in the selected library.

  • SFerrell
    SFerrell
    14 Posts

    Re: I can not compile the code

    ‏2019-03-05T19:29:33Z  

    Hi Sergey,

     

    When you compile, any errors should be going to the error view. In order to compile, you must have the Compiler tools installed on the IBM i you are connected to.

    See this link for the Installed Product for RPG (or ILE version). https://www.ibm.com/developerworks/ibmi/library/i-rationaltools/index.html.

     

    If the tools are installed, please verify that you can compile withing PDM to be sure your profile has access to the RPG Compilter. If you con't have access, contact your IT help desk to get access.

     

    If those tools are not installed, you will not be able to compile the source. RDi does however contain a program versifier that will verify your program can compile. For this, from the source please use the command key combination ctrl-shfit-v.

    Here are a few links that should be able to help.

     

    For a simple overview:

    https://www.ibm.com/developerworks/rational/cafe/docBodyAttachments/3314-102-1-6825/RDi_Remote%20System%20Explorer_intro.pdf

    For a step by step walk through:

    https://www.ibm.com/developerworks/community/wikis/home/wiki/W5655eb35823a_4511_8970_3f665cc5d557/page/Hands-on%20Labs?lang=en

    For a list of educational links:

    https://www.ibm.com/developerworks/community/wikis/home/wiki/W5655eb35823a_4511_8970_3f665cc5d557/page/Online%20Educational%20Resources

    If you need further assistance, please contact IBM support.

     

    Hope this helps!

     

  • barbara_morris
    barbara_morris
    28 Posts

    Re: I can not compile the code

    ‏2019-03-05T20:50:33Z  

    Sergey, do you get an error list for the compile? If not, perhaps your compile is being done in batch, and the batch job has not completed yet. Check the Commands log. Also, if you have a filter for your library, make sure you refresh the filter after you compile the program.

  • Sergey Chebotarev
    Sergey Chebotarev
    19 Posts

    Re: I can not compile the code

    ‏2019-03-06T07:07:37Z  

    SFerrell, barbara_morris, thanks for the replies. I solved the problem. It was necessary in the settings to unchecked Compile in batch.

  • eric.simpson
    eric.simpson
    206 Posts

    Re: I can not compile the code

    ‏2019-03-06T19:19:14Z  

    Hi Sergey,

     

    If you are not getting error feedback when compiling in batch, you might be missing WDS option 60 on the server.  In RDi, you can right click on the Objects subsystem of your connection and select Verify Connection.

  • Sergey Chebotarev
    Sergey Chebotarev
    19 Posts

    Re: I can not compile the code

    ‏2019-03-07T05:36:24Z  

    eric.simpson, today saw that if compilation is enabled in batch mode, then when performing compilation, entries appear in the Error Log window.

    Do as you advised (In RDi, you can right click on the Objects subsystem of your connection and select Verify Connection.). Got such a window.

     

    I apologize to everyone for perhaps elementary questions. It's just that I have been working with the IBM and RDi systems for only 3 months. Therefore, I will ask you not to judge strictly and, if possible, teach your new colleague :)

  • eric.simpson
    eric.simpson
    206 Posts

    Re: I can not compile the code

    ‏2019-03-07T14:49:00Z  

    eric.simpson, today saw that if compilation is enabled in batch mode, then when performing compilation, entries appear in the Error Log window.

    Do as you advised (In RDi, you can right click on the Objects subsystem of your connection and select Verify Connection.). Got such a window.

     

    I apologize to everyone for perhaps elementary questions. It's just that I have been working with the IBM and RDi systems for only 3 months. Therefore, I will ask you not to judge strictly and, if possible, teach your new colleague :)

    Hi Sergey, glad to see you using RDi.

     

    For some online training materials, please have a look at https://ibm.biz/rdi_wiki_self_learning.

  • Andreas Bott
    Andreas Bott
    46 Posts

    Re: I can not compile the code

    ‏2019-05-02T11:51:37Z  

    Hi Eric,

    Link is not working !

  • eric.simpson
    eric.simpson
    206 Posts

    Re: I can not compile the code

    ‏2019-05-02T14:01:07Z  

    Hi Eric,

    Link is not working !

    Please try:

    https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/W5655eb35823a_4511_8970_3f665cc5d557/page/Online%20Educational%20Resources

     

    which is what https://ibm.biz/rdi_wiki_self_learning resolves to.  The page sometimes is giving me an error when loading too.