Rational Programming Patterns for System z

--generateErrorMsgs

This command is used to generate error messages for the Data Structure, Dialog, Server Dialog, Server and Screen entities.

Syntax

You can select several instances of the same entity type. In this case, they are generated in a single output file (error message file). To perform this command in such a case, you must enter the project name, the package name, and name for each instance. In the --name option command, the name of each instance must be followed by a comma. If you want then to select other instances which are located in another project, you must specify the package name, the project name and, in the --name option command, the name of the instances separated by a comma. The same number of occurrences must be included in the --package,--project and --name .

rpp.bat --generateErrorMsgs [options]

Parameters

Table 1. List of the available parameters
Options Comments Required Default values
--data Full path to the workspace to use Yes  
--log Log file name N/A trace.log
--project Project name Yes repeated
--package Package name Yes repeated
--name Entity name Ye entities names separated by a comma, repeated
--type Entity type Yes [dataunit|pacdialog|pacscreen|pacserver|pacdialogserver]
--destination Output file name Yes  
--error messages Specific error messages file name N/A  
--lang Target generation language Yes  
--option Generation option  

C3 is only for dialog, the default value is C1. [C1|C2|C3]

Note: Only one entity can be selected at once (--package, --name, --type).

Sample

rpp.bat --generateErrorMsgs --project TEST01.T02 --package T02 --name 0B,0M --type dataunit --destination d:/utmp/errorbatch.txt --errorMessages d:/utmp/errorbis.log --lang FR --log d:/utmp/trace.log --data d:/Working/JbyWks

In this example, the Data Structures 'OB' and 'OM' are selected in the 'T02' package of the 'TEST01.T02' project.

rpp.bat --generateErrorMsgs --project TEST01.T02 --package T02 --name 0B,0M --project TEST01.T03 --package T03 --name DD --type dataunit --destination d:/utmp/errorbatch.txt --errorMessages d:/utmp/errorbis.log --lang FR --log d:/utmp/trace.log --data d:/Working/JbyWks

In this other example, the 'OB' and 'OM' Data Structures are selected in the 'T02' package, and in the 'TEST01.T02' project. The 'DD' Data Structure is selected in the 'T03' package of the 'TEST01.T03' project.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)