Chapter Contents

Previous

Next
Running the Debugger under TSO

General Instructions

This section provides specific instructions for running the SAS/C Debugger under TSO. SeeQuick Start to Using the Debugger under TSO for more general information.


Compiling Your Source Files

Compile each source file that you want to debug with the debug compiler option. Use the LC370 CLIST in order to compile your program. If you use the recommended naming conventions for your source data set and debugger data set (userid.pdsname.C and userid.pdsname.DBGLIB) and you do not fully qualify your source data set when you invoke the CLIST, the CLIST automatically associates your debugger file with the DDname SYSDBLIB. Otherwise, you are first prompted for the name of your debugger data set, and then the CLIST associates it with the DDname SYSDBLIB.

.


Linking Your Programs

Use the CLK370 CLISTin order to link your programs. For detailed instructions, see the SAS/C Compiler and Library User's Guide.

Linking C++ template programs requires the SYSDBLIB DD statement as well. The default option format for SYSDBLIB is dbglib(ddn:sysdblib), and the default filename format is ddn:sysdblib(sname).


Invoking the Debugger under TSO

Allocate data sets that are needed at run time, and call the debugger.

  1. Issue a TSO ALLOCATE command for the debugger symbol file table. This is the same data set name that is defined as DDname SYSDBLIB in the compile step. When you invoke the debugger, this data set should have a DDname of DBGLIB. If you do not allocate DBGLIB before you invoke the debugger, the debugger prompts you for it. Note that if you compile with the sname option, the member name in DBGLIB is the section name that you specify. Otherwise, the member name is the default section name.

  2. If you have moved your source in the time since you compiled the program, associate the DDname DBGSRC with the data set that contains the source.

  3. Invoke the debugger by using one of the following routines:

  4. In a line-mode session, you can save TSO output. The TSO Session Manager enables you to copy output from your screen (TSOOUT) to a sequential data set or a partitioned data set member using the TSO SMCOPY (Session Manager Copy) command. For example, to copy debugger output to a member OUT5 of a partitioned data set, type the following:
    smc fs(tsoout) tds('userid.group.type (out5)') asis

    where TSOOUT is the TSO output stream (that is, your terminal screen), and userid.group.type identifies a partitioned data set. OUT5 is the data set member.

    For details about the SMCOPY command, see the IBM publication OS/390 V2R9.0 SC28-1969 TSO Command Reference.


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.