RPG

Sample External Object (RPG) Source Code

  Sample External Object (RPG) Source Code   5761WDS V7R1M0  100416        SEU SOURCE LISTING 09/23/11 11:34:47    MRC          PAGE SOURCE FILE . . . . . . .  MRCWORKLIB/QRPGLESRC MEMBER  . . . . . . . . .  DELDETAIL SEQNBR*…+… 1 …+… 2 …+… 3 …+… 4 …+… 5 …+… 6 …+… 7 1100       *Author: […]

Sample External Object (RPG)

Calling a Sample External Object (RPG)   This document will explain how to create, register, and call a sample External Object written in RPG. Recall from basic training that the purpose of an External Object is to call your back-end business logic directly through an m-Power web application. In this case, the purpose of this […]

Sample UDF Code

Sample User-Defined Function (UDF) Code   Every database has its own rules for languages which may be used to write User Defined Functions (UDFs). Here are two examples, one written in SQL and another in RPG, showing how to create functions for DB2/400. Example 1: Writing a UDF with SQL We are going to build […]

Validating via an RPG External Object

Validating via an RPG External Object   This document will explain how to call an external object RPG program for validity checking. For basic information regarding validity checking please see this document. The source code for this RPG can be found here. For the sake of this documentation, the RPG code will be located in […]