Home > AS/400 Tips > iSeries programmer tips > Create an RPG technical document using existing iSeries utilities
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ISERIES PROGRAMMER TIPS

Create an RPG technical document using existing iSeries utilities


Carlito 'Itto' Cruz
09.03.2004
Rating: -3.07- (out of 5) Hall of fame tip of the month winner


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


It is a hard reality in many RPG IT shops that we find many in-house programs running in the production environment without any technical documentation at all. In cases like this, we have to analyze the program code by code and come up with the technical documentation to avoid the same problem again.

The challenge, therefore, is to find a fast and effective way of doing the job when confronted with this scenario. I came up with an idea which I'm not sure every programmer will appreciate. But given the resources at hand, this does the work for me. With the existing iSeries utilities, we can achieve this by going through the following steps:

1. Create a source physical file in your programmer library (myLib/QDOCSRC) where you will put your program documentation.

2. Copy the program source member for which you want to create a program documentation into myLib/QDOCSRC.

3. Using SEU, open the source member and write the essential remarks describing what each part of the program does. Make it as detailed as necessary but concise as possible. (With necessary references to a subroutine, a program call, external procedure, etc.). Save your work.

4. When all the necessary remarks have been written, execute the command WRKQRY to query the contents of myLib/QDOCSRC. Specify the name of the member you worked on.


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


RELATED CONTENT
Application Development
iSeries calling an .exe
Top 10 programmer tips
Formatted work job scheduler
Convert system date and time
Mixing free format code with embedded SQL
SQL update a field in one file from a field in another file
Webcasts for iSeries programmers
Programming advice from the pros
Easy code copying via the drag and drop method
Setting FTP time-outs

iSeries programmer tips
Groovy programming on IBM i
EGL Rich UI on IBM i: Do you Dojo?
Running PHP open source applications: NOBODY needs authority
Programming for the Web on the IBM i, what is possible
Using geocoding on AS/400 to enhance your Web presence
The best technologies and tools for System i programmers in 2009
Seven IBM i project lessons learned in 2008
Documenting nested program structures on the AS/400
What is an integrated database?
An automated CL method of moving a query from AS/400 to Excel

iSeries CL programming
Checking in on your IBM i authorization lists
Running PHP open source applications: NOBODY needs authority
Simplify the process of converting a spool file from iSeries into an Excel spreadsheet
CL program for daily backups
An automated CL method of moving a query from AS/400 to Excel
Changing user password expiration
Eight steps for creating program documentation using AS/400 utilities
DAYSPAST CLLE program for AS/400: Compares object creation date with today's date
Advanced Job Scheduler help
How do I retrieve the source for an output queue description to put in to a CL program?

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


> Using the 'Define result fields' option, define a field to use for searching commented lines.

Define Result Fields

Type definitions using field names or constants and operators, press Enter.

5. Using the select and sequence fields, select 'SRCDTA' column.

6. Using the 'Select records' option, define a filter to include only commented lines.

Select Records

Type comparisons, press Enter. Specify OR to start each new group.

Tests: EQ, NE, LE, GE, LT, GT, RANGE, LIST, LIKE, IS, ISNOT...

7. Use the 'Select output type and output form' option if you want to print your documentation.

You may later choose to convert the spooled file output into other PC formats such as PDF or TXT. There are numerous utilities out there to do the work for you. So why should we re-invent the wheel?

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.


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.




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