Monday, 2017-12-18, 11:55 AM
Tables Maintaining Generator
Welcome Guest | RSS
Site menu
Login form
Creating the window program (routine) is performed by executing a command which invokes the creating program. There is only one mandatory parameter required by the command: The table's name. (There are also some optional parameters). It takes only few seconds for the window program to be created. There is a command for creating a RPG program and a different command for creating a COBOL program.
All that is left for the programmer is to enter a call command to the window program in his applicative screen program. The parameter passed to the window program should be a structure in the form of the table's record.
Nevertheless the window program can be checked prior to applying any changes to the applicative system, by a trivial testing program created by the product together with the window program. This testing program can be called from the command line and requires no parameters. It performs a call command to the window program. The source of the testing program can be examined and used as an example for the way of how to connect to the window program. To make it even easier for the programmer a copy source member is also created, saving the programmer the bother of coding the parameter structure.
Here is how a testing program screen looks like (of course it differs from table to table):
To open the window here, at the testing program, command key F4 should be pressed. (Applicative programs can use of course different command keys and make it also depend on the location of the cursor).
The names of the different objects and source members created by the creating process start by default with the name of the table and an appropriate letter attached to the end of it.
Here is a table summarizing the details of what has been explained above:
Window program
TableNameP (object only)
TableNameE (object only)
Window program display file
TableNameW (object only)
Test program
TableNameV (object and source)
TableNameT (object and source)
Test program
display file
TableNameX (object and source)
Copy source member
TableNameI(in RPGLE source file)
TableNameI(in RPG
source file)
TableNameL(in CobolLE source file)
TableNameL(in Cobol
source file)
Let's have a look now at the creating command:
The PREFIX parameter is used to replace the table name as a prefix to all the different objects and source members created.
The RPGFILE parameter is used to indicate the location for the RPG copy member if created. This member can be used as a parameter passed from an applicative screen program written in RPG to the created RPGLE window program.
The similar applies to the CBLLEFILE and the CBLFILE parameters for applicative screen programs written in COBOL ILE and COBOL respectively.
The RPGCPY parameter indicates whether or not to create a RPG copy member.
The similar applies to CBLLECPY and the CBLCPY parameters.
The use of the other parameters is self-explanatory.
The BLDTWGPGM command looks very much the same.
You can start now enjoying the use of the product. Good luck!
«  December 2017  »
Entries archive

Total online: 1
Guests: 1
Users: 0
Copyright MyCorp © 2017Create a free website with uCoz