bea.com | products | dev2dev | support | askBEA |
|
e-docs > WebLogic Java Adapter for Mainframe > Programming Guide > eGen Application Generator Reference |
Programming Guide |
eGen Application Generator Reference
This section contains reference pages for the WebLogic JAM eGen Application Generator (eGen utility). This information includes the rules for writing the script file that controls the code generator.
Synopsis
The eGen utility maps a COBOL copybook into a Java class.
Invoke the utility with the following command:
java com.bea.jam.egen.EgenCobol scriptfile
where:
If the WebLogic JAM installation bin directory has been added to your path, the eGen utility may also be invoked with the following command:
egencobol scriptfile
Listing B-1 Example of scriptfile.egen
### example script
#
view demo.CustomDataView from emprec.cpy
service demoService accepts CustomDataView returns CustomDataView
page demoPage "Demo Page"
{
view demo.CustomDataView
buttons
{
"Try It" service(demoService) shows demoPage
}
}
servlet demo.DemoServlet shows demoPage
Script Syntax Reserved Words
The reserved words shown below must be used as specified in the Grammar section.
Note: A reserved word can be used as an identifier if it is enclosed in either single or double quotation marks (refer to General Rules).
General Rules
Grammar
The eGen script grammar uses a modified Backus-Naur Form (BNF) syntax, which is used in many industry-standard software reference guides. BNF syntax specifies a context-free grammar. Reserved words are shown in bold. Comments are in italics preceded by a dash (—).
method methodname (fullviewname) returns fullviewname
Results of Running the eGen Application Generator
If XML support was requested, then the following files are also produced: