SET LIST BY SUBSCRIPT command (Enterprise PL/I, full-screen mode only)

Controls whether z/OS® Debugger displays elements in an array as they are stored in memory.

The default setting is OFF.

Read syntax diagramSkip visual syntax diagramSETLISTBYSUBSCRIPT ONOFF ;
ON
Indicates that z/OS Debugger displays elements of a PL/I array as they are stored in memory.
OFF
Indicates that z/OS Debugger displays elements of a PL/I array ordered by element.

Examples

Assume you declare the following array in your program:
DCL 01 STRUCA(3),            
           05 FIELD1 CHAR(9),
           05 FIELD2 CHAR(9);
If you run the command LIST STRUCA, with SET LIST BY SUBSCRIPT OFF (the default setting), z/OS Debugger displays the following results:
 LIST STRUCA ;                    
STRUCA.FIELD1(1) = 'MYFIELDB1'    
STRUCA.FIELD1(2) = 'MYFIELDB2'    
STRUCA.FIELD1(3) = 'MYFIELDB3'    
STRUCA.FIELD2(1) = 'MYFIELDB1'    
STRUCA.FIELD2(2) = 'MYFIELDB2'    
STRUCA.FIELD2(3) = 'MYFIELDB3'    
If you run the command LIST STRUCA after running the command SET LIST BY SUBSCRIPT ON, z/OS Debugger displays the following results:
 LIST STRUCA ;                  
STRUCA.FIELD1(1) = 'MYFIELDB1'  
STRUCA.FIELD2(1) = 'MYFIELDB1'  
STRUCA.FIELD1(2) = 'MYFIELDB2'  
STRUCA.FIELD2(2) = 'MYFIELDB2'  
STRUCA.FIELD1(3) = 'MYFIELDB3'  
STRUCA.FIELD2(3) = 'MYFIELDB3'  

Refer to the following topics for more information related to the material discussed in this topic.