• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • Getting Started with RDi’s Application Diagram, Part 2: Program Structure Diagram

    October 28, 2009 Susan Gantner

    In Part 1 of this tip, I talked about getting started with RDi’s Source Call diagram. Now let’s continue on the journey.

    I’ll first cover the basics of the second type of diagram, the Program Structure Diagram. Then I’ll cover some notes that apply to both types about customizing, saving, and using your Application Diagrams for your own documentation.

    The Program Structure diagram shows relationships between application objects, such as programs that call other programs or reference Service Programs. An example of a very simple Program Structure diagram is shown below.

    GRAPHIC1

    This diagram shows the relationships between three programs that all reference the same Service Program called DateProcs. To create this diagram, simply select all the *PGMs and *SRVPGMs from the Remote Systems view (the objects, not source members this time) you want to include in the diagram, right click and select “Visualize Application Diagram.” This gives you a high-level view of the object relationships.

    Note that if you also want to see the Program Call diagram of the same objects, you could select the source members for the modules and/or programs. That way you could even see the specific procedures that were being called in each case. You can use the two types of diagrams together or separately. If you create a combined diagram with both objects and source, you can choose to view only one diagram type at a time from the context (i.e., right click) menu.

    In the previous tip, I mentioned the palette in relation to the zoom tool. The palette is that box you see to the right of the diagram. In the palette is an icon that looks like a yellow Post-it style note. It may be occurring to you by now that this kind of diagram might be very useful to keep around as program documentation, and you’re right. We’ll talk about ways to save the diagram in a moment. But before you do that, you probably want to add some additional text, comments, etc., to it. There are two different ways to add text: Notes and Text. Notes appear as Post-it style notes on the diagram and are intended to be associated with a specific node (box) in the diagram; whereas Text is more free-from in nature and simply appears on the diagram without the Post-it-like background.

    The easiest way to add a note to a node in the diagram is from the context menu on the node itself. To add general text to the page, use the palette. There is only one palette tool for both Notes and Text, and the default is initially set to Notes. Click on the menu arrow immediately to the right of the Note icon to change it to a Text tool. Then click in the diagram where you want the text and begin typing.

    One issue I have with the palette is that it takes up valuable real estate, and because I so rarely use it, I prefer to get it out of the way. There are two ways to do this. There is an arrow at the top of the palette to collapse it to a small sliver with just the arrow remaining, which can be used to bring it back if you want to add text to your diagram. Another way to remove the palette from the diagram view is to open a special palette view. (Hint: Window pull-down menu, Show View, Palette.) When you do that, the attached palette automatically disappears. Then you can either place the palette view in a stack with many other views (such as the stack where you may have your Commands Log view, Error List view, etc.), or you can make it a Fast view. Either way, I recommend that you get the palette out of sight to buy yourself some extra real estate for more complex diagrams than the simple ones I’ve shown here.

    Now that you have your Application Diagram the way you want it with Notes and Text, it would be shame to lose it. So, quick: Save it. You have three format options for saving the diagram: as an Application Diagram file, as a graphic, or as text.

    If you save it as an Application Diagram file, it can be reopened in the Application Diagram editor. Diagrams are saved to a project in your workspace. You can create a project to save your Application Diagram files by using the File pull-down menu, option New→Project and choose a General Project type and give the project a name. Then you can use the File→Save as option when your Application Diagram has focus in the workbench and save it to your new project. This will create two XML files in your workspace–one of type .appmdl, and one with type .appmdl_diagram. To reopen it and work with it again, find either of those files in your workspace using the local connection in Remote Systems and double click to open them.

    If you want to save the diagram to put into a document as a graphics file, right click on any white space in the diagram and use the File→Save as image file option. Many different image formats are supported.

    You can also save the diagram as a text file, but it is nothing like the diagram we’ve been looking at in these examples. It is simply a list of the objects and source members with indications of “Called by” and “Calls.”

    There are many other things you can do with your Application Diagrams. Take a look under the “Diagram” pull-down menu in the workbench and the context menu in the diagram itself to see what else you can do.

    Add this new tool to your repertoire to make your documentation more effective or to help you navigate visually through a complex logic flow.

    Susan Gantner is one of the most respected System i gurus in the world and is one of the co-founders of System i Developer, an organization dedicated to RPG, DB2, and other relevant software technologies for the System i platform that hosts the new RPG & DB2 Summit conference. Gantner, who has worked in IBM’s Rochester and Toronto labs, left IBM to focus on training OS/400 and i5/OS shops on the latest programming technologies. She is also a regular speaker at COMMON and other user groups. Send your questions or comments for Susan to Ted Holt via the IT Jungle Contact page.

    RELATED STORY

    Getting Started with RDi’s Application Diagram, Part 1: Source Call Diagram



                         Post this story to del.icio.us
                   Post this story to Digg
        Post this story to Slashdot

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags:

    Sponsored by
    WorksRight Software

    Do you need area code information?
    Do you need ZIP Code information?
    Do you need ZIP+4 information?
    Do you need city name information?
    Do you need county information?
    Do you need a nearest dealer locator system?

    We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

    The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

    PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

    Just call us and we’ll arrange for 30 days FREE use of either ZIP/CITY or PER/ZIP4.

    WorksRight Software, Inc.
    Phone: 601-856-8337
    Fax: 601-856-9432
    Email: software@worksright.com
    Website: www.worksright.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Sponsored Links

    Manta Technologies:  Your complete source for IBM i training
    Vision Solutions:  Free software for measuring overall i5/OS system health
    East Coast Computer:  Citrix XenDesktop delivers desktops as a service to users anywhere

    IT Jungle Store Top Book Picks

    Easy Steps to Internet Programming for AS/400, iSeries, and System i: List Price, $49.95
    The iSeries Express Web Implementer's Guide: List Price, $49.95
    The System i RPG & RPG IV Tutorial and Lab Exercises: List Price, $59.95
    The System i Pocket RPG & RPG IV Guide: List Price, $69.95
    The iSeries Pocket Database Guide: List Price, $59.00
    The iSeries Pocket SQL Guide: List Price, $59.00
    The iSeries Pocket Query Guide: List Price, $49.00
    The iSeries Pocket WebFacing Primer: List Price, $39.00
    Migrating to WebSphere Express for iSeries: List Price, $49.00
    Getting Started With WebSphere Development Studio Client for iSeries: List Price, $89.00
    Getting Started with WebSphere Express for iSeries: List Price, $49.00
    Can the AS/400 Survive IBM?: List Price, $49.00
    Chip Wars: List Price, $29.95

    10ZiG Doubles Down on Dual-Monitor Setups A Chat with Ross Mauri, Power Systems GM

    Leave a Reply Cancel reply

Volume 9, Number 34 -- October 28, 2009
THIS ISSUE SPONSORED BY:

Help/Systems
Vision Solutions
WorksRight Software

Table of Contents

  • Getting Started with RDi’s Application Diagram, Part 2: Program Structure Diagram
  • Distinguish between Record Types without Indicators
  • How Much Temporary Storage Am I Using?

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • Meet The Next Gen Of IBMers Helping To Build IBM i
  • Looks Like IBM Is Building A Linux-Like PASE For IBM i After All
  • Will Independent IBM i Clouds Survive PowerVS?
  • Now, IBM Is Jacking Up Hardware Maintenance Prices
  • IBM i PTF Guide, Volume 27, Number 24
  • Big Blue Raises IBM i License Transfer Fees, Other Prices
  • Keep The IBM i Youth Movement Going With More Training, Better Tools
  • Remain Begins Migrating DevOps Tools To VS Code
  • IBM Readies LTO-10 Tape Drives And Libraries
  • IBM i PTF Guide, Volume 27, Number 23

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2025 IT Jungle