Home > AS/400 Tips > iSeries administrator tips > System i modularization -- part 1
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES ADMINISTRATOR TIPS

System i modularization -- part 1


Ron Turull
02.27.2007
Rating: -4.00- (out of 5)


iSeries news and advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



[IMAGE]
[IMAGE][IMAGE]
Ron Turull [IMAGE]
[IMAGE]

Modularization is the key to reaping the benefits of Integrated Language Environment (ILE). It is the major factor in cutting development time and increasing programmer productivity -- the more effective the modularization, the more productive the programming staff. But it's important to arm yourself with a reliable method when modularizing your applications.

More Information


[IMAGE]

Modularization is usually intuitive. But, often it is done without much serious thought. For example, many programmers will instinctively try to break up long programs with subroutines but few will attempt to make reusable subroutines (i.e., subroutines that other programs can share and use). However, for the most part, this is not the fault of the programmer. Instead, it is the fault of the old RPG language -- a language without true subroutines (i.e., no parameters and no local variables), and of the old OPM environment, a programming environment without static binding.

ILE, of course, changed all this. Now, the native AS/400-iSeries environment almost demands modularization. Here are some tips to help you take advantage of modularization (note, when talking about "modularization", we refer to breaking up applications into reusable procedures, not necessarily the modules that contain the procedures).

Design and code system-wide functions and procedures

Initial modularization is the process of creating system-wide f...


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
iSeries administrator tips
Analyze the health of your IBM i server with iScore
Researching high availability for your System i shop
Translating Linux for IBM i admins: Using GUI to make it easy
Translating Linux for IBM i admins: Working with jobs and networking
OpenOffice: What to know before making the transition from Microsoft Office
OpenOffice: An enterprise open source solution
Database performance comparisons on IBM i
Translating Linux for IBM i admins: User profile commands
Modern System i reports using Client Access
Tips for installing Lotus Domino server on a System i partition

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


unctions and procedures. These are the utility-type procedures that have the potential of being used by any -- and possibly all -- programs. Conversion procedures (e.g., convert to uppercase) and string and numeric manipulation procedures are good examples.

Make sure to design these procedures with the greatest amount of flexibility possible. For example, instead of designing a ToUpper function that accepts only a 50-byte fixed character string, use operational descriptors so the function can accept any length string in any format. Another, quicker, alternative is to use a separate parameter to communicate the length of the string (the new %size built-in RPG function makes it easy to set the parameter in the calling program).

For new systems, start at the beginning of the design process

Modularization should come soon after database design, which is usually the first step in designing a new system (i.e., a group of closely-related applications such as an "inventory control" system or an "order processing / customer service" system). The goal is to construct building blocks that you can quickly piece together to create applications.

For example, normalized databases are a proven way of storing data, however, retrieval of that data often involves reading from many files, sometimes coupled with complicated logic. You may be able to wrap-up this complicated I/O logic into a tidy procedure that many applications can share.

Design for cross-system use

Pay particular attention to how other systems (still talking about a group of related programs) might use a procedure and design the procedure accordingly. Keep other system's requirements (and possible future requirements) in mind when designing the procedure.

For example, applications in the order processing system will possibly use a procedure in the inventory control system that returns the stock on hand for a specified item. In such a case, make sure to take into account the order processing system's requirements (and possible future requirements) when designing and coding that specific inventory control procedure.

-----------------------------------
About the author: Ron Turull is editor of Inside Version 5. He has more than 20 years' experience programming for and managing AS/400-iSeries systems.


Rate this Tip
To rate tips, you must be a member of Search400.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



iSeries Security - Security Tools, Physical Security and System Security
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts