Is there a way to set the libl for programs called anonymously from the IDE? I'm wondering about when a programmer is creating a new program, then wants to run it to test it. I wouldn't want them to have to create a cl to set the libl each time. What is the suggested method ?
Thanks!
calling programs from IDE
-
- Profound User
- Posts: 83
- Joined: Sun Oct 03, 2010 8:45 am
- First Name: Mike
- Last Name: Geldert
- Company Name: Stonriver
- Country: Angola
- Contact:
- Rob
- Profound Logic Staff Member
- Posts: 135
- Joined: Fri Jan 04, 2008 12:12 pm
- First Name: Rob
- Last Name: Ferguson
- Company Name: Profound Logic Software
- Contact:
Re: calling programs from IDE
I would recommend writing a small "launcher" CL and RPG program. The developer would still anonymously call a CL program to first set the library list and then call the launcher RPG program. The RPG program would display a screen similar to that shown in the image attached below. The text box would be bound to field PROGRAM, a 10A field for the program name (or 21A if you want to qualify it with a library)
The RPG code below will allow the developer to enter any program name and press the Run button to call it.
The RPG code below will allow the developer to enter any program name and press the Run button to call it.
RPG CODE
- Attachments
-
- Display file for Launcheer
- Launch Dsp.png (2.64 KiB) Viewed 913 times
-
- Profound User
- Posts: 83
- Joined: Sun Oct 03, 2010 8:45 am
- First Name: Mike
- Last Name: Geldert
- Company Name: Stonriver
- Country: Angola
- Contact:
Re: calling programs from IDE
that'll work, thanks!
Who is online
Users browsing this forum: No registered users and 1 guest