Problem:
A project is created using Net Express which includes map files like: map-name.bms. When the project is rebuilt, a map-name.mod is generated, the map executable.
When the project is published to Unix it is not possible to capitalize the names of .mod files because they do not appear in the list of files to be published. The .bms files are published and compiled on Unix, genetating .mod files, with the extention in lower case.
When the CICS application is requested to run it searches for .MOD files instead of .mod files and to have the CICS application working, you need to rename manually all of the .mod files to .MOD, for every project, or after any publishing.
Resolution:
The publish setup gives in the tab [Server], button Settings, tab [PostBuild], the option to type the name of a script that should run after the publishing proccess ends, and you can write a script in the project's directory on Unix to change to upper case, all files with extention .mod.
- Write a script in the directory defined as the [BuildDir] in the publishing setup.
- Test it, running in the Unix prompt; make sure it works when started that way.
- Change it to have in the 1st line: #!/bin/ksh, or the name of the current shell running on Unix.
- Include within [PostBuild], the line: ./your-script-name (./capmod.sh, in my case)