You are on page 1of 18

Temenos

REPORT GENERATOR (REPGEN) ROUTINES

Temenos Education Centre

Agenda

Temenos

Overview Of Report Generator


RepGen Routine

Workshop

Temenos Education Centre

Overview Of Report Generator


Globus Reports

Temenos

Report Generators (RepGen)

Enquiry

Generated online and during EndOfDay

Temenos Education Centre

Overview Of RepGen
The Report Generator utility provides a mechanism for defining and producing ad-hoc reports which can be run on-line or within the End-Of-Day Batch process.

Temenos

Temenos Education Centre

Overview Of RepGen
The utility consists of four stages: 1. REPGEN.CREATE - To create reports and maintain report definitions.

Temenos

2. REPGEN.SOURCE - To generate source code and catalogue the programs. 3. REPGEN.SORT - To create/set-up a WORKFILE as source to display/print. 4. REPGEN.OUTPUT - To trigger display or printing of a report.

Temenos Education Centre

Overview Of RepGen
REPGEN.CREATE REPGEN.SOURCE REPGEN.SORT REPGEN.OUTPUT

Temenos

Temenos Education Centre

RepGen Routines

Temenos

Routines can be attached to reports created using REPGEN.

They are similar to Version Validation Routines and are used

to modify the output of a field.

These subroutines get invoked after the value of a field is

picked up but before display.

Temenos Education Centre

Attaching Routines To RepGen

Temenos

Field Name Subroutine Name

Temenos Education Centre

Attaching Routines To RepGens

Temenos

The Repgen routine name must be in the following format @xxxx#nn where Where

xxxx - Is the key to a record on the PGM.FILE, this record must

have a type of "R". nn - Contains the argument number and must be a valid argument on PGM.FILE. If argument in PGM.FILE is * then it is not to be used, therefore it must not be entered here.

Temenos Education Centre

Example 1

Temenos

A report in the following format is required listing the fields of all customers. NAME XXXX XXXX XXXX XXXX SHORTNAME XXXX XXXX XXXX XXXX TOWN.COUNTRY COUNTRY NAME XXXX COUNTRY NAME XXXX COUNTRY NAME XXXX COUNTRY NAME XXXX

The third column needs to display the TOWN.COUNTRY to which the customer belongs to along with a string "COUNTRY NAME

Temenos Education Centre

10

Solution 1
Create the report using REPGEN.CREATE

Temenos

Temenos Education Centre

11

Solution 1
Algorithm for the routine

Temenos

Extract the value of TOWN.COUNTRY for a customer record Prefix the TOWN.COUNTRY value with a string COUNTRY NAME

Return the appended string back to RepGen for display

Temenos Education Centre

12

Solution 1
Following is the routine that attaches the string COUNTRY NAME: to the TOWN.COUNTRY field before displaying it
*RepGen routine that will prefix the TOWN.COUNTRY with the *string COUNTRY NAME SUBROUTINE CUSTOMER.DISP.TRG(ARG1,ARG2) $INSERT I_COMMON $INSERT I_EQUATE ARG2="COUNTRY NAME:":ARG1 RETURN END

Temenos

Note that ARG1 holds the Incoming value of the field TOWN.COUNTRY and ARG2 contains the final value that is to be displayed(the return value).
Temenos Education Centre

13

Solution 1
Create an entry in the PGM.FILE for the subroutine with Type set to S

Temenos

Temenos Education Centre

14

Solution 1
Temenos

Create an entry in the PGM.FILE with the type set to R .

Field No 3: Additional Info : .PAR (parameter info for report records) . PAR (arg 1, arg 2)", where arg = argument. If a PGM.FILE record is a type 'R' then this field defines the arguments to be used in the call to the GLOBUS routine shown in field four. The names for the arguments must be valid GLOBUS keywords for which there are "IN2..." subroutines.

Temenos Education Centre

15

Solution 1

Temenos

Attach the subroutine to the report using REPGEN.CREATE

Temenos Education Centre

16

Output Before attaching a routine

Temenos

Temenos Education Centre

17

Output After attaching a routine

Temenos

Temenos Education Centre

18

You might also like