QUERY MSLINK command

Use the QUERY MSLINK command to query information about the definition and status of specified logical links.

Subsections:

Example 2 for QUERY MSLINK command

TSO SPOC input:

QUERY MSLINK NAME(LNK12*02) SHOW(MSNAME)

TSO SPOC output:

MSLink   LMSLink# MbrName    CC LMSName  LSIDR LSIDL 
LNK12C02       18 IMS1        0 LINK12C2    92    72 
LNK12M02        9 IMS1        0 ELINK126    54    46 
LNK12T02       23 IMS1        0 LINK12T2    85    75 
LNK12T02       23 IMS1        0 LINK12T3    97    75 
LNK12V02       10 IMS1        0 LINK12Y     90   500 
LNK12V02       10 IMS1        0 LINK13V    266  2036 
LNK12V02       10 IMS1        0 LINK13X     80   300 
LNK12V02       10 IMS1        0 LINK12V1    20    10 
LNK12V02       10 IMS1        0 LINK13V1    36    16 
LNK12V02       10 IMS1        0 LINK12V    256  1012

OM API input:

CMD(QRY MSLINK NAME(LNK12*02) SHOW(MSNAME))

OM API output:

<imsout>                                      
<ctl>                                         
<omname>OM1OM   </omname>                     
<omvsn>1.7.0</omvsn>                          
<xmlvsn>20  </xmlvsn>                         
<statime>2014.283 16:56:50.714836</statime>   
<stotime>2014.283 16:56:50.715191</stotime>   
<staseq>CDE24B82DA0D46F4</staseq>                                       
<stoseq>CDE24B82DA2370F4</stoseq>                                       
<rqsttkn1>USRT011 10095650</rqsttkn1>                                   
<rc>00000000</rc>                                                       
<rsn>00000000</rsn>                                                     
</ctl>                                                                  
<cmd>                                                                   
<master>IMS1    </master>                                               
<userid>USRT011 </userid>                                               
<verb>QRY </verb>                                                       
<kwd>MSLINK          </kwd>                                             
<input>QRY MSLINK NAME(LNK12*02) SHOW(MSNAME) </input>                  
</cmd>                                                                  
<cmdrsphdr>                                                             
<hdr slbl="MSL" llbl="MSLink" scope="LCL" sort="a" key="1" scroll="no"  
 len="8" dtype="CHAR" align="left" skipb="no" />                        
<hdr slbl="LINKN" llbl="LMSLink#" scope="LCL" sort="a" key="2"          
 scroll="no" len="4" dtype="INT" align="right" skipb="no" />            
<hdr slbl="MBR" llbl="MbrName" scope="LCL" sort="a" key="4" scroll="no" 
 len="8" dtype="CHAR" align="left" skipb="no" />                        
<hdr slbl="CC" llbl="CC" scope="LCL" sort="n" key="0" scroll="yes"      
 len="4" dtype="INT" align="right" skipb="no" />                        
<hdr slbl="MSN" llbl="LMSName" scope="LCL" sort="n" key="0"             
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="no" />              
<hdr slbl="SIDR" llbl="LSIDR" scope="LCL" sort="n" key="0" scroll="yes"    
 len="4" dtype="INT" align="right" skipb="no" />                           
<hdr slbl="SIDL" llbl="LSIDL" scope="LCL" sort="n" key="0" scroll="yes"    
 len="4" dtype="INT" align="right" skipb="no" />                           
</cmdrsphdr>                                                               
<cmdrspdata>                                                               
<rsp>MSL(LNK12002) LINKN(5) MBR(IMS1) CC(   0) MSN(ELINK120) SIDR(26)      
 SIDL(16) </rsp>                                                           
<rsp>MSL(LNK12002) LINKN(5) MBR(IMS1) CC(   0) MSN(ELINK122) SIDR(29)      
 SIDL(19) </rsp>                                                           
<rsp>MSL(LNK12M02) LINKN(9) MBR(IMS1) CC(   0) MSN(ELINK126) SIDR(54)      
 SIDL(46) </rsp>                                                           
<rsp>MSL(LNK12V02) LINKN(10) MBR(IMS1) CC(   0) MSN(LINK12V1) SIDR(20)     
 SIDL(10) </rsp>                                                           
<rsp>MSL(LNK12V02) LINKN(10) MBR(IMS1) CC(   0) MSN(LINK13V1) SIDR(36)     
 SIDL(16) </rsp>                                                           
<rsp>MSL(LNK12V02) LINKN(10) MBR(IMS1) CC(   0) MSN(LINK12V ) SIDR(256)    
 SIDL(1012) </rsp>                                                         
<rsp>MSL(LNK12V02) LINKN(10) MBR(IMS1) CC(   0) MSN(LINK12Y ) SIDR(90)     
 SIDL(500) </rsp>                                                          
<rsp>MSL(LNK12V02) LINKN(10) MBR(IMS1) CC(   0) MSN(LINK13V ) SIDR(266)    
 SIDL(2036) </rsp>                                                         
<rsp>MSL(LNK12V02) LINKN(10) MBR(IMS1) CC(   0) MSN(LINK13X ) SIDR(80)  
 SIDL(300) </rsp>                                                       
<rsp>MSL(LNK12C02) LINKN(18) MBR(IMS1) CC(   0) MSN(LINK12C2) SIDR(92)  
 SIDL(72) </rsp>                                                        
<rsp>MSL(LNK12T02) LINKN(23) MBR(IMS1) CC(   0) MSN(LINK12T2) SIDR(85)  
 SIDL(75) </rsp>                                                        
