
We have written about some of the big enhancements to RDi that have come during the 9.6 release of RDi, such as hover and annotation enhancements and the massive changes to the Object Table. We even created a video of a few of our favorite 9.6 enhancements.
Here we'll cover a few of the smaller features that were overshadowed by the flashier ones. We think that you'll agree with us that when it comes to new features in RDi, even little things can have a have a big impact on productivity.
Edit/Browse Toggle
How many times have you risked opening a member for edit from Remote Systems because it was just too much hassle to right click and say "Browse with …" instead? Then, you just hope you don't accidentally make changes to the "wrong" member—or at least if you do, you notice it before closing it so that you can undo them!
No need to live in fear of edit anymore! As of 9.6.0.2, after opening a member for edit, you can now easily switch it to browse mode. You can do this via the pulldown from the Source menubar - the "Toggle Edit/Browse Mode" option. Then again, even that takes more time than the "Browse with…" option we were avoiding. Fortunately, there's a keyboard shortcut: Ctrl-Shift-G on Windows or command-shift-G on Mac.
It's also much easier to tell now which members are open for edit and which for browse. The icon preceding the member name in the Editor tab shows either a magnifying glass (browse) or a pencil (edit) as shown in the figure below.
More Flexible Block Nesting
For those times when you're trying to make sense of nested logic in old fixed-format RPG code, more help has arrived. If you edit fixed-format logic often you probably already know how helpful the "Show Block Nesting" feature is. In case you don't recognize the name, it's often invoked via the Ctrl-Shift-O (or command-shift-O in Mac) shortcut in the editor. You should also recognize the feature in the figure below.
The Block Nesting feature has been improved. You no longer need to be positioned at the beginning or end of a code block. You can now be positioned anywhere in the block—including a subroutine or procedure—and have the nesting shown for the block where you are. You can also position on ELSE, WHEN or OTHER to find the beginning and end of the block they belong to. The level to which each ELSE/WHEN/OTHER statement belongs is also visible in the block illustration.
In addition, nesting up to 15 levels can now be highlighted. It's a sad commentary on old RPG coding techniques to think that support for that many levels is necessary! But the happy side effect is that the lines and arrows are longer and therefore a bit more visible even for less deeply nested logic as shown below.
Zoom In/Out in Your Code
If you’ve ever wanted a quick way to increase (or decrease) the font size inside your edit window, you can now (as of 9.6.0.6) use the keyboard shortcuts Ctrl + and Ctrl - (use command in place of Ctrl on Mac). The + will increase the font size in the currently active editor window (only). You can use the keys repeatedly to keep changing the size until it's what you want.
This comes in very handy when you're asking for help from a colleague to help find the problem in the logic you've been working on. It makes it far easier for someone to read the code over your shoulder.
There's not much more to say about this—the figure below illustrates the effect. In our example we did Ctrl + four times to get the difference in font size shown.
Where Am I?
When scrolling up and down in a large RPG source member, do you ever get lost - that is, do you lose track of what subroutine or procedure you're currently looking at? Instead of repeatedly scrolling back up to the top of whatever segment of code you're in, RDi now (as of 9.6.0.6) has 2 ways to help you keep track of where you are.
The first way is to have RDi display the name of the subroutine or procedure at the bottom of the editor window as shown in the figure below. It displays "Main Procedure" when you're in code before any subroutines and procedures.
If you want to turn this feature off, it can be de-selected via a preference on the main ILE RPG page under IBM i Parsers. Why might you want to turn it off? One reason is that it seems to replace the editor message function that was previously shown in the same location. While the type of messages that appeared there were not usually crucial - things such as "Undo successful. 2 sets of changes now undone" - if you miss seeing them, you'll need to turn off the "Show current procedure or subroutine in editor" option.
The second way to find where you are is to look at the Outline view. It now highlights either the Main procedure or the subroutine or procedure where the editor is positioned. As you're scrolling through the code, glancing over at your Outline will illustrate which segment of the code you are looking at. If you want to disable this feature, use the View menu in the Outline to de-select the "Select current procedure or subroutine" option.
Better Ease-of-Use for Object Table
We wrote about the dramatic changes to RDi's Object table shortly after it appeared in 9.6.0.2 last year. We'll leave you to read about those original features there. But in later fix packs some small yet much-appreciated additional features have been added.
Navigation is easier now as the keyboard arrow keys can be used to move around and set focus. Also, better support for multiple selections in the Object table streamlines many PDM-like functions. The Alt-F1 shortcut key performs a similar function to F13 in PDM to repeat the current option through the rest of the list. Any time the same option is selected for multiple list items (i.e. libraries, objects or members) a simplified dialog appears for the group of items.
This feature is particularly helpful when copying items such as members. Before this, copying multiple members prompted the CPYSRCF (Copy Source File) command for each individual member. Now a single dialog box appears with all the members selected. From there you can specify a different library or source file target for the copy and/or specify a different name for each member, as shown in the figure below. One word of warning - be sure to note that the name of the library and source file filled in at the top of the dialog are the ones where the members will be copied to - and they are not necessarily the library and file where the members came from - which is what would have happened in a similar dialog in PDM.
More Nice Little Things
Newbies to RDi now have double the time to give it a try before buying a license. The previous 60-day trial period has been extended to 120 days.
We don't like to do our compiles in batch jobs. But many people do so you'll probably be happy to hear that the job name for your batch compiles will now include the member name as PDM does.
In our first EXTRA piece on V9.6, we covered the use of annotations for compile errors. An enhancement to the use of annotations makes life easier for those occasions when you have many compile errors reported. Now you can navigate directly to the next or previous error in the code - without the need to return to the Error List. This can be done via toolbar icons or the keyboard shortcuts Ctrl . (Next) or Ctrl , (Previous).
There are many nice new features being added to RDi with every release and fix pack. We haven't covered nearly everything. But if you want to find out about some of the things we didn't discuss, you can always visit the Fix List for RDi from IBM Support's web page.