Home SELCOPY CBLVCAT SELCOPY/i Trial/Prices CBL SiteMap
 
Multiple Information Retrieval, Manipulation & Update for IBM Mainframe, iSeries, UNIX & PC Platforms


Interactive SELCOPY Debugger and Development Environment

SELCOPY Interactive debug is a major new feature for SELCOPY developers that executes within the CBL interactive environment (SELCOPY/i).

Note: SELCOPY/i is NOT a separately licensable product but included within the SELCOPY product bundle.

For more information on the standard features available to SELCOPY/i users and also SELCOPY Interactive product demonstrations, please see the separate SELCOPY/i pages.

SELCOPY Interactive is a Multiple Document Interface (MDI) application supporting CBLe edit, List and storage type child windows. By default, the following child windows are displayed when SELCOPY is started:

  1. SYSIN - SELCOPY Control Statements.
  2. Work Area - (or Input Record if WORKLEN is not specifed.)
  3. SYSPRINT - SELCOPY Output Listing.
  4. TRACE - Executed SELCOPY statements.

Other SELCOPY Interactive windows include:

  1. WTO Log - SELCOPY Console output.
  2. SQL Log - SELCOPY DB2 SQL Log.
  3. @ Pointers - List of @ Pointer values.
  4. EQUates - List of User assigned EQUated values.
  5. POS Windows - Storage display of User fields and SELCOPY special positions.

SELCOPY IDE 43x80
Figure 1. SELCOPY Interactive Window.

On startup, SELCOPY is loaded and executed so that processing stops prior to execution of the first control statement. Users can then execute SELCOPY to completion, step through the SELCOPY statements one at a time or set break points to stop execution at a selected control statement.

SELCOPY storage fields, work area, @pointer and LRECL values can be easily monitored and even updated over the course of the job execution.

SELCOPY POSitional expressions (represented by an arithmetic combination of @ pointers, EQUate names and integer values) may also be TRACKed in storage windows. As the value of the expression changes, the target storage position is highlighted in a user assigned colour.



SELCOPY SYSIN/SYSIPT Control Statements Window

The SYSIN/SYSIPT window is a CBLe edit view that contains the control statement source file as required for execution of SELCOPY. This window highlights the current operation and allows the user to set and unset break points.

If possible, the control statements file is edited read/write. If the file contents are altered during the SELCOPY execution, then the alterations can be saved and the job rerun using the RR command or the ReRun menu item.

The contents of the window scroll automatically in order to display the current statement in the SELCOPY execution. As for any edit view, CBLe commands and macros may be used to manipulate, highlight and locate data in the view (e.g. FIND, CHANGE, TAG, ALL, SET ZONE, etc.)

In addition to any highlighting of user TRACKed variables, during the course of execution, control statements are highlighted as follows:

  1. Next executable SELCOPY statement. Default highlight - pink reverse video.

  2. Break Point. Default highlight - red reverse video.

Closing the SYSIN window also exits SELCOPY Interactive.

SYSIN Control Statements
Figure 2. SYSIN Control Statements.



Point-and-Shoot Options Popup Menu

All CBLe type SELCOPY Interactive windows, including the SYSIN/SYSIPT and SYSPRINT/SYSLST windows, support the point-and-shoot options popup menu, invoked by hitting PF4. The menu enables the user to quickly and easily perform commonly used tasks which include opening a POS storage window and tracking pointer variables.

The cursor position within the edited data identifies the focus text to be referenced in items of the point-and-shoot menu.

Point-and-Shoot Options Popup Menu
Figure 3. Point-and-Shoot Options Popup Menu.



SELCOPY SYSPRINT Output Window

SELCOPY Interactive intercepts output to SYSPRINT/SYSLST and displays it in the SYSPRINT window instead. For this reason, SYSPRINT or SYSLST does not need to be allocated and no output is written to the system spool.

The SYSPRINT window is an edit view which supports execution of CBLe commands and macros. The contents of the window scroll automatically to display any new output to SYSPRINT/SYSLST. Data written to the SYSPRINT window is maintained until the SELCOPY Interactive session is closed. Therefore, so long as the SELCOPY Interactive session is not closed, the job may be re-run any number of times without losing the SYSPRINT/SYSLST output from a previous run.

SYSPRINT Window
Figure 4. SYSPRINT Window.