<rsp>MSL(LNK12T02) LINKN(23) MBR(IMS1) CC(   0) MSN(LINK12T3) SIDR(97)  
 SIDL(75) </rsp>                                                        
<rsp>MSL(LNK12X02) LINKN(26) MBR(IMS1) CC(   0) MSN(LINK12X2) SIDR(88)  
 SIDL(78) </rsp>                                                        
</cmdrspdata>                                                           
</imsout>

Explanation: The QUERY MSLINK command is issued with a wildcard parameter to display all of the MSC logical links that match the wildcard name, and displays the MSC logical link path (MSNAME) names, local SYSID, and remote SYSIDs.

Example 3 for QUERY MSLINK command

TSO SPOC input:
QUERY MSLINK NAME(LNK31V02,LNK32M01,LNK32C01,LNK32T01,LNKV001) SHOW(DEFN)

TSO SPOC output:

(screen 1)
MSLink   LMSLink# MbrName    CC Repo IMSid MSPLink  LMSPLink PID  LPID
LNKV001           IMS1        0 Y          PLNKV001          ZA       
LNKV001        33 IMS1        0      IMS1           PLNKV001      ZA  
LNK31V02          IMS1        0 Y          PLNKSON1          SA       
LNK31V02        8 IMS1        0      IMS1           PLNKSON1      SA  
LNK32C01          IMS1        0 Y          PLNK23CA          BD       
LNK32C01       12 IMS1        0      IMS1           PLNK23CA      BD  
LNK32M01          IMS1        0 Y          PLNK23M           BE       
LNK32M01        3 IMS1        0      IMS1           PLNK23M       BE  
LNK32T01          IMS1        0 Y          PLNK32TA          TD       
LNK32T01       20 IMS1        0      IMS1           PLNK32TA      TD
(screen 2)
MSLink   LMSLink# MbrName  Repo DefMdtbl LDefMdtbl  BufSize LBufSize
LNKV001           IMS1     Y                           4096         
LNKV001        33 IMS1                                          4096
LNK31V02          IMS1     Y    MTMSCVAA               1024         
LNK31V02        8 IMS1                   MTMSCVAA               1024
LNK32C01          IMS1     Y                           1024         
LNK32C01       12 IMS1                                          1024
LNK32M01          IMS1     Y                           1024         
LNK32M01        3 IMS1                                          1024
LNK32T01          IMS1     Y                          65536         
LNK32T01       20 IMS1                                         65536
(screen 3)
MSLink   LMSLink# MbrName  Repo Bandwidth LBandwidth ASR LASR BackUp LBackUp
LNKV001           IMS1     Y    OFF                  OFF          NO        
LNKV001        33 IMS1                    OFF            OFF              NO
LNK31V02          IMS1     Y    OFF                  OFF          NO        
LNK31V02        8 IMS1                    OFF            OFF              NO
LNK32C01          IMS1     Y    OFF                                         
LNK32C01       12 IMS1                    OFF                               
LNK32M01          IMS1     Y    OFF                                         
LNK32M01        3 IMS1                    OFF                               
LNK32T01          IMS1     Y    ON                                NO        
LNK32T01       20 IMS1                    ON                              NO
(screen 4)
MSLink   LMSLink# MbrName  Repo SyncOpt  LSyncOpt 
LNKV001           IMS1     Y    SYNCSESS          
LNKV001        33 IMS1                   SYNCSESS 
LNK31V02          IMS1     Y    FORCSESS          
LNK31V02        8 IMS1                   FORCSESS 
LNK32C01          IMS1     Y                      
LNK32C01       12 IMS1                            
LNK32M01          IMS1     Y                      
LNK32M01        3 IMS1                            
LNK32T01          IMS1     Y    SYNCSESS          
LNK32T01       20 IMS1                   SYNCSESS
(screen 5)
MSLink   LMSLink# MbrName  Repo TimeCreate           LTimeCreate         
LNKV001           IMS1     Y    2015.307 11:10:46.05                     
LNKV001        33 IMS1                               2015.307 11:10:46.05
LNK31V02          IMS1     Y    2015.307 11:09:46.97                     
LNK31V02        8 IMS1                               2015.307 11:09:46.97
LNK32C01          IMS1     Y    2015.307 11:09:46.97                     
LNK32C01       12 IMS1                               2015.307 11:09:46.97
LNK32M01          IMS1     Y    2015.307 11:09:46.97                     
LNK32M01        3 IMS1                               2015.307 11:09:46.97
LNK32T01          IMS1     Y    2015.307 11:09:46.97                     
LNK32T01       20 IMS1                               2015.307 11:09:46.97
(screen 6)
MSLink   LMSLink# MbrName  Repo TimeUpdate           LTimeUpdate
LNKV001           IMS1     Y                                    
LNKV001        33 IMS1                                          
LNK31V02          IMS1     Y                                    
LNK31V02        8 IMS1                                          
LNK32C01          IMS1     Y                                    
LNK32C01       12 IMS1                                          
LNK32M01          IMS1     Y                                    
LNK32M01        3 IMS1                                          
LNK32T01          IMS1     Y                                    
LNK32T01       20 IMS1                                          
(screen 7)
MSLink   LMSLink# MbrName  Repo TimeAccess
LNKV001           IMS1     Y                                    
LNKV001        33 IMS1                                          
LNK31V02          IMS1     Y                                    
LNK31V02        8 IMS1                                          
LNK32C01          IMS1     Y                                    
LNK32C01       12 IMS1                                          
LNK32M01          IMS1     Y                                    
LNK32M01        3 IMS1                                          
LNK32T01          IMS1     Y                                    
LNK32T01       20 IMS1             
OM API input:
CMD(QRY MSLINK NAME(LNK31V02,LNK32M01,LNK32C01,LNK32T01,LNKV001) SHOW(DEFN)
OM API output:
<cmd>
<master>IMS1    </master>
<userid>USRT011 </userid>
<verb>QRY </verb>
<kwd>MSLINK          </kwd>
<input>QRY MSLINK NAME(LNK31V02,LNK32M01,LNK32C01,LNK32T01,LNKV001)
 SHOW(DEFN) </input>
</cmd>
<cmdrsphdr>
<hdr slbl="MSL" llbl="MSLink" scope="LCL" sort="a" key="1" scroll="no"
 len="8" dtype="CHAR" align="left" skipb="no" />                        
<hdr slbl="LINKN" llbl="LMSLink#" scope="LCL" sort="a" key="2"          
 scroll="no" len="4" dtype="INT" align="right" skipb="no" />            
<hdr slbl="MBR" llbl="MbrName" scope="LCL" sort="a" key="4" scroll="no" 
 len="8" dtype="CHAR" align="left" skipb="no" />                        
<hdr slbl="CC" llbl="CC" scope="LCL" sort="n" key="0" scroll="yes"      
 len="4" dtype="INT" align="right" skipb="no" />  
<hdr slbl="CCTXT" llbl="CCText" scope="LCL" sort="n" key="0"         
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="yes" />       
<hdr slbl="REPO" llbl="Repo" scope="LCL" sort="d" key="2" scroll="no"
 len="1" dtype="CHAR" align="left" />                                
<hdr slbl="IMSID" llbl="IMSid" scope="GBL" sort="n" key="0"          
 scroll="yes" len="4" dtype="CHAR" align="left" skipb="yes" />       
<hdr slbl="RMSP" llbl="MSPLink" scope="GBL" sort="n" key="0"         
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="yes" />       
<hdr slbl="MSP" llbl="LMSPLink" scope="LCL" sort="n" key="0"         
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="yes" />       
<hdr slbl="RPID" llbl="PID" scope="GBL" sort="n" key="0" scroll="yes"
 len="4" dtype="CHAR" align="left" skipb="yes" />                    
<hdr slbl="PID" llbl="LPID" scope="LCL" sort="n" key="0" scroll="yes"
 len="4" dtype="CHAR" align="left" skipb="yes" />                    
<hdr slbl="RDMTB" llbl="DefMdtbl" scope="GBL" sort="n" key="0"       
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="yes" />       
<hdr slbl="DMTB" llbl="LDefMdtbl" scope="LCL" sort="n" key="0"       
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="yes" />       
<hdr slbl="AMTB" llbl="LActMdtbl" scope="LCL" sort="n" key="0"       
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="yes" />       
<hdr slbl="RBUFSZ" llbl="BufSize" scope="GBL" sort="n" key="0"       
 scroll="yes" len="8" dtype="INT" align="right" skipb="yes" />       
<hdr slbl="BUFSZ" llbl="LBufSize" scope="LCL" sort="n" key="0"       
scroll="yes" len="8" dtype="INT" align="right" skipb="yes" />       
<hdr slbl="RBANDW" llbl="Bandwidth" scope="GBL" sort="n" key="0"     
 scroll="yes" len="4" dtype="CHAR" align="left" skipb="yes" />       
<hdr slbl="BANDW" llbl="LBandwidth" scope="LCL" sort="n" key="0"     
 scroll="yes" len="4" dtype="CHAR" align="left" skipb="yes" />       
<hdr slbl="RASR" llbl="ASR" scope="GBL" sort="n" key="0" scroll="yes"
 len="3" dtype="CHAR" align="left" skipb="yes" />                    
<hdr slbl="ASR" llbl="LASR" scope="LCL" sort="n" key="0" scroll="yes"
 len="3" dtype="CHAR" align="left" skipb="yes" />                    
<hdr slbl="RBKUP" llbl="BackUp" scope="GBL" sort="n" key="0"         
 scroll="yes" len="2" dtype="CHAR" align="right" skipb="yes" />      
<hdr slbl="BKUP" llbl="LBackUp" scope="LCL" sort="n" key="0"         
 scroll="yes" len="2" dtype="CHAR" align="right" skipb="yes" />      
<hdr slbl="RSYNC" llbl="SyncOpt" scope="GBL" sort="n" key="0"        
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="yes" />       
<hdr slbl="SYNC" llbl="LSyncOpt" scope="GBL" sort="n" key="0"        
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="yes" />       
<hdr slbl="RTMCR" llbl="TimeCreate" scope="GBL" sort="n" key="0"     
 scroll="yes" len="20" dtype="CHAR" align="left" skipb="no" />       
<hdr slbl="TMCR" llbl="LTimeCreate" scope="LCL" sort="n" key="0"     
 scroll="yes" len="20" dtype="CHAR" align="left" skipb="no" />       
<hdr slbl="RTMUP" llbl="TimeUpdate" scope="GBL" sort="n" key="0"     
 scroll="yes" len="20" dtype="CHAR" align="left" skipb="no" />       
<hdr slbl="TMUP" llbl="LTimeUpdate" scope="LCL" sort="n" key="0"     
 scroll="yes" len="20" dtype="CHAR" align="left" skipb="no" />       
<hdr slbl="TMAC" llbl="LTimeAccess" scope="LCL" sort="n" key="0"     
 scroll="yes" len="20" dtype="CHAR" align="left" skipb="no" />       
<hdr slbl="TMIM" llbl="LTimeImport" scope="LCL" sort="n" key="0"     
 scroll="yes" len="20" dtype="CHAR" align="left" skipb="yes" />      
<hdr slbl="EXPN" llbl="ExportNeeded" scope="LCL" sort="y" key="0"    
 scroll="yes" len="1" dtype="CHAR" align="left" skipb="yes" />       
</cmdrsphdr>                                                         
<cmdrspdata>                                                         
<rsp>MSL(LNK31V02) LINKN(8) MBR(IMS1) CC(   0) MSP(PLNKSON1)         
 CID(00000000) PID(SA) DMTB(MTMSCVAA) CNTR(0) CNTS(0) ASR(OFF )      
 BUFSZ(1024) BANDW(OFF ) LSTT(STOCOMM,IDLE,COLDSESS) BKUP(NO)        
 SYNC(FORCSESS) TMCR(2015.307 11:09:46.97) DFNT(MSCGEN) IMSID(IMS1)  
</rsp>                                                               
<rsp>MSL(LNK32M01) LINKN(3) MBR(IMS1) CC(   0) MSP(PLNK23M ) PID(BE) 
 CNTR(0) CNTS(0) BUFSZ(1024) BANDW(OFF ) LSTT(STOCOMM,IDLE,COLDSESS) 
 TMCR(2015.307 11:09:46.97) DFNT(MSCGEN) IMSID(IMS1) </rsp>          
<rsp>MSL(LNK32C01) LINKN(12) MBR(IMS1) CC(   0) MSP(PLNK23CA) PID(BD)
 CNTR(0) CNTS(0) BUFSZ(1024) BANDW(OFF ) LSTT(STOCOMM,IDLE,NOTOPEN)  
 TMCR(2015.307 11:09:46.97) DFNT(MSCGEN) IMSID(IMS1) </rsp>          
<rsp>MSL(LNK32T01) LINKN(20) MBR(IMS1) CC(   0) MSP(PLNK32TA) PID(TD)
 CNTR(0) CNTS(0) BUFSZ(65536) BANDW(ON  ) LSTT(STOCOMM,IDLE,COLDSESS)
BKUP(NO) SYNC(SYNCSESS) TMCR(2015.307 11:09:46.97) DFNT(MSCGEN)      
 IMSID(IMS1) </rsp>                                                   
<rsp>MSL(LNKV001 ) LINKN(33) MBR(IMS1) CC(   0) MSP(PLNKV001)         
 CID(00000000) PID(ZA) CNTR(0) CNTS(0) ASR(OFF ) BUFSZ(4096) BANDW(OFF
 ) LSTT(STOCOMM,IDLE,COLDSESS) BKUP(NO) SYNC(SYNCSESS) TMCR(2015.307  
 11:10:46.05) DFNT(CREATE) IMSID(IMS1) </rsp>                         
<rsp>MSL(LNK31V02) MBR(IMS1    ) CC(   0) REPO(Y) IMSID() RASR(OFF)   
 RBKUP(NO) RBANDW(OFF) RBUFSZ(1024) RDMTB(MTMSCVAA) RMSP(PLNKSON1)    
 RPID(SA) RSYNC(FORCSESS) RTMCR(2015.307 11:09:46.97) </rsp>          
<rsp>MSL(LNK32M01) MBR(IMS1    ) CC(   0) REPO(Y) IMSID() RASR()      
 RBANDW(OFF) RBUFSZ(1024) RMSP(PLNK23M ) RPID(BE) RSYNC()             
 RTMCR(2015.307 11:09:46.97) </rsp>                                   
<rsp>MSL(LNK32C01) MBR(IMS1    ) CC(   0) REPO(Y) IMSID() RASR()      
 RBANDW(OFF) RBUFSZ(1024) RMSP(PLNK23CA) RPID(BD) RSYNC()             
 RTMCR(2015.307 11:09:46.97) </rsp>                                   
<rsp>MSL(LNK32T01) MBR(IMS1    ) CC(   0) REPO(Y) IMSID() RASR()      
 RBKUP(NO) RBANDW(ON ) RBUFSZ(65536) RMSP(PLNK32TA) RPID(TD)          
 RSYNC(SYNCSESS) RTMCR(2015.307 11:09:46.97) </rsp>                   
<rsp>MSL(LNKV001 ) MBR(IMS1    ) CC(   0) REPO(Y) IMSID() RASR(OFF)   
 RBKUP(NO) RBANDW(OFF) RBUFSZ(4096) RMSP(PLNKV001) RPID(ZA)           
 RSYNC(SYNCSESS) RTMCR(2015.307 11:10:46.05) </rsp>
</cmdrspdata>

Explanation: The QUERY command displays all four types of MSC logical links, including one that is dynamically created and one that has a mode table defined, so that all possible local and repository definition headers are displayed for all eight MSLINK attributes.

Example 4 for QUERY MSLINK command

TSO SPOC input:
QUERY MSLINK NAME(LNK12C01,LNK12M01) SHOW(EXPORTNEEDED)
TSO SPOC output:
MSLink   LMSLink# MbrName    CC ExportNeeded   
LNK12C01        2 IMS1        0 N              
LNK12M01        3 IMS1        0 N              
OM API input:
CMD(QRY MSLINK NAME(LNK12V01,LNK12M01) SHOW(EXPORTNEEDED)
OM API output:
<imsout>
<ctl>                                        
<omname>OM1OM   </omname>                    
<omvsn>1.7.0</omvsn>                         
<xmlvsn>20  </xmlvsn>                        
<statime>2015.322 22:08:27.436635</statime>  
<stotime>2015.322 22:08:27.436888</stotime>  
<staseq>CFDE82A7A765B1CA</staseq>                              
<stoseq>CFDE82A7A77584CA</stoseq>                              
<rqsttkn1>USRT011 10140827</rqsttkn1>                          
<rc>02000004</rc>                                              
<rsn>00001014</rsn>                                            
<rsnmsg>CSLN055I</rsnmsg>                                      
<rsntxt>At least one request completed with warning/s.</rsntxt>
</ctl>                                                         
<cmderr>                                                       
<mbr name="IMS1    ">                                          
<typ>IMS     </typ>                                            
<styp>DBDC    </styp>                                          
<rc>00000004</rc>                                              
<rsn>00001010</rsn>                                            
<rsntxt>No resources or matches found</rsntxt>                 
</mbr>                                                         
</cmderr>                                                      
<cmd>                                                                 
<master>IMS1    </master>                                             
<userid>USRT011 </userid>                                             
<verb>QRY </verb>                                                     
<kwd>MSLINK          </kwd>                                           
<input>QRY MSLINK NAME(LNK12C01,LNK12M01) SHOW(EXPORTNEEDED) </input>
</cmd>                                                                  
<cmdrsphdr>                                                             
<hdr slbl="MSL" llbl="MSLink" scope="LCL" sort="a" key="1" scroll="no"  
 len="8" dtype="CHAR" align="left" skipb="no" />                        
<hdr slbl="LINKN" llbl="LMSLink#" scope="LCL" sort="a" key="2"          
 scroll="no" len="4" dtype="INT" align="right" skipb="no" />            
<hdr slbl="MBR" llbl="MbrName" scope="LCL" sort="a" key="4" scroll="no" 
 len="8" dtype="CHAR" align="left" skipb="no" />                        
<hdr slbl="CC" llbl="CC" scope="LCL" sort="n" key="0" scroll="yes"      
 len="4" dtype="INT" align="right" skipb="no" />                        
<hdr slbl="CCTXT" llbl="CCText" scope="LCL" sort="n" key="0"            
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="yes" />          
<hdr slbl="EXPN" llbl="ExportNeeded" scope="LCL" sort="y" key="0"       
 scroll="yes" len="1" dtype="CHAR" align="left" skipb="yes" />          
</cmdrsphdr>                                                            
<cmdrspdata>                                                            
<rsp>MSL(LNK12C01) LINKN(2) MBR(IMS1) CC(   0) EXPN(N) </rsp>           
<rsp>MSL(LNK12M01) LINKN(3) MBR(IMS1) CC(   0) EXPN(N) </rsp>           
</cmdrspdata>

Explanation: This QUERY command displays whether export is needed for two MSC logical links that do not need to be exported. The resulting two lines of output have a completion code of zero, but a non-zero reason code of 1010 and reason text of No resources or matches found are returned.

Example 5: Querying statistics for a TCP/IP link

In this example, the QUERY MSLINK command is issued twice against the TCP/IP link LNK12T01: first with SHOW(ALL) specified to view the buffer size and second to view the statistics.

For this example, the Batch SPOC utility (CSLUSPOC) was used and configured to print the output in a column format by specifying F=BYCOL in the JCL.

TSO SPOC input to display the buffer size for the link:

QUERY MSLINK NAME(LNK12T01) SHOW(ALL)

TSO SPOC output that shows the link buffer size. For TCP/IP links, the bandwidth mode is always on.

(screen 1)
MSLink   LMSLink# MbrName    CC LMSPLink LPID LRecdCnt LSentCnt LDefMdtbl
LNK12T01       22 IMS1        0 PLNK12TA TA          0        0 
(scrolled to the right, screen 2)
MSLink   LMSLink# MbrName  LBufSize LBandwidth LAffin
LNK12T01       22 IMS1        65536 ON 
(scrolled to the right, screen 3)
MSLink   LMSLink# MbrName  LclStat                        LBackUp
LNK12T01       22 IMS1     STOCOMM,IDLE,COLDSESS,SYNCSESS      NO
(scrolled to the right, screen 4)
MSLink   LMSLink# MbrName  LTimeCreate          
LNK12T01       22 IMS1     2014.282 15:59:39.74
(scrolled to the right, screen 5)
MSLink   LMSLink# MbrName  LTimeUpdate          LTimeAccess          LDefnType  
LNK12T01       22 IMS1                                               MSCGEN

OM API input to display the buffer size for the link:

CMD(QRY MSLINK NAME(LNK12T01)  SHOW(ALL))

OM API output that shows the link buffer size:

<imsout>                                    
<ctl>                                       
<omname>OM1OM   </omname>                   
<omvsn>1.7.0</omvsn>                        
<xmlvsn>20  </xmlvsn>                       
<statime>2014.283 17:01:21.646214</statime> 
<stotime>2014.283 17:01:21.646548</stotime> 
<staseq>CDE24C853B68666A</staseq>                                       
<stoseq>CDE24C853B7D416A</stoseq>                                       
<rqsttkn1>USRT011 10100121</rqsttkn1>                                   
<rc>00000000</rc>                                                       
<rsn>00000000</rsn>                                                     
</ctl>                                                                  
<cmd>                                                                   
<master>IMS1    </master>                                               
<userid>USRT011 </userid>                                               
<verb>QRY </verb>                                                       
<kwd>MSLINK          </kwd>                                             
<input>QUERY MSLINK NAME(LNK12T01) SHOW(ALL) </input>                   
</cmd>                                                                  
<cmdrsphdr>                                                             
<hdr slbl="MSL" llbl="MSLink" scope="LCL" sort="a" key="1" scroll="no"  
 len="8" dtype="CHAR" align="left" skipb="no" />                        
<hdr slbl="LINKN" llbl="LMSLink#" scope="LCL" sort="a" key="2"          
 scroll="no" len="4" dtype="INT" align="right" skipb="no" />            
<hdr slbl="MBR" llbl="MbrName" scope="LCL" sort="a" key="4" scroll="no" 
 len="8" dtype="CHAR" align="left" skipb="no" />                        
<hdr slbl="CC" llbl="CC" scope="LCL" sort="n" key="0" scroll="yes"      
 len="4" dtype="INT" align="right" skipb="no" />                        
<hdr slbl="MSP" llbl="LMSPLink" scope="LCL" sort="n" key="0"            
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="yes" />         
<hdr slbl="CID" llbl="LCID" scope="LCL" sort="n" key="0" scroll="yes"  
 len="8" dtype="INT" align="left" skipb="yes" />                       
<hdr slbl="PID" llbl="LPID" scope="LCL" sort="n" key="0" scroll="yes"  
 len="4" dtype="CHAR" align="left" skipb="yes" />                      
<hdr slbl="CNTR" llbl="LRecdCnt" scope="LCL" sort="n" key="0"          
 scroll="yes" len="8" dtype="INT" align="right" skipb="yes" />         
<hdr slbl="CNTS" llbl="LSentCnt" scope="LCL" sort="n" key="0"          
 scroll="yes" len="8" dtype="INT" align="right" skipb="yes" />         
<hdr slbl="DMTB" llbl="LDefMdtbl" scope="LCL" sort="n" key="0"         
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="yes" />         
<hdr slbl="AMTB" llbl="LActMdtbl" scope="LCL" sort="n" key="0"         
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="yes" />         
<hdr slbl="BUFSZ" llbl="LBufSize" scope="LCL" sort="n" key="0"         
 scroll="yes" len="8" dtype="INT" align="right" skipb="yes" />         
<hdr slbl="BANDW" llbl="LBandwidth" scope="LCL" sort="n" key="0"       
 scroll="yes" len="4" dtype="CHAR" align="left" skipb="yes" />         
<hdr slbl="AFFIN" llbl="LAffin" scope="LCL" sort="n" key="0"           
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="no" />          
<hdr slbl="LSTT" llbl="LclStat" scope="LCL" sort="n" key="0"           
 scroll="yes" len="*" dtype="CHAR" align="left" skipb="no" />          
<hdr slbl="BKUP" llbl="LBackUp" scope="LCL" sort="n" key="0"           
 scroll="yes" len="2" dtype="CHAR" align="right" skipb="yes" />        
<hdr slbl="TMCR" llbl="LTimeCreate" scope="LCL" sort="n" key="0"     
 scroll="yes" len="20" dtype="CHAR" align="left" skipb="no" />       
<hdr slbl="TMUP" llbl="LTimeUpdate" scope="LCL" sort="n" key="0"     
 scroll="yes" len="20" dtype="CHAR" align="left" skipb="no" />       
<hdr slbl="TMAC" llbl="LTimeAccess" scope="LCL" sort="n" key="0"     
 scroll="yes" len="20" dtype="CHAR" align="left" skipb="no" />       
<hdr slbl="TMIM" llbl="LTimeImport" scope="LCL" sort="n" key="0"     
 scroll="yes" len="20" dtype="CHAR" align="left" skipb="yes" />      
<hdr slbl="DFNT" llbl="LDefnType" scope="LCL" sort="n" key="0"       
 scroll="yes" len="8" dtype="CHAR" align="left" skipb="no" />        
</cmdrsphdr>                                                         
<cmdrspdata>                                                         
<rsp>MSL(LNK12T01) LINKN(22) MBR(IMS1) CC(   0) MSP(PLNK12TA) PID(TA)
 DMTB(        ) CNTR(0) CNTS(0) BUFSZ(65536) BANDW(ON  )             
 LSTT(STOCOMM,IDLE,COLDSESS,SYNCSESS) BKUP(NO) TMCR(2014.282         
 15:59:39.74) DFNT(MSCGEN) </rsp>                                    
</cmdrspdata>                                                        
</imsout>

TSO SPOC input to display the link statistics:

QUERY MSLINK NAME(LNK12T01) SHOW(STATISTICS)

The TSO SPOC output of the link statistics for a TCP/IP link:

    Response for: QUERY MSLINK NAME(LNK12T01) SHOW(STATISTICS)
    MSLink   MSLink# MbrName    CC Option           Start_Time           Tot_Disp_CT Tot_Proc_Time Hi_Proc_Time
    -------- ------- -------- ---- ---------------- -------------------- ----------- ------------- ------------
    LNK12T01      22 IMS1        0 RESET,CHKPT      2010.209 11:52:59.39          16      0.020195     0.004190
    MSLink   MSLink# MbrName  Low_Proc_Time Avg_Proc_Time  Chkw_CT ChkwIO_CT Chkw_Rate Tot_Send_CT Tot_Msg_Send_CT
    -------- ------- -------- ------------- ------------- -------- --------- --------- ----------- ---------------
    LNK12T01      22 IMS1          0.000235      0.001262        5         2  0.000000           5               2
    MSLink   MSLink# MbrName  Tot_MsgByte_Send_CT Tot_Byte_Send_CT Hi_Msg_Send_SZ Low_Msg_Send_SZ Avg_Msg_Send_SZ
    -------- ------- -------- ------------------- ---------------- -------------- --------------- ---------------
    LNK12T01      22 IMS1                   1,040            2,816            538             502             520
    MSLink   MSLink# MbrName  Send_Msg_Time Send_MsgCT_Rate Send_MsgByte_Rate Tot_Qget_CT Tot_Qget_Time Hi_Qget_Time
    -------- ------- -------- ------------- --------------- ----------------- ----------- ------------- ------------
    LNK12T01      22 IMS1         47.917786       30.472011     15,845.445957           6      0.000129     0.000043
    MSLink   MSLink# MbrName  Low_Qget_Time Avg_Qget_Time Tot_SendIO_Time Hi_SendIO_Time Low_SendIO_Time SendIO_Req_Rate
    -------- ------- -------- ------------- ------------- --------------- -------------- --------------- ---------------
    LNK12T01      22 IMS1          0.000004      0.000021        0.052853       0.016744        0.011833       94.602009
    MSLink   MSLink# MbrName  SendIO_Byte_Rate Tot_Loc_SCI_SendIO_Time Hi_Loc_SCI_SendIO_Time Low_Loc_SCI_SendIO_Time
    -------- ------- -------- ---------------- ----------------------- ---------------------- -----------------------
    LNK12T01      22 IMS1        53,279.851664                0.001503               0.000988                0.000103
    MSLink   MSLink# MbrName  Tot_Loc_ICON_SendIO_Time Hi_Loc_ICON_SendIO_Time Low_Loc_ICON_SendIO_Time
    -------- ------- -------- ------------------------ ----------------------- ------------------------
    LNK12T01      22 IMS1                     0.023818                0.008290                 0.004861
    MSLink   MSLink# MbrName  Tot_TCPIP_SendIO_Time Hi_TCPIP_SendIO_Time Low_TCPIP_SendIO_Time Tot_Rmt_ICON_SendIO_Time
    -------- ------- -------- --------------------- -------------------- --------------------- ------------------------
    LNK12T01      22 IMS1                  0.003279             0.001210              0.000506                 0.019013
    MSLink   MSLink# MbrName  Hi_Rmt_ICON_SendIO_Time Low_Rmt_ICON_SendIO_Time Tot_Rmt_SCI_SendIO_Time
    -------- ------- -------- ----------------------- ------------------------ -----------------------
    LNK12T01      22 IMS1                    0.005403                 0.004312                0.005240
    MSLink   MSLink# MbrName  Hi_Rmt_SCI_SendIO_Time Low_Rmt_SCI_SendIO_Time Tot_Rec_CT Tot_Msg_Rec_CT
    -------- ------- -------- ---------------------- ----------------------- ---------- --------------
    LNK12T01      22 IMS1                   0.005403                0.004312          5              3
    MSLink   MSLink# MbrName  Tot_MsgByte_Rec_CT Tot_Byte_Rec_CT Hi_Msg_Rec_SZ Low_Msg_Rec_SZ Avg_Msg_Rec_SZ
    -------- ------- -------- ------------------ --------------- ------------- -------------- --------------
    LNK12T01      22 IMS1                  1,595           3,419           549            502            531
    MSLink   MSLink# MbrName  Rec_Msg_Time Tot_Qput_CT Tot_Qput_Time Hi_Qput_Time Low_Qput_Time Avg_Qput_Time
    -------- ------- -------- ------------ ----------- ------------- ------------ ------------- -------------
    LNK12T01      22 IMS1       235.933123           0      0.000000     0.000000      0.000000      0.000000
    MSLink   MSLink# MbrName  Tot_RecIO_Time Hi_RecIO_Time Low_RecIO_Time RecIO_Req_Rate RecIO_Byte_Rate
    -------- ------- -------- -------------- ------------- -------------- -------------- ---------------
    LNK12T01      22 IMS1           0.053281      0.014511       0.012323      93.842082   64,169.216043

Example 6: Querying statistics for VTAM links

Explanation: In this example, the QUERY MSLINK command is issued twice: once in the IMS systems at each end of the VTAM link. The commands were issued after each side sent 10 remote transactions that processed and sent a response message back (10 transactions + 10 responses = 20 messages sent each direction).

TSO SPOC input:

QUERY MSLINK NAME(LNK12V02) SHOW(STATISTICS)

TSO SPOC output:

(screen 1)

 MSLink    LMSLink#  MbrName   CC    LOption           LStart_Time           
 LNK12V02        10     IMS1    0    NORESET,CHKPT     2006.261 19:03:58.77 

(scrolled to the right, screen 2)

 MSLink    LMSLink#  MbrName    LTot_Disp_CT  LTot_Proc_Time  LHi_Proc_Time  LLow_Proc_Time  LAvg_Proc_Time    
 LNK12V02        10     IMS1              98        0.176661       0.059530        0.000003        0.000853    

(scrolled to the right, screen 3)

 MSLink     LMSLink#  MbrName    LChkw_CT   LChkwIO_CT  LChkw_Rate  LTot_Send_CT  LTot_Msg_Send_CT   
 LNK12V02         10     IMS1          33           33    0.165016            26                20   

(scrolled to the right, screen 4)

 MSLink    LMSLink#  MbrName    LTot_MsgByte_Send_CT  LTot_Byte_Send_CT  LHi_Msg_Send_SZ  LLow_Msg_Send_SZ    
 LNK12V02        10     IMS1                  10,461             22,403              578               502    

(scrolled to the right, screen 5)

 MSLink    LMSLink#  MbrName    LAvg_Msg_Send_SZ  LSend_Msg_Time  LTot_Qget_CT  LTot_Qget_Time  LHi_Qget_Time  
 LNK12V02        10     IMS1                 523        2.408548            51        0.002054       0.001070  

(scrolled to the right, screen 6)

 MSLink    LMSLink#  MbrName    LLow_Qget_Time  LAvg_Qget_Time  LTot_SendIO_Time  LHi_SendIO_Time             
 LNK12V02        10     IMS1          0.000004        0.000040          0.505401         0.193435             

(scrolled to the right, screen 7)

 MSLink     LMSLink#  MbrName    LLow_SendIO_Time  LSendIO_Req_Rate  LSendIO_Byte_Rate  LTot_Rec_CT            
 LNK12V02        10      IMS1            0.000708         51.444298             44,327           26            

(scrolled to the right, screen 8)

 MSLink    LMSLink#  MbrName    LTot_Msg_Rec_CT  LTot_MsgByte_Rec_CT  LTot_Byte_Rec_CT  LHi_Msg_Rec_SZ        
 LNK12V02        10     IMS1                 20               10,503            22,445             584        

(scrolled to the right, screen 9)

 MSLink    LMSLink#  MbrName    LLow_Msg_Rec_SZ  LAvg_Msg_Rec_SZ  LRec_Msg_Time  LTot_Qput_CT  LTot_Qput_Time  
 LNK12V02        10     IMS1                502              525       2.320062            40        0.037326  

(scrolled to the right, screen 10)

 MSLink    LMSLink#  MbrName    LHi_Qput_Time  LLow_Qput_Time  LAvg_Qput_Time  LTot_RecIO_Time  LHi_RecIO_Time 
 LNK12V02        10     IMS1         0.015957        0.000008        0.000933         0.070947        0.025376 

(scrolled to the right, screen 11)

 MSLink    LMSLink#  MbrName    LLow_RecIO_Time  LRecIO_Req_Rate  LRecIO_Byte_Rate                           
 LNK12V02        10     IMS1           0.000155       366.470750        148,040.09                           

TSO SPOC input:

QUERY MSLINK NAME(LNK21V02) SHOW(STATISTICS)   

TSO SPOC output:

(scrolled to the right, screen 1)

 MSLink    LMSLink#  LMbrName   CC    LOption            LStart_Time           
 LNK21V02        13  IMS2        0    NORESET,CHKPT      2006.261 19:03:08.42 

(scrolled to the right, screen 2)

 MSLink    LMSLink#  MbrName    LTot_Disp_CT  LTot_Proc_Time  LHi_Proc_Time  LLow_Proc_Time  LAvg_Proc_Time    
 LNK21V02        13  IMS2                 97        0.150468       0.060122        0.000003        0.000696    

(scrolled to the right, screen 3)

 MSLink    LMSLink#  MbrName    LChkw_CT   LChkwIO_CT  LChkw_Rate  LTot_Send_CT  LTot_Msg_Send_CT              
 LNK21V02        13  IMS2             33           33    0.544554            26                20              

(scrolled to the right, screen 4)

 MSLink    LMSLink#  MbrName    LTot_MsgByte_Send_CT  LTot_Byte_Send_CT  LHi_Msg_Send_SZ  LLow_Msg_Send_SZ    
 LNK21V02        13  IMS2                     10,503             22,445              584               502    

(scrolled to the right, screen 5)

 MSLink    LMSLink#  MbrName    LAvg_Msg_Send_SZ  LSend_Msg_Time  LTot_Qget_CT  LTot_Qget_Time  LHi_Qget_Time  
 LNK21V02        13  IMS2                    525        2.395508            51        0.003884       0.001169  

(scrolled to the right, screen 6)

 MSLink    LMSLink#  MbrName    LLow_Qget_Time  LAvg_Qget_Time  LTot_SendIO_Time  LHi_SendIO_Time             
 LNK21V02        13  IMS2             0.000004        0.000076          1.304330         0.217838             

(scrolled to the right, screen 7)

 MSLink    LMSLink#  LMbrName    LLow_SendIO_Time  LSendIO_Req_Rate  LSendIO_Byte_Rate  LTot_Rec_CT            
 LNK21V02        13  IMS2                0.000821         19.933605             17,208           26            

(scrolled to the right, screen 8)

 MSLink    LMSLink#  MbrName    LTot_Msg_Rec_CT  LTot_MsgByte_Rec_CT  LTot_Byte_Rec_CT  LHi_Msg_Rec_SZ        
 LNK21V02        13  IMS2                    20               10,461            22,403             578        

(scrolled to the right, screen 9)

 MSLink    LMSLink#  MbrName    LLow_Msg_Rec_SZ  LAvg_Msg_Rec_SZ  LRec_Msg_Time  LTot_Qput_CT  LTot_Qput_Time  
 LNK21V02        13  IMS2                   502              523       2.344878            40        0.054777  

(scrolled to the right, screen 10)

 MSLink    LMSLink#  MbrName    LHi_Qput_Time  LLow_Qput_Time  LAvg_Qput_Time  LTot_RecIO_Time  LHi_RecIO_Time 
 LNK21V02        13  IMS2            0.023559        0.000007        0.001369         0.210252        0.036846      

(scrolled to the right, screen 11)

 MSLink    LMSLink#  MbrName    LLow_RecIO_Time  LRecIO_Req_Rate  LRecIO_Byte_Rate                           
 LNK21V02        13  IMS2              0.000155       123.661130           106,553