z/OS ISPF User's Guide Vol I
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


CHAIN command

z/OS ISPF User's Guide Vol I
SC19-3627-00

Read syntax diagramSkip visual syntax diagram
>>-CHAIN--+------------------------+---------------------------><
          | .-0------.             |   
          '-+--------+--+--------+-'   
            '-offset-'  '-length-'     

where:
offset
A hexadecimal offset of the 4-byte pointer to the next link.
length
The length of each element in hexadecimal. The default for length is whatever fits on one line in the current display format.

When you are viewing a linked list, you can use the CHAIN command to view more than one link at a time.

The chain is considered terminated when one of these is found:
  • A pointer of zero.
  • A pointer to the first node.
  • A pointer to unavailable storage.

Entering the CHAIN command a second time turns the chain formatting off.

For example, to see the current ASCB chain, enter ISRDDN and type

B 10.??+C?
CHAIN 4 20

You see a screen similar to Figure 1.

Figure 1. CHAIN Storage Format
 BROWSE    STORAGE  Start:00F90100                    Line 00000001 Col 001 080
      +0 (00F90100)   C1E2C3C2 00F92B80 00F90280 00000000  * ASCB.9.Ï.9.Ï.... *
     +10 (00F90110)   008FD788 00029982 00000000 00000000  * ..Ph..rb........ *

     +30 (00F92B80)   C1E2C3C2 00F98500 00F90100 00000000  * ASCB.9e..9...... *
     +40 (00F92B90)   008FD880 000005B4 00000000 00000000  * ..QÏ...®........ *

     +60 (00F98500)   C1E2C3C2 00F90700 00F92B80 00000000  * ASCB.9...9.Ï.... *
     +70 (00F98510)   008FD598 0000E527 00000000 00000000  * ..Nq..V......... *

     +90 (00F90700)   C1E2C3C2 00F90580 00F98500 00000000  * ASCB.9.Ï.9e..... *
     +A0 (00F90710)   008FD690 00009130 00000000 00000000  * ..O...j......... *

     +C0 (00F90580)   C1E2C3C2 00000000 00F90700 00000000  * ASCB.....9...... *
     +D0 (00F90590)   008FD788 00007EC0 00000000 00000000  * ..Ph..={........ *

******************************** Bottom of Data ********************************




 Command ===> ________________________________________________ Scroll ===> PAGE
  F1=HELP      F2=          F3=END       F4=DATASETS  F5=FIND      F6=CHANGE
  F9=SWAP     F10=LEFT     F11=RIGHT    F12=SUBMIT

In the CHAIN format display, the offsets on the left are the offsets within a particular link followed by the actual address of the start of the line.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014