On 10/21/2014 12:55 PM, RPGLIST wrote:
I'm sure this is just a matter of a bad configuration so if anyone can
lend some help I would appreciate it.

When I try to run a program I get the following error:

An internal error occurred during: "Launching RemoteSystemsTempFiles".
java.lang.NullPointerException

No idea what this is about.

Hi Dutch,

When I want to run a program, it's usually in a menu, so I just switch
over to a 5250 session and drill down through the menus until I get to
it. If it's something new, I typically call it from the command line.
I personally never saw the value trying to do everything inside of RDi,
but that's just me [1]. Many people like the idea of an Integrated
Development Environment (IDE). So, prompted by your question, I figured
I'd give it a whirl.

Run > Run Configurations...
Click on the IBM i: Run Batch Application icon.
Click the 'New' button in the upper left. There's no shortcut key or
menu option to do this :-(
Fill in the name of the program you want to submit.
Click Apply, then Run.
Look at the Commands Log view to see the results (submitted and completed)

To re-run, Run > Run Configurations... and select your pre-planned
configuration. If there is a way to make the program name a variable
based on the editor window that has focus, I don't know how to do that.

This doesn't seem all that useful to me, so I took a closer look at all
of the choices on the Run Configurations page. It looks like Run tries
to execute the RemoteSystemsTempFiles option under Remote Compiled
Application, so I figured I'd try that. That option didn't know about
any of my dozen or so connexions, and it didn't keep the new one I made,
so I was unable to get that to work at all. But like I said earlier, I
don't find the whole idea of pre-established profiles all that useful,
so this line of behaviour doesn't appeal much to me.

If I really wanted to run an RPG program from within RDi, I would either
do it right from the Commands Log view (there's a command line there...)
or write a User Action.

On the member list in RSE, right click and select User Actions > Work
with user actions.

Click on Member Action.
For Action Name, I use CALL
For the command, I use call &l/&n
Apply, Close

To use it, right click any member, User Actions, CALL.

--buck

[1] Eclipse's Run option is wicked cool because you can run a Java
application (or C or anything that does output to stdout) and Eclipse
can redirect the output from stdout to an Eclipse window. RDi can't
grab my spooled output from an RPG program and stuff it into an RDi
window. Nor can RDi grab output from a 5250 display file and display it
in an RDi window - as far as I know, there is no 'hook' to be able to
reach inside IBM i and get RPG program input and output and redirect it
to RDi. Because so much of what I do requires a 5250 session to see
what happened, using an actual 5250 session is pretty much a necessity
for me. If you're working on a database program that updates files, how
will you know if it worked? I run a series of SQL scripts either in IBM
i Navigator or more typically, in a RPG utility I wrote specifically to
do this chore.

The one place I really need to use RDi to run code is when I'm using
RPGUnit, which is a plug-in by Thomas Raddatz based on work by Mihael
Schmidt. That's a little different in that you write a special test
framework that's intended to be run within RDi and that framework makes
the calls to various sub-procedures and reports on the results.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.