classAnova - Knowledge Shared


Posted by: Bob Cozzi
IT Researcher
Cozzi Productions, Inc.
North Aurora, IL
RPG Open - Documentation Group
has no ratings.
Published: 08 Feb 2011
Revised: 04 Aug 2011 - 2118 days ago
Last viewed on: 22 May 2017 (9939 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

RPG Open - Documentation Group Published by: Bob Cozzi on 08 Feb 2011 view comments

RPG Open - Documentation

RPG Open is a free, open source add-on library for the IBM i RPG IV programming language. It was created in the Fall of 2009 by Bob Cozzi, author of the book "The Modern RPG IV Language" and a consultant to IBM on the original RPG IV Language design.

Each subprocedure provided in this package is available by including the corresponding /INCLUDE member in the user's RPG IV program source and binding to the RPGOPEN binding directory. A great example of this is contained in the highlighted source lines below:

H DFTACTGRP(*NO) 
     H BNDDIR('RPGOPEN/RPGOPEN')

     Fcustmast  IF   E           K DISK    EXTFILE('WHSE/CUSTMAST')
     F                                     PREFIX('C.')
      /include rpgopen/qcpysrc,joblog
      /include rpgopen/qcpysrc,cvtcase
      /include rpgopen/qcpysrc,icomp
      /include rpgopen/qcpysrc,dates
      /include rpgopen/qcpysrc,concat
      D C               DS                  LikeRec(CUSTREC) Inz 
      D email           S             80A   Varying 
       /free
            read custmast;
            dow NOT %eof();
                email = cvtcase(c.email);  // Convert the email address to all lowercase characters
                sendmail(email : from : msgText);
              read custmast;
            enddo;
            *INLR = *ON;
      /end-free

The best way to get RPG OPEN is to download the ZIP file from RPGOpen.com. It includes all the source code, compiled and ready to go. If you prefer a source code only option, you can download each individual source member or view them online, again at RPGOpen.com. The documentation is included here, on ClassAnova.com. Search for the specific subprocedure name or bookmark this ClassAnova Group index page to get to the index of all RPG OPEN Subprocedures' documentation.

Return to RPGOpen.com

Return to classanova.com home page.
Sort Ascend | Descend

COMMENTS