Professional Documents
Culture Documents
Agenda
Temenos
Workshop
Temenos
Enquiry
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
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.
Overview Of RepGen
REPGEN.CREATE REPGEN.SOURCE REPGEN.SORT REPGEN.OUTPUT
Temenos
RepGen Routines
Temenos
Temenos
Temenos
The Repgen routine name must be in the following format @xxxx#nn where Where
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.
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
10
Solution 1
Create the report using REPGEN.CREATE
Temenos
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
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
14
Solution 1
Temenos
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.
15
Solution 1
Temenos
16
Temenos
17
Temenos
18