r/IBMi • • 18d ago

Resource Recommendations for learning how to navigate green screens (5250 emulators)

Hey there, I apologize if this is not the right place for this.

I graduated last May and I’m currently working with a company that specializes in software and network services. I’m looking into transitioning into the apps team which primarily uses RPG, but I’m hitting a snag with my initial learning.

I’ve been going through Nick Littens free materials for CL and RPG and I’ve understood the content coming from a background in C++ and just my CS degree in general, but I’ve been struggling to actually understand what is being done in these green screens. I have some plugins for VScode that allow the same integration that RDi does, but I don’t understand anything I’m looking in terms of what PUB400 generated for me or what any of the green screen menus mean.

Any advice is greatly appreciated.

14 Upvotes

9 comments sorted by

6

u/Iguanas_Everywhere 18d ago

When I started, some of the most helpful resources for me were:

  • Buck/Meyers/Riehl books on RPG and CL programming
  • Introductory videos on Common
  • Lots of F1 and F4 while exploring commands and logs
  • I was fortunate to have experienced and generous teammates to bother with endless questions (still do!)

This subreddit has been helpful too, for that matter. As time has gone on, I've bookmmarked lots of helpful articles from IT Jungle, RPGPGM, and others. The IBM docs aren't bad, but I've generally found it easiest to find what I'm seeking there by F1-ing from RDi.

0

u/kleinbk 18d ago

I just don’t even know how to start the actual programming. Upon logging into green screen thru PUB400 its a bunch of menu options that I don’t understand, nested with even more options I don’t understand. It’s a pretty big leap from my typical “make a cpp file and compile it”

2

u/ol-gormsby 18d ago

Choose "Programming Developer Menu"

Choose "Work with Libraries"

Make sure your personal library is named in the next screen. Type '12' (work with)

Locate and select the type - RPG source, CL source, Cobol source, etc, type a '12'

Now you're located in your personal library, in a sub-folder of the type you selected, e.g. RPG source.

You can create a Physical Source File Member, AKA program source code.

That will be old-school columnar RPG, for free-form RPG you'll could probably use VSCODE under linux or Windows and log into the system from there.

2

u/dodikibmi 18d ago

I came from C++ too. The mapping that helped me:

  • library = a folder (PUB400 gives you two, YOURNAME1 and YOURNAME2)
  • source physical file (QRPGLESRC, QCLSRC) = a folder for one language
  • member = your .cpp file
  • CRTBNDRPG = compile + link into a *PGM object
  • CALL = running the exe
  • job log (DSPJOBLOG) = your stderr

You don't need the menus at all. Hello world, typed on the command line at the bottom of any screen:

  1. WRKMBRPDM FILE(YOURNAME1/QRPGLESRC), then F6 to create a member with type RPGLE. If the file doesn't exist yet: CRTSRCPF FILE(YOURNAME1/QRPGLESRC) RCDLEN(112)
  2. Put this in the member (or open the same member from VS Code with Code for IBM i, much easier than SEU):

     **free
     dsply 'Hello from RPG';
     *inlr = *on;
  3. CRTBNDRPG PGM(YOURNAME1/HELLO) SRCFILE(YOURNAME1/QRPGLESRC)
  4. CALL YOURNAME1/HELLO

I compiled exactly this on PUB400 just now to be sure. Free format compiles fine from a normal source member, SEU just can't syntax check it.

For the screens: commands are verb + noun abbreviations, WRK (work with), DSP, CRT, CHG, DLT + OBJ, MBR, JOB, SPLF. Type a command and press F4 to get a prompt for every parameter, F1 on any field for help, F3 exits, F12 goes back one screen. The option numbers in "Work with" lists are the same everywhere: 2 change, 4 delete, 5 display, 12 work with. When a compile fails, WRKSPLF shows the listing with the errors.

4

u/QPGMR_de 18d ago

"Those green screens" is something three-folded.

a) the menus - which you can navigate by selecting a number or using GO <menuname>

b) the command line which is a lot like a shell. Commands have a clear structure (other than *nix or windows) like WRKACTJOB - there is normally a verb like "work" -> WRK, very often an adjective like "active" -> ACT and an object like "job" -> JOB

c) application programs and tools that use a 5250 interface - this is somehow similar to a "curses" UI - but not stream/chat oriented, it's screen oriented

If you want to know more, just send me a message (daniel@qpgmr.de) and I will try to give you some hints where to start.

3

u/MrMacdaddy117 18d ago edited 18d ago

Check out the IBM users group at https://common.org

3

u/RPGPGM 17d ago

The best place to start is with COMMON's N2i, New to IBM i, website. They have all kinds of training for people from the basic to the advanced.
https://www.common.org/new-2-ibm-n2i/

3

u/Tab1143 18d ago

The green screen is simply a command line interface. And traditional RPG applications are implemented via the green screen using the tools IBM provides for doing so (SDA, DDS, CL, RPG etc).