In order to illustrate all of the migration activities performed and how to use the the Rehosting Workbench Cataloger to determine whether the asset is consistent and can be migrated to the target platform, the Simple Application STFILEORA will be used. STFILEORA is provided with the Rehosting Workbench set of tools.
d. Listing 2‑1 The hierarchy of Sample Application
•
•
•
• It is recommended that each time you work on a project using the Rehosting Workbench to set certain environment variables that will be useful later. The only environment variable that is mandatory is REFINEDISTRIB; others can be used for simplification reasons.
Variable used by the Rehosting Workbench Listing 2‑2 Extract from Simple Application .project file:
2. Copy a sample of the configuration (system.desc, version.mk, options-catalog, etc) files from Simple Application to $PROJECT/param directory to make any necessary modifications.
3. Copy the makefile from the source (SimpleApp) into $PROJECT/source.
4. Create a file .project under $PROJECT and initialize it with variables listed in Setting environment and working variables. Variables in the file are to be exported each time you work on the project.Listing 2‑3 system description for Simple ApplicationListing 2‑4 Global Options file for the Simple ApplicationListing 2‑5 Parsing examplesListing 2‑6 Analysis exampleListing 2‑7 Print Reports example
Table 2‑2 Inventory status make is a UNIX utility intended to automate and optimize the construction of targets (files or actions).We highly recommend using make to perform the different operations that compose the migration process because this enables you to:You should have a descriptor file named makefile in the source directory in which all operations are implemented (a makefile is prepared in the source directory during the initialization of a project).The following two sections describe the make configuration and how to use the Cataloger functions thru make.The version.mk configuration file in $PARAM is used to set the variables and parameters required by the make utility.Listing 2‑8 Extract from version.mj for Simple ApplicationThe contents of the makefile summarize the tasks to be performed:Sample: parsing the program BATCH/PGMMB02.cblFor example, if you developed you own script (report.sh) to generate a customized report based on basic cataloguing reports, place your script in $TOOLS directory.