Simple. Effective. Affordable. Your trusted IBM Midrange Partner for over 10 years...

Chapter 1 - Job Watch Configuration (JOBWATCHCF) Command

Job Watch Configuration (JOBWATCHCF)

  8/25/04                     Job Watch (JOBWATCH)                    TS400
 08:45:56                     Command Maintenance                     BVSTONE

 Type options, press Enter.
  1=Add   2=Work with Command   3=Copy   4=Delete   5=Activate/Deactivate

 Opt Status Command
  _  ____   ________________________________________________________________
  _  MSGW   MAILTOOL TOADDR(address@domain.com) FROMADDR(sysop@domain.com...
  _  MSGW   SNDDST TYPE(*LMSG) TOINTNET((address@domain.com)) DSTD('Job &...











                                                                         Bottom
 F3=Exit   F4=Prompt   F5=Refresh

The JOBWATCHCF command allows you to view and work with commands that are set up on your system. Active commands are shown in yellow, and inactive commands are shown in green.

The following options are availble:

  • 1=Add - To add a new entry, enter option 1 on the first line. Then enter a status, and a command. Entering a + on the command will bring you to an extended command entry display. Click Here to see a list of availble status codes.
  • 2=Work With Command - This option will allow you to work with the command for a specific entry.
  • 3=Copy - This option will allow you to copy an entry that already exists.
  • 4=Delete - This option will delete an entry from the list. If you aren't sure if you should delete an entry, instead choose the activate/deactivate option to deactivate a particular entry
  • 5=Activate/Deactivate - This option is used to turn on or off a particular option. Active entries are listed in yellow. Inactive entries are listed in green.

Working With Commands

                               Enter Extended Command

 Status  . . . MSGW

 Enter extended Command:
 MAILTOOL TOADDR(address@domain.com) FROMADDR(sysop@domain.com) SUBJECT('Job &J
in &S Status at &M') MESSAGE('The following job in is &S status:\n\nNSystem: &M\
nJob: &J\nUser: &U\nJob Number: &N\nSubsystem: &L/&Y\nFunction: &F\nJob Type: &T
\nJob Subtype: &B') SENDWITH(*MAILTOOL)_________________________________________
____________________________________________________...






 F4=Prompt   F12=Cancel

Option 2 allows you to work with a current command for an entry. On this screen you can enter and edit commands. F4 will allow you to prompt on the command.

Availble substitution variables

Available status codes


Available Status Codes

When setting up a new entry in the JOBWATCHCF command, the following status codes are availble for use:

BSCA Waiting in a pool activity level for the completion of an I/O operation to a binary synchronous device.
BSCW Waiting for the completion of an I/O operation to a binary synchronous device.
CMNA Waiting in a pool activity level for the completion of an I/O operation to a communications device.
CMNW Waiting for the completion of an I/O operation to a communications device.
CMTW Waiting for the completion of save-while-active checkpoint processing in another job.
CNDW Waiting on handle-based condition.
CPCW Jobs waiting for the completion of a CPI Communications call.
DEQA Waiting in the pool activity level for completion of a dequeue operation.
DEQW Waiting for completion of a dequeue operation. For example, QSYSARB and subsystem monitors generally wait for work by waiting for a dequeue operation.
DKTA Waiting in a pool activity level for the completion of an I/O operation to a diskette unit.
DKTW Waiting for the completion of an I/O operation to a diskette unit.
DLYW The Delay Job (DLYJOB) command delays the job for a time interval to end, or for a specific delay end time. The function field shows either the number of seconds the job is to delay (999999), or the specific time when the job is to resume running.
DSC Disconnected from a work station display.
DSPA Waiting in a pool activity level for input from a work station display.
DSPW Waiting for input from a work station display.
END The job has been ended with the *IMMED option, or its delay time has ended with the *CNTRLD option.
EOFA Waiting in the activity level to try a read operation again on a database file after the end-of-file has been reached.
EOFW Waiting to try a read operation again on a database file after the end-of-file has been reached.
EOJ Ending for a reason other than running the End Job (ENDJOB) or End Subsystem (ENDSBS) command, such as SIGNOFF, End Group Job (ENDGRPJOB), or an exception that is not handled.
EVTW Waiting for an event. For example, QLUS and SCPF generally wait for work by waiting for an event.
GRP Suspended by a Transfer Group Job (TFRGRPJOB) command.
HLD Held.
HLDT Held due to suspended thread.
ICFA Waiting in a pool activity level for the completion of an I/O operation to an intersystem communications function file.
ICFW Waiting for the completion of an I/O operation to an intersystem communications function file.
INEL Ineligible and not currently in the pool activity level.
JVAA Waiting in a pool activity level for a Java program operation to complete.
JVAW Waiting for a Java program operation to complete.
LCKW Waiting for a lock.
LSPA Waiting in a pool activity level for a lock space to be attached.
LSPW Waiting for a lock space to be attached.
MLTA Waiting in a pool activity level for the completion of an I/O operation to multiple files.
MLTW Waiting for the completion of an I/O operation to multiple files.
MSGW Waiting for a message from a message queue.
MTXW Waiting for a mutex. A mutex is a synchronization function that is used to allow multiple jobs or threads to serialize their access to shared data.
MXDW Waiting for the completion of an I/O operation to a mixed device file.
OPTA Waiting in a pool activity level for the completion of an I/O operation to an optical device.
OPTW Waiting for the completion of an I/O operation to an optical device.
OSIW Jobs waiting for the completion of an OSI Communications Subsystem for OS/400 operation.
PRTA Waiting in a pool activity level for output to a printer to complete.
PRTW Waiting for output to a printer to be completed.
PSRW A prestart job waiting for a program start request.
RUN Currently running in the pool activity level.
SELW Waiting for a selection to complete.
SEMW Waiting for a semaphore. A semaphore is a synchronization function that is used to allow multiple jobs or threads to serialize their access to shared data.
SIGS Stopped as the result of a signal
SIGW Waiting for a signal
SRQ The suspended half of a system request job pair.
SVFA Waiting in a pool activity level for completion of a save file operation.
SVFW Waiting for completion of a save file operation.
TAPA The job is waiting in a pool activity level for completion of an I/O operation to a tape device.
TAPW Waiting for completion of an I/O operation to a tape device.
THDW Waiting for another thread to complete an operation.
TIMA Waiting in a pool activity level for a time interval to end.
TIMW Waiting for a time interval to end.


Available Substitution Variables

When working with commands in JOBWATCH the following substitution variables are available:

  • &J - Job Name
  • &U - User Name
  • &N- Job Number
  • &A - Job Status (note, this is not the active job status)
  • &T - Job Type
  • &B - Job Subtype
  • &S - Job Active Status (ie MSGW, EVTW, RUN, etc...)
  • &M - Machine Name
  • &Y - Subsystem
  • &L - Subsystem Library
  • &F - Function Name

 

 

<<Previous | Next>>

© Copyright 1995-2008 BVS/Tools     
Powered by the eRPG SDK