Work Area and POS Storage Windows

The current status of the user work area (or input record buffer if no work area is allocated) is displayed in the Work Area and POS storage display windows. Note, if WORKLEN is not supplied, the Work Area window has the title, Current Input Record.

The contents of the storage window may be scrolled to display different positions in the work area. Alternatively, storage starting at a specific position in the work area may be displayed simply by entering the position in the first work area position, in the first row of the storage window (highlighted in red by default.)

Data in the work area may be altered manually at any point during the run by overtyping text in either the character or hexadecimal display. A change to text in the one display will automatically be reflected in the other. This allows users to test conditions based on alternative input data without having to re-start the SELCOPY run.

If a TRACKed pointer position is within the storage window display, then that position is highlighted with a user nominated colour in reverse video.

Work Area/Current Input Record Window.
Figure 5. Work Area/Current Input Record Window.

Any number of storage display windows may be opened pointing to the start of the work area (command: Window WORKLEN) or pointing at any position that may be resolved by a valid SELCOPY POS expression. POS expressions may contain any combination of SELCOPY reserved POS names (e.g. DATE), @ pointers, EQUate names and numeric integers. e.g.

WINDOW POS @ARR+MARRE-10

At each break in the SELCOPY execution, the POS expression is re-evaluated and the contents of the POS window redisplayed starting at the new position in storage.

POS Expression Window.
Figure 6. POS Expression Window.

Furthermore, the appearance of any individual storage window may be updated using the storage window display options popup menu defined on PF5 by default.

Storage Window Popup Menu.
Figure 7. Storage Window Popup Menu.



TRACE Window

The TRACE window is a CBLe edit view that contains all the SELCOPY control statements at which processing has been stopped. i.e the point at which a break point was encountered. Each logged statement begins with the statement's selection id.

Note that the STEPINTO and STEPOVER commands dynamically set and unset break points to stop execution after the next control statements to be executed. Therefore, when stepping through the control statements, the TRACE window displays a log of the statements executed so far.

Trace Window Log.
Figure 8. Trace Window Log.



SQL Log Window

The SQL Log window is an edit view which supports execution of CBLe commands and macros.

A SELCOPY job that submits SQL statements to a DB2 data base, also writes detailed information about the SELCOPY SQL processing to a data set allocated to ddname CBLSQLOG.

SELCOPY Interactive intercepts output to CBLSQLOG and displays it in the SQL Log window instead. Because of this, CBLSQLOG does not need to be allocated to display this information.

SQL Window Log.
Figure 9. SQL Window Log.



WTO Log Window

The WTO Log window is an edit view which supports execution of CBLe commands and macros.

SYSLOG output to the Operator's Console, TSO, CMS or ICCF user terminals is intercepted by SELCOPY Interactive and is displayed in the WTOLOG window instead.

The WTO Log window is opened automatically when SYSLOG output is received. This may be warning/error messages returned by SELCOPY, or output generated by a SELCOPY LOG operation.

SQL Window Log.
Figure 10. WTO Window Log.



EQUates and @ Pointer Windows

The Equates window and @ Pointers window are list type windows supporting select, sort and filter.

All equated names and their values, set by the user via an EQU statement and subsequently allocated by SELCOPY during control statement analysis, are displayed in the Equates window.

The current status of the @ pointer, LRECL and of all the user @ pointers used in the current execution of SELCOPY, is displayed in the @ Pointer window.

SQL Window Log.
Figure 11. Equates List Window.
SQL Window Log.
Figure 12. @ Pointers List Window.



Non-standard 3270 Terminal Displays

The CBL Interactive Environment and SELCOPY Interactive take full advantage of large 3270 terminal sizes and colour display that may be achieved using IBM-Dynamic TN3270E VTAM logmodes.

CBL recommends that system administrators configure the TN3270 servers and 3270 emulation software to allow users to start emulated terminals with non-standard 3270 terminal sizes.

See the SELCOPY/i 3270 Emulators page and IBM's Techdocs library entry, Creating dynamic 3270 screen size definitions for increased productivity for details.

SELCOPY Interactive 62x160.
Figure 13. SELCOPY Interactive 62x160.

Top © 2005 Compute (Bridgend) Limited
http://www.cbl.com/selccbli.html
2009/07/20 17:32:11