462 IMS Connectivity in an On Demand Environment: A Practical Guide to IMS Connectivity
IMS system messages
IMS logs and traces, dumps (usually in case of a defect)
In this section, we introduce some techniques to determine a problem concerning the Remote
Database Services. For the basic concepts of problem determination for the ODBA
environment, see 19.6.1, “Finding the problem” on page 375.
Tracing DL/I calls with image capture
The SQL requests from your Web application will change into DL/I calls in the IMS Java
engine on the WebSphere Application Server for z/OS side. Therefore, if you have a
performance problem with executing a SQL, or receive an unexpected result for the query
condition, it is a good idea to evaluate how your SQL is described in the DL/I call format
intently. For this purpose, you can use the tracing facility for DL/I calls with image captures by
using the IMS command.
To take a DL/I call image capture (for example, for the PSB DFSIVP37), use the following
sequence of events for tracing:
1. Turn on trace with the following command:
/TRACE SET ON PSB DFSIVP37 COMP
2. Run the Web application.
3. Turn off trace with the following command:
/TRACE SET OFF PSB DFSIVP37
4. Switch the online log data sets (OLDSs). This also causes the contents to be archived to
the secondary log data sets (SLDSs) with the following command:
/SWITCH OLDS
5. Execute the print utility DFSERA10, specifying the latest SLDS as input in SYSUT1 DD.
The DFSERA10 input control statements to retrieve the information from the log look
similar to the following statements (in a format that can be used as input to DFSDDLT0):
OPTION PRINT OFFSET=5,VALUE=5F,COND=M
OPTION PRINT EXITR=DFSERA50,OFFSET=25,FLDTYP=C
VALUE=DFSIVP37,FLDLEN=8,DDNAME=OUTDDN,COND=E
For example, we executed the SQL statement shown in Example 21-35 against the PERSON
table through the metadata DFSIVP37DatabaseView with the DL/I call image capture trace.
Example 21-35 SQL example
SELECT * FROM PhoneBook.Person
After formatting the IMS log that contains trace data (X'5F' log), we see the trace result shown
in Example 21-36.
Example 21-36 DL/I call image capture result
U DATE=2005/180 TIME=15.04.09 DFSIVP37
S 1 1 1 1 1
S 1 1 1 1 1 000011
L GHU A1111111
E DATA LAST6 FIRST6 8-111-6666D06/R06
E 01 A1111111 0010LAST6
L GHN A1111111
E DATA LAST1 FIRST1 8-111-1111D01/R01
E 01 A1111111 0010LAST1
L GHN A1111111