Joined: 05 Dec 2006 Posts: 153 Location: Seattle, WA
Whether or not your load module is compatible with Expeditor depends on your shop standards.
I worked on place where we had to run an "Expeditor specific" compile job to be able to use it; th eshop I'm currently at compiles everything with Expeditor options turned on at every environment level. This means I can use Expeditor to debug production load modules whenever I desire.
However, with that said, the command in CICS to invoke Expeditor is XPED pgmname. Expeditor begins with you looking at the Procedure Division of your program. The program isn't actually executing at this point - you just set a break point and exit Expeditor.
Be very careful on the last screen before returning to the CICS screen: One of the options is END SESSION. Be sure to set your answer to NO. Then press Enter to return to CICS. Execute your program and you will go into the code.
Now for the critical part. When you are done testing, REENTER Expeditor with the CICS command XPED and set the END SESSION to YES and press Enter to execute.
Failure to end your session leaves your thread hanging even after you sign off. This is a really big no-no!