Previous Topic: Child Processes and Return CodesNext Topic: JOBSTART Command for Select SAP Job Types


Reply for i5/OS Jobs

Agent jobs running on an i5/OS system can enter an ‘Intervention required’ condition and require a response before continuing to execute. This condition is indicated on a CA WA CA 7 Edition LQ display by the job having a status of W-REPLY. You can use LQ,ST=REPLY to show only jobs requiring a response. Use the following command to display the message which requires a response:

AGFILE,JOB=jobname,TYPE=INFO

To reply to the message, use the following new CA WA CA 7 Edition command:

REPLY,JOB=job#,MSG=message-text

Consider the following scenario:

An AS400_JOB is submitted to an agent. The Agent detects an ‘intervention required’ condition and sends a message to CA WA CA 7 Edition (for example, File already exists, reply Y/N to continue). CA WA CA 7 Edition marks the job status as W-REPLY and writes the message to the CA7AGNT VSAM file. The user enters the following command to display the job:

LQ,ST=REPLY

LQ LIST= DATE=yy.324 PAGE 0001 JOB QUEUE CA-7 -DAY(DDD) AND TIME(HHMM)-- CPU SCH ENTRY MSTR JOB NAME NAME JOB# DEADLINE SUB/START DUE-OUT SPEC/RUN ID MODE REQ STATUS AS400JB1 ACT 0614 324/1005 324/0905 324/1005 OS40-AGJ 001 DEMD 000 W-REPLY

The user now enters the following command to display the message requiring a response:

AGFILE,JOB=AS400JB1,TYPE=INFO

----------------- CA-7 Job INFO For Agent ESPAGNT113 --------- Jobname: AS400JB1 CA7#: 0614 System: SYSTEM SchId: 0001 Q-DtTm: 09316 1113 Job Type: AS400_JOB Job number: 383075 Agent: ESPAGNT113 Host: USULAD10.COMP.COM LogId/PID: 383075/ESPAGENT/CHKOBJ Message: File already exists, reply Y/N to continue

The user now enters REPLY,JOB=614,M=Y so that the job can continue executing.

REPLY,JOB=614,MSG=Y
                   
SPOG-00 Reply sent. Please verify job status thru the LQ command.

The user must now monitor the job status through the LQ command to verify that the job status changed from W-REPLY and is no longer waiting for a reply.