Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

What are the mustgather when a dataset is locked by RDz/IDz/zExplorer?

120000FY8G gravatar image
Question by Olivier Gauneau  (1139) | Feb 28, 2018 at 04:48 AM RDzidzlockmustgatherzexplorer

What data and logs could be collected when a dataset is locked by Rational Developer for z Systems (RDz) or IBM Developer for z Systems (IDz) or IBM Explorer for z/OS (zExplorer)?

People who like this

  0
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

1 reply

  • Sort: 
120000FY8G gravatar image
Accepted answer

Answer by Olivier Gauneau (1139) | Feb 28, 2018 at 06:13 AM

RDz/IDz operator command DISPLAY OWNER

The first action will be to verify if RDz/IDz knows about the lock using operator command DISPLAY OWNER, see https://www.ibm.com/support/knowledgecenter/SSBDYH_3.0.1/com.ibm.zexpl.config.hostconfig.doc/topics/HCHCQS_modifyfrsed.html?pos=2

For example if member USER182.LABS.COBOL(HELLO) is being edited in COBOL Editor in IDz:

 F RSED,APPL=D O,DSN=USER182.LABS.COBOL(HELLO)           
 +FEK217I USER182.LABS.COBOL(HELLO) is locked by user182    


GRS operator command

It is important to understand what "lock" is being held and by what TCB/thread with GRS,RES command

For example:

 D GRS,RES=(*,USER182.LABS.COBOL*)                                       
 ISG343I 05.02.29 GRS STATUS 300                                         
 S=SYSTEMS SPFEDIT  USER182.LABS.COBOL                          HELLO T  
 SYSNAME        JOBNAME         ASID     TCBADDR   EXC/SHR    STATUS     
 CTFMVS08  RS030403           010B       005BF378 EXCLUSIVE    OWN 
 S=SYSTEM  SYSDSN   USER182.LABS.COBOL                                   
 SYSNAME        JOBNAME         ASID     TCBADDR   EXC/SHR    STATUS     
 CTFMVS08  RS030403           010B       005F8588   SHARE      OWN       

In the above example, we see that member HELLO is locked (EXCLUSIVE) by ASID x'010B and TCB 005BF378.

RESERVE on PDS can also be see with GRS command: D GRS,E,C

IDz DISPLAY PROCESS command

IDz operator command DISPLAY PROCESS,DETAIL can tell us the process id (PID) for this address space id:

 F RS03040,APPL=D P,D                
 BPXM023I (DEV040) 326
 
  ProcessId(411     ) ASId(010B) JobName(RS030403) Order(2)   
   PROCESS LIMITS:    CURRENT  HIGHWATER      LIMIT           
    JAVA HEAP USAGE(%)      0          5        100           
    CLIENTS                 1          1         30                          


DISPLAY OMVS command

Command DISPLAY OMVS or IDz DISPLAY CPU will show the TCB/Thread owning the lock:

  D OMVS,PID=411                                                         
  BPXO070I 05.15.01 DISPLAY OMVS 328                                     
  OMVS     000F ACTIVE             OMVS=(78)                             
  USER     JOBNAME  ASID        PID       PPID STATE   START     CT_SECS 
  DEV040   RS030403 010B        411        413 HK------ 18.05.48    34.3 
    LATCHWAITPID=         0 CMD=java -Xbootclasspath/p:/svt/hop/v40.0/us 
   THREAD_ID        TCB@     PRI_JOB  USERNAME   ACC_TIME SC  STATE      
   11CC680000000000 005F80D8 OMVS                    .023 IPT  KU        
   11CC900000000001 005C9420 OMVS                    .180 RCV JF         
   TAG=1/ThreadPoolProcess                                               
   11CC980000000002 005C9200                         .001 PTX JRNV       
   ...
   0EFEE800000009F0 005C2BF8                         .001 STE JRNV
   11C79800000009F4 005BF378          USER182        .001 WRT JR V
   TAG=UserLockThread                                             
   0EFEF800000009F5 005BF1E0          USER182        .003 CLO JRNV
   TAG=2787/RequestAggregatorThread                               
   ...

Lock is held by thread UserLockThread by user USER182.


Generate a javacore dump

A javacore dump will show the stack of the thread holding the lock. Use IDz operator command:

 F RSED,APPL=DEBUG JC,PID=<process id>
 

For example:

 F RS03040,APPL=DEBUG JC,PID=411 
 

joblog or syslog will show a message like:

 F RS03040,APPL=DEBUG JC,PID=411                                     
 BPXM023I (DEV040) 919                                                  
 JVMDUMP034I User requested Java dump using '/tmp/javacore.20180328.031 
 455.411.0001.txt' through com.ibm.jvm.Dump.JavaDump 
                 

In case of abend 213-30

Command GRS,DEV command can also show RESERVE enqueue on a PDS.

For example with error message for abend 213-30: IEC813I PDS OWNER: JN=USER1821,SYSNAME=CTFMVS08,TCB=005FE990,ASID=0059 IEC143I 213-30,IFG0194D,RS030403,STEP1,SYS11162,0251,CSPL02, 024
MY.PDS.COBOL

The volume for this PDS is CSPL02.

Command D U,VOL will give us the device number for this volume:

 D U,VOL=CSPL02 
 IEE457I 15.02.12 UNIT STATUS 627 
 UNIT TYPE STATUS        VOLSER     VOLSTATE 
 0251 3390 A    -R       CSPL02     PRIV/RSDNT 

Command D GRS,DEV will indicate if a reserve is active on this device:

 D GRS,DEV=0251 
 ISG343I 15.06.49 GRS STATUS 638 
 DEVICE:0251 VOLUME:CSPL02 RESERVED BY SYSTEM CTFMVS08 
 S=SYSTEMS SPFEDIT  MY.PDS.COBOL 
 SYSNAME        JOBNAME         ASID     TCBADDR   EXC/SHR   STATUS 
 CTFMVS08  RSE31851           00DB       005C1C68 EXCLUSIVE   OWN 






Comment

People who like this

  0   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster

Follow this question

130 people are following this question.

Answers

Answers & comments

Related questions

What are the general mustgather for IDz/RDz issues? 1 Answer

What are the mustgather for IDz/RDz issues with PLI or COBOL Editor 2 Answers

What are the mustgather for RDz integrated debugger issues or z/OS Debugger? 2 Answers

Why does zExplorer client fail to connect with error RSEG1057 2 Answers

How do you analyze a High CPU for RSE 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges