27.12.2012 Views

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

z/VM: CP Commands and Utilities Reference - z/VM - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Ex. Datalink Data Collected<br />

--- -------- --------------<br />

1) 4000 00005008<br />

2) 4000% 00005555<br />

3) 5000%.8 0000C000 0000D000<br />

4) G5 00005000<br />

5) G5.4 0000A004<br />

6) G5+4 00001144<br />

7) G5+4% contents of 1144<br />

8) G5+G6+8% contents of 11110000<br />

9) G5%%.C C4C1E3C3 E3D9C1D7 FFFF0000<br />

10) G4:6 00004000 00005000 00006000<br />

11) G6+A.2 A000<br />

12) G4+8%+4%.A C4C1E3C3 E3D9C1D7 FFFF<br />

13) G5%+4 0000D000<br />

14) G5%+4% DDDDDDDD<br />

15) IF G5%%.8 EQ G4+8%+4%<br />

THEN DL G4+8 0000A000<br />

ELSE DL G4<br />

ENDIF<br />

Note: Registers, when specified alone as in example 4 above, do not default to an<br />

indirection <strong>and</strong> a length of 4, as other data link values do. In this case, the<br />

data collected is simply the contents of the register.<br />

Examples of Data Link Definition: The following example shows how multiple<br />

TRSOURCE comm<strong>and</strong> invocations are used to set up a conditional data link trace.<br />

1) TRSOURCE ID TRC1 TYPE DATA LOC H<strong>CP</strong>NOS + 34 5840C08C<br />

2) TRSOURCE ID TRC1 DL GB<br />

3) TRSOURCE ID TRC1 IF GB+80.8 EQ C’OPERATOR’<br />

4) TRSOURCE ID TRC1 THEN DL G0:F<br />

5) TRSOURCE ID TRC1 ELSE IF GB+80.8 EQ C’MAINT’<br />

6) TRSOURCE ID TRC1 THEN DL GC.30<br />

7) TRSOURCE ID TRC1 ENDIF<br />

8) TRSOURCE ID TRC1 DL G8<br />

9) TRSOURCE ID TRC1 ENDIF<br />

TRSOURCE ID (Definition Oper<strong>and</strong>s)<br />

These TRSOURCE comm<strong>and</strong>s could be defined in an EXEC file. In this example, line 1<br />

defines where the trace is defined. Line 2 shows that when this instruction in H<strong>CP</strong>NOS<br />

executed, an unconditional data link will show the contents of register 11. Lines 3 through 9<br />

define a conditional data link. Notice that in lines 6 <strong>and</strong> 8, spaces are used to improve<br />

readability.<br />

Chapter 2. <strong>CP</strong> <strong>Comm<strong>and</strong>s</strong> 1693

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!