[z/OS]

WSGrid 作业模板

WSGrid 作业模板是 WSGrid 实用程序的输入。 该模板包含 WSGrid 实用程序用来与批处理作业进行交互的属性。

WSGrid 作业模板

//WSGRIDT JOB (),MSGCLASS=H
//RUN EXEC PGM=WSGRID
//*********************************************************************
//*
//* WSGrid Job Template
//*
//* WSGrid is a Java utility that runs under control of JZOS for the
//* purpose of sub-dispatching a batch job. The utility submits the
//* batch job, writes the batch joblog to STDOUT DD as the WCG job runs
//* and then ends with a return code indicating the RC of the batch job.
//*
//* RC codes
//* --------
//*
//* 0-3040 - user range
//*
//*   This is a user defined return code returned by a completed
//*   WCG job.
//*
//* 3041-4096 - system ran
//*
//*   This is a return codes set by system prior to completion of
//*   a WCG job.  The following return codes are defined:
//*
//*     4084 (-12) - WCG job ended in restartable state
//*     4080 (-16) - fatal system error
//*
//*********************************************************************
//*
//* Required settings:
//*
//* 1) WGCNTL symbol must be set to the path-qualified file
//*    containing the WSGRID control properties. See comment
//*    block near WGCNTL DD for further information.
//*
//* 2) WGSUB symbol must be set to the path-qualified file
//*    containing a WCG xJCL job definition.
//*
//* 3) WAS_HOME environment variable must be set to name of
//*    WAS home directory. Find this variable under the STDENV DD.
//*
//* Optional settings:
//*
//* 1) WGSUBS symbol is set to the path-qualified file
//*    containing WCG job substitution properties.
//*
//* 2) WGRSTRT symbol is set to the path-qualified file
//*    used for restart processing output/input.  See
//*    comment block near WGRSTRT DD for further information.
//*
//*********************************************************************
// SET WGCNTL=<path-qualified file name>
// SET WGJOB=<path-qualified file name>
//*SET WGSUBS=<path-qualified file name>
//*SET WGRSTRT=<path-qualified file name>
//*********************************************************************
//*
//* WSGrid Control Properties - required DD
//*
//* queue-manager-name=<MQ queue manager name>
//* scheduler-input-queue=<MQ input queue as defined during configuration>
//* scheduler-output-queue=<MQ output queue as defined during configuration>
//* timeout=<in milliseconds for WSGRID to wait for next outputmessage from job scheduler>
//* debug=<true|false>
//* 
//*********************************************************************
//WGCNTL DD PATH='&WGCNTL.'
//*
//*********************************************************************
//*
//* WSGrid Job Definition - required DD
//*
//* File must contain valid WCG JCL job definition.
//*
//*********************************************************************
//WGJOB  DD PATH='&WGJOB.'
//*
//*********************************************************************
//*
//* WSGrid Job Substitutions - optional DD
//*
//* Values are of form:
//*
//* substitution-prop.<property name>=<property value>
//*
//*********************************************************************
//*WGSUBS DD PATH='&WGSUBS.'
//*
//*********************************************************************
//*
//* WSGrid Restart Token - optional DD
//*
//* Note: restart token is written if and only if this job step ends
//*       with RC=4084 (-12).
//*
//*       The WGRSTRT DD takes precedence over the WGJOB DD, so
//*       if this job is restarted with a non-empty restart file
//*       the WCG job identified by the token will be restarted - a
//*       new job instance based on the job definition in WGJOB is
//*       not created.
//*
//* restart-job=<job_id of the job to restart. specify only when restart a job>
//*********************************************************************
//*WGRSTRT DD PATH='&WGRSTRT.'
//*             PATHOPTS=(ORDWR,OCREAT),
//*             PATHMODE=(SIRUSR,SIWUSR)
//*
//*********************************************************************

用于提交新作业的示例 JCL

当您要通过 WSGrid 实用程序来提交作业时,请使用以下示例。

//WSGRIDCI JOB 1,'HUTCH',MSGCLASS=O
//SUBMIT EXEC PGM=WSGRID,REGION=0M
//STEPLIB DD DSN=B7CELL.WSGRID.LOAD,DISP=SHR
// DD DISP=SHR,DSN=SYS1.MQM.SCSQLOAD
// DD DISP=SHR,DSN=SYS1.MQM.SCSQAUTH
//*****************************************************
//SYSPRINT DD SYSOUT=*
//*****************************************************
//WGCNTL DD *
queue-manager-name=MQW1
scheduler-input-queue=WASIQCG
scheduler-output-queue=WASOQCG
timeout=5000
submit-timeout=30000
//WGJOB DD PATH='/u/hutch/cg/jcl/SimpleCIxJCL_Ebc.xml'
//WGSUBS DD *
substitution-prop.calctime=5
//* 

用于重新启动作业的示例 JCL

当您要通过 WSGrid 实用程序来重新启动作业时,请使用以下示例。

//B7WSRST4 JOB 1,'Restart IVT',MSGCLASS=O,NOTIFY=?
//SUBMIT EXEC PGM=WSGRID,REGION=0M
//STEPLIB DD DSN=B7CELL.WSGRID.LOAD,DISP=SHR
// DD DISP=SHR,DSN=SYS1.MQM.SCSQLOAD
// DD DISP=SHR,DSN=SYS1.MQM.SCSQAUTH
//SYSPRINT DD SYSOUT=*
//WGCNTL DD *
queue-manager-name=MQW1
scheduler-input-queue=WASIQ
scheduler-output-queue=WASOQ
timeout=5000
restart-job=XDCGIVTtxt-Long:00004
//WGJOB DD PATH='/u/hutch/cg/jcl/EBCxJCL-XDCGIVT-Text_Long.xml' 

指示主题类型的图标 参考主题



时间戳记图标 最近一次更新时间: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=rgrid_wsgrid_template
文件名:rgrid_wsgrid_template.html