Find job logs for Java problem analysis

Use the job log from the job that ran the Java™ command, and the batch immediate (BCI) job log where the Java program ran, to analyze causes of a Java failure. They both may contain important error information.

There are two ways to find the job log for the BCI job. You can find the name of the BCI job that is logged in the job log of the job that ran the Java command. Then, use that job name to find the job log for the BCI job.

You can also find the job log for the BCI job by following these steps:

  1. Enter the Work with Submitted Jobs (WRKSBMJOB) command on the iSeries™ command line.
  2. Go to the bottom of the list.
  3. Look for the last job in the list, called QJVACMDSRV.
  4. Enter option 8 (Work with Spooled Files) for that job.
  5. A file called QPJOBLOG displays.
  6. Press F11 to see view 2 of the spooled files.
  7. Verify that the date and time match the date and time when the failure occurred.

    If the date and time do not match the date and time when you signed off, continue looking through the list of submitted jobs. Try to find a QJVACMDSRV job log with a date and time that matches when you signed off.

If you are unable to find a job log for the BCI job, one may not have been produced. This happens if you set the ENDSEP value for the QDFTJOBD job description too high or the LOG value for the QDFTJOBD job description specifies *NOLIST. Check these values, and change them so that a job log is produced for the BCI job.

To produce a job log for the job that ran the Run Java (RUNJVA) command, perform the following steps:

  1. Enter SIGNOFF *LIST.
  2. Then, sign back on.
  3. Enter the Work with Spooled Files (WRKSPLF) command on the iSeries command line.
  4. Go to the bottom of the list.
  5. Find a file named QPJOBLOG.
  6. Press F11.
  7. Verify that the date and time match the date and time when you entered the signoff command.

    If the date and time do not match the date and time when you signed off, continue looking through the list of submitted jobs. Try to find a QJVACMDSRV job log with a date and time that matches when you signed off.

Related concepts
Limitations
Apply program temporary fixes
Get support for the IBM Developer Kit for Java
Related tasks
Collect data for Java problem analysis