/COPY

page d'accueil
Boite à outils

Cette page a été mise à jour le 01 Avril 2012
Contact

Welcome page
Tools box

Cette page regroupe les liens vers les /COPY de mes outils here are links to /COPY used in my tools

Versionning 

The source code is provided as an open source tool under the GNU General Public License, version 2.  In summary, this license specifies:

By clicking a link below you acknowledge and agree to the terms of the license.

last version : 

THIS TOOLBOX IS PROVIDED ''AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PROVIDER OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS TOOLBOX, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

       How to upload to my 400

 
CHGPFM FILE(jpltools) MBR(JP4BMP2 ) SRCTYPE(SQLRPGLE ) EXPDATE(*NONE) SHARE(*NO) TEXT('includes for [SQL]RPGLE ')
CHGPFM FILE(jpltools) MBR(JP4ERN1 ) SRCTYPE(SQLRPGLE ) EXPDATE(*NONE) SHARE(*NO) TEXT('includes for [SQL]RPGLE errno for C-opcode ')
CHGPFM FILE(jpltools) MBR(JP4IFS1 ) SRCTYPE(SQLRPGLE ) EXPDATE(*NONE) SHARE(*NO) TEXT('includes for [SQL]RPGLE I/O on IFS streams ')
CHGPFM FILE(jpltools) MBR(JP4INC ) SRCTYPE(SQLRPGLE ) EXPDATE(*NONE) SHARE(*NO) TEXT('includes for [SQL]RPGLE ')
CHGPFM FILE(JPLTOOLS) MBR(JP4PDFD) SRCTYPE(RPGLE) TEXT('Demonstrator for PDF server') EXPDATE(*NONE) SHARE(*NO)
CHGPFM FILE(JPLTOOLS) MBR(JP4PDFS) SRCTYPE(RPGLE) TEXT('PDF service program') EXPDATE(*NONE) SHARE(*NO)
CHGPFM FILE(JPLTOOLS) MBR(JP4PDFSC) SRCTYPE(RPGLE) TEXT('PDF service program C specs- procedures') EXPDATE(*NONE) SHARE(*NO)
CHGPFM FILE(JPLTOOLS) MBR(JP4PDFSD) SRCTYPE(RPGLE) TEXT('PDF service program D specs- private PR & fields') EXPDATE(*NONE) SHARE(*NO)
CHGPFM FILE(JPLTOOLS) MBR(JP4PDFSP) SRCTYPE(SQLRPGLE) TEXT('PDF service program Public PR & fields') EXPDATE(*NONE) SHARE(*NO)
CHGPFM FILE(jpltools) MBR(JP4SQL1 ) SRCTYPE(SQLRPGLE ) EXPDATE(*NONE) SHARE(*NO) TEXT('includes for SQLRPGLE, sql declarations ')
CHGPFM FILE(jpltools) MBR(JP4XLX4 ) SRCTYPE(SQLRPGLE ) EXPDATE(*NONE) SHARE(*NO) TEXT('includes for [SQL]RPGLE generate XLXML files V4 ')
CHGPFM FILE(jpltools) MBR(JP4XML1 ) SRCTYPE(SQLRPGLE ) EXPDATE(*NONE) SHARE(*NO) TEXT('includes for [SQL]RPGLE use XMLDOM objects ')

I use more and more CRTRPGMOD as a precompiler to resolve all the include before calling CRTSQLRPGI. So, I have a temporary source file, named QSQLSRC, in the same library as each source file to receive the resolved code before compilation. Today, my model to compile RPG programs is :

for RPGLE :
CRTRPGMOD MODULE(&O/&N) SRCFILE(&L/&F) OPTION(*NODEBUGIO *SRCSTMT *SECLVL) DBGVIEW(*ALL) REPLACE(*YES)
CRTPGM PGM(&O/&N) BNDDIR(QC2LE jpltools) ACTGRP(jpltools) OPTION(*DUPPROC *DUPVAR)

for SQLRPGLE :
CRTRPGMOD MODULE(&L/&N) SRCFILE(&L/&F) OPTION(*NODEBUGIO *SRCSTMT *SECLVL *SHOWCPY *EXPDDS) PPGENOPT(*NORMVCOMMENT *EXPINCLUDE *NOSEQSRC) PPSRCFILE(&L/QSQLSRC) /* pre preprocess include */
CRTSQLRPGI OBJ(&O/&N) SRCFILE(&L/QSQLSRC) COMMIT(*NONE) OBJTYPE(*MODULE) OPTION(*NOSEQSRC *XREF *SECLVL) TGTRLS(*PRV) CLOSQLCSR(*ENDMOD) REPLACE(*YES) SQLPATH(*LIBL) DBGVIEW(*SOURCE) USRPRF(*USER)
CRTPGM PGM(&O/&N) BNDDIR(QC2LE jpltools) ACTGRP(jpltools) OPTION(*DUPPROC *DUPVAR)

Nota : I have a BNDDIR named jpltools for some toys of mine. It's not mandatory. When you don't have *MODULE to share between *PGM, you don't need a *BNDDIR. In this case, your CRTPGM command is simplified :

CRTPGM PGM(&O/&N) BNDDIR(QC2LE) ACTGRP(jpltools) OPTION(*DUPPROC *DUPVAR)


After download upload to your IBMi, check the code for translation errors. For example, in JP4PDF, search for "escaped" and trail these lines

 escaped = pdfSymbolize(escaped:'\':'\\');
escaped = pdfSymbolize(escaped:')':'\)');
escaped = pdfSymbolize(escaped:'(':'\(');

other error : in CLLE, I sometimes uses ^= for *NE. But ^ is sensitive to CCSID. 

The source code is provided as an open source tool under the GNU General Public License, version 2.  In summary, this license specifies:

By clicking the download link you acknowledge and agree to the terms of the license.

Download the (zipped) SAVF containing the JPLTOOLS : the source file, the message file, the bnddir