Minimizing path length

Ordinarily, the number of instructions executed in a single CICS® command is large in comparison to the number of instructions in the application program that invoked it. The path length for a given task depends more on the number and type of CICS commands than on anything else, and commands are the most fertile area for tuning.

Commands vary by type, and path length for any given command can vary considerably with circumstances.

For BMS, some recommendations are:
  • Build screens (pages) with a single command when practical. Avoid building a composite screen with the ACCUM feature when a modest amount of additional programming accomplishes the same function, and avoid building a composite screen by multiple physical writes, as described in Outside the map in Building the output screen , except in unusual circumstances.
  • Avoid producing more output at one time than the user is likely to inspect. Some transactions—inquiries, especially—produce many pages of output for certain input values. When this happens, the user typically narrows the search and repeats the inquiry, rather than page through the initial output. To avoid the path length of producing output that is never viewed, you can limit it to some reasonable number of pages, inform the user on the last page that there is more, and save the information required to restart the search from that point if the user requests it. The extra programming is minimal; see Sharing data across transactions for ways to save the restart data.
  • Use commands that are on the BMS “fast path” if possible. (See Minimum BMS in BMS support levels for the commands and terminal types that qualify.)
  • Use terminal control commands for very simple inputs an outputs, where you do not need BMS formatting or other function. If path length is critical, you might want to use terminal control entirely. However, the advantages of BMS over terminal control in terms of flexibility, initial programming effort and maintainability are significant, and typically outweigh the path length penalty.


dfhp3c00245.html | Timestamp icon Last updated: Monday, 5 June 2017