Multiple Assembler Programs | CICS Applications |
Use the Assembler debugger in Mainframe Express to single-step an application. You can watch the flow of control through the Assembler source and use an extensive set of debugging facilities.
You need to have read the chapter Start Here for the Tutorials and worked through the first session, Using Mainframe Express, and the session Assembler Applications, before you do this session.
You need to have installed Assembler Option to do this session. We assume you are familiar with Assembler on a mainframe.
The Assembler debugger was introduced briefly in the chapter Assembler Applications. This session goes deeper into the use of the debugger. This session uses the same demo application as the chapter Assembler Applications.
This demo uses the project acobdemo.mvp that you used in the chapter Assembler Applications.
The full path is \mfuser\projects\gsdemo\acobdemo\acobdemo.mvp. If you use Open on the File menu, you need the Files of Type field on the Open dialog box set to Project files (*.mvp) to see this file.
In this session you:
To debug the application:
You don't have to debug the COBOL as well as the Assembler - we could have used Run. But often you want to debug both at the same time.
CALL 'MFASM03' USING PASS-AREA.
The Application Output window is replaced by the Assembler debugger window.
The following sequence illustrates various techniques for moving around the source code:
In the following sequence you set a breakpoint then clear it.
In the following sequence you view dumps then examine an instruction.
The term "zoom" means to continue the run without further debugging.
The two lines of output from the Assembler program appear in the Application Output window. The Assembler program exits back to the COBOL program. You can now continue debugging the COBOL.
CALL 'MFASM03' USING PASS-AREA.
The Assembler debugger appears again.
The difference between N (Next) and Z (Zoom) is that after N, the Assembler Debugger appears again next time execution enters an Assembler program. With Z, subsequent calls to Assembler are not debugged. This is not affected by whether you continue single-stepping the COBOL code or you click to continue without further debugging the COBOL.
The application continues without debugging. Before finishing it waits for you to press Enter.
Close the source view window and hide the Application Output window.
Close the project. If you want to take a break before going on to the next session, you can close Mainframe Express.
Return to the Tutorials Map in the chapter Start Here for the Tutorials and choose which session to go on to next, depending on your interests.
Copyright © 1999 MERANT International Limited. All rights reserved.
This document and the proprietary marks and names
used herein are protected by international law.
Multiple Assembler Programs | CICS Applications |