5) debugging and error trapping · exec processes in the tso/e address space: •ts use ts (trace...

64
Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies. This course has been prepared by Milos Forman for MCoE needs only! 5) Debugging and error trapping Instructions: SIGNAL/CALL, TRACE, TSO Immediate commands HT, RT, HE, HI, TE, TS. Resources: TSO/E REXX User’s Guide Chapter 9. Diagnosing Problems Within an Exec

Upload: others

Post on 26-Apr-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

5) Debugging and error trapping

Instructions: SIGNAL/CALL, TRACE,

TSO Immediate commands HT, RT, HE, HI, TE, TS.

Resources: TSO/E REXX User’s Guide Chapter 9. Diagnosing Problems Within an Exec

Page 2: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

PROPRIETARY AND CONFIDENTIAL INFORMATION

TO THE EXTENT PERMITTED BY APPLICABLE LAW, CA PROVIDES THIS DOCUMENTATION "ASIS" WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT LIMITATION, ANY IMPLIEDWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ORNONINFRINGEMENT. IN NO EVENT WILL CA BE LIABLE TO THE END USER OR ANY THIRDPARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THISDOCUMENTATION, INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESSINTERRUPTION, GOODWILL OR LOST DATA, EVEN IF CA IS EXPRESSLY ADVISED OF SUCHLOSS OR DAMAGE.THE USE OF ANY PRODUCT REFERENCED IN THIS DOCUMENTATION AND THISDOCUMENTATION IS GOVERNED BY THE END USER’S APPLICABLE LICENSE AGREEMENT.The manufacturer of this documentation is CA, Inc.Provided with "Restricted Rights" as set forth in 48 C.F.R. Section 12.212, 48 C.F.R. Sections52.227-19(c)(1) and (2) or DFARS Section 252.227.7013(c)(1)(ii) or applicable successorprovisions.

RESTRICTED RIGHTS LEGEND

These education materials and related computer software program (hereinafter referred to asthe "Education Materials") is for the end user’s informational purposes only and is subject tochange or withdrawal by CA, Inc. at any time.These Education Materials may not be copied, transferred, reproduced, disclosed ordistributed, in whole or in part, without the prior written consent of CA. These EducationMaterials are proprietary information and a trade secret of CA. Title to these EducationMaterials remains with CA, and these Education Materials are protected by the copyright lawsof the United States and international treaties. All authorized reproductions must be markedwith this legend.

Page 3: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

Debugging

Page 4: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

Interactive Tracing

Page 5: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

TRACE

Page 6: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

TRACE - output

Page 7: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE A

Page 8: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE A (Cont.)

Page 9: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE C

TRACE E

Page 10: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

TRACE F

Page 11: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE I

Page 12: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

TRACE I - output

Page 13: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE L

TRACE N

Page 14: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE O

Page 15: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

TRACE R

Page 16: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

TRACE S

Page 17: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE

Page 18: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

SIGNAL

Page 19: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

SIGNAL

Page 20: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

SIGNAL

Page 21: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

SIGNAL

Page 22: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

SIGNAL ERROR Trapping

()

Page 23: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

SIGNAL ERROR Trapping

Page 24: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

CALL – ERROR Trapping

Page 25: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

Immediate commands

Page 26: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

HE

Page 27: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

HI

Page 28: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

HT

Page 29: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

RT

Page 30: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TE

TS

Page 31: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

Work section 5.2

Page 32: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

Additional Program

Page 33: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

1 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

5) Debugging and error trapping

Instructions: SIGNAL/CALL, TRACE,

TSO Immediate commands HT, RT, HE, HI, TE, TS.

Resources: TSO/E REXX User’s Guide Chapter 9. Diagnosing Problems Within an Exec

Page 34: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

2 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

PROPRIETARY AND CONFIDENTIAL INFORMATION

TO THE EXTENT PERMITTED BY APPLICABLE LAW, CA PROVIDES THIS DOCUMENTATION "ASIS" WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT LIMITATION, ANY IMPLIEDWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE ORNONINFRINGEMENT. IN NO EVENT WILL CA BE LIABLE TO THE END USER OR ANY THIRDPARTY FOR ANY LOSS OR DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THISDOCUMENTATION, INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESSINTERRUPTION, GOODWILL OR LOST DATA, EVEN IF CA IS EXPRESSLY ADVISED OF SUCHLOSS OR DAMAGE.THE USE OF ANY PRODUCT REFERENCED IN THIS DOCUMENTATION AND THISDOCUMENTATION IS GOVERNED BY THE END USER’S APPLICABLE LICENSE AGREEMENT.The manufacturer of this documentation is CA, Inc.Provided with "Restricted Rights" as set forth in 48 C.F.R. Section 12.212, 48 C.F.R. Sections52.227-19(c)(1) and (2) or DFARS Section 252.227.7013(c)(1)(ii) or applicable successorprovisions.

RESTRICTED RIGHTS LEGEND

These education materials and related computer software program (hereinafter referred to asthe "Education Materials") is for the end user’s informational purposes only and is subject tochange or withdrawal by CA, Inc. at any time.These Education Materials may not be copied, transferred, reproduced, disclosed ordistributed, in whole or in part, without the prior written consent of CA. These EducationMaterials are proprietary information and a trade secret of CA. Title to these EducationMaterials remains with CA, and these Education Materials are protected by the copyright lawsof the United States and international treaties. All authorized reproductions must be markedwith this legend.

Page 35: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

3 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

Debugging

Page 36: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

4

4 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

Interactive Tracing

EXECUTIL lets you change various characteristics that control how an exec processes in the TSO/E address space:•TS Use TS (Trace Start) to start tracing execs.•TE Use TE (Trace End) to end tracing execs.•HT Use HT (Halt Typing) to suppress terminal output generated by an exec.•RT Use RT (Resume Typing) to resume terminal output that was previously suppressed.•HI Use HI (Halt Interpretation) to halt the interpretation of all execs that are currently running in the language processor environment.

Page 37: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

5

5 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

TRACE

•trace all - all REXX clauses are traced before they execute.

•trace commands - all TSO commands are traced before they are executed and any non-zero RC returned by a TSO command is also traced.

•trace error - any TSO command returning a non-zero RC is traced after it executes.

•trace intermediates - all clauses are traced before they execute, and the “intermediate” (working) results of evaluations of expressions and any substituted names are traced too.

•trace labels - labels on instructions that execute are traced.

•trace normal - a TSO command that returns a negative RC is traced after it executes – this trace option is the default if no other is specified.

•trace off - turns off all tracing.

•trace results - all REXX clauses are traced before they execute, and the final results of evaluating each expression are also traced. The values that are assigned via a PULL, and PARSE instructions are traced.

•trace scan - all clauses in the exec are traced, but not executed.

Page 38: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

6 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

TRACE - output

Page 39: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

7

7 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE A

trace all - all REXX clauses are traced before they execute.

Following examples do not need necessarily work correctly. The trace instruction is important only. Change trace options and execute them.

See ‘MCOE.REXA.REXX(RX20156)’

Page 40: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

8

8 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE A (Cont.)

Output from previous example execution.

Page 41: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

9

9 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE C

TRACE E

trace commands - all TSO commands are traced before they are executed and any non-zero RC returned by a TSO command is also traced.

trace error - any TSO command returning a non-zero RC is traced after it executes.

Page 42: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

10

10 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

TRACE F

trace failure (same as normal) - a TSO command that returns a negative RC is traced after it executes – this trace option is the default if no other is specified.

Page 43: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

11

11 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE I

trace intermediates - all clauses are traced before they execute, and the “intermediate” (working) results of evaluations of expressions and any substituted names are traced too.

See ‘MCOE.REXA.REXX(RX201511)’

Page 44: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

12 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

TRACE I - output

Page 45: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

13

13 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE L

TRACE N

trace labels - labels on instructions that execute are traced.

trace normal - a TSO command that returns a negative RC is traced after it executes – this trace option is the default if no other is specified. See trace failure.

Page 46: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

14

14 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE O

trace off - turns off all tracing.

Page 47: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

15

15 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

TRACE R

trace results - all REXX clauses are traced before they execute, and the final results of evaluating each expression are also traced. The values that are assigned via a PULL, and PARSE instructions are traced.

Page 48: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

16

16 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

TRACE S

trace scan - all clauses in the exec are traced, but not executed.

Page 49: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

17 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TRACE

Page 50: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

18

18 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

SIGNAL

SIGNAL controls the trapping of certain conditions (if you specify ON or OFF).

ERROR - A TSO command ends with a non-zero RC. The string that was processed and resulted in the error condition.

FAILURE - A TSO command ends with a negative RC. The string that was processed and resulted in the failure condition.

HALT - The terminal attention key is pressed and HI (Halt Interpretation) command is entered. Any string associated with the halt request. This can be the null string if no string was provided.

NOVALUE - An uninitialized variable is used in an expression or in a parse template. The derived name of the variable whose attempted reference caused the NOVALUE condition. The NOVALUE condition trap can be enabled only using SIGNAL ON.

SYNTAX - A REXX interpretation syntax error happens. Any string the language processor associated with the error. This can be the null string if you did not provide a specific string. Note that the special variables RC and SIGL provide information on the nature and position of the processing error.

See ‘MCOE.REXA.REXX(RX201519)’

Page 51: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

19 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

SIGNAL

Page 52: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

20 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

SIGNAL

Page 53: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

21 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

SIGNAL

Page 54: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

22

22 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

SIGNAL ERROR Trapping

()

Again: see ‘MCOE.REXA.REXX(RX201519)’

Page 55: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

23

23 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

SIGNAL ERROR Trapping

NOVALUE

An uninitialized variable is used in an expression or in a parse template. The derived name of the variable whose attempted reference caused the NOVALUE condition. The NOVALUE condition trap can be enabled only using SIGNAL ON.

See ‘MCOE.REXA.REXX(RX201521)’

Page 56: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

24

24 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

CALL – ERROR Trapping

CALL

calls a routine (if you specify name) or controls the trapping of certain conditions (if you specify ON or OFF). To control trapping, you specify OFF or ON and the condition you want to trap. OFF turns off the specified condition trap. ON turns on the specified condition trap. It works similarly like SIGNAL ON instruction but If you use CALL, the trapname can be an internal label, a built-in function, or an external routine. If you use SIGNAL, the trapname can be only an internal label.

Page 57: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

25

25 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

Immediate commands

See ‘MCOE.REXA.REXX(IMMEDIAT)’ – be careful to test it, immediate commands are strong.

Page 58: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

26 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

HE

Page 59: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

27 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

HI

Page 60: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

28 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

HT

Page 61: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

29 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

RT

Page 62: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

30 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

TE

TS

Page 63: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

31

31 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

Work section 5.2

Page 64: 5) Debugging and error trapping · exec processes in the TSO/E address space: •TS Use TS (Trace Start) to start tracing execs. •TE Use TE (Trace End) to end tracing execs. •HT

32

32 Copyright ©2006 CA. All rights reserved. All trademarks, trade names, services marks and logos referenced herein belong to their respective companies.

This course has been prepared by Milos Forman for MCoE needs only!

Additional Program

I cannot see any difference between trace i and trace(i) specification, you do not need to test it.

And see the ‘MCOE.REXA.REXX(RX201521)’ regarding the last assignment.