Running the command

The EQQWXPER program uses the EQQYXJPX procedure with no additional DD statements.

The JCL for running the command must specify EQQWXPER as the command.

The following example shows how to create tables with the naming convention of MONTHVARSyymm containing variables WEEK#01, WEEK#02, WEEK#03, WEEK#04, WEEK#05, and WEEK#06. These week variables are dependent on the occurrence julian date.

//RUNPIF   EXEC EQQYXJPX,
//         CMD=EQQWXPER,
//         SUBSYS=TWSA                                         
//OUTBL    DD SYSOUT=*                                         
//SYSIN    DD *                                                
PERIOD(CYCLE) VARPFX(WEEK#) TABLE(MONTHVARS) DATEVAR(OYYDDD)   
OWNER(TWS) UPDATE(Y)                                        

You can then process it with JCL similar to the following example:

//*%OPC SCAN
//*%OPC TABLE NAME=MONTHVARS&OYYMM
//* JULIAN DATE = &OYYDDD
//*%OPC BEGIN ACTION=INCLUDE,COMP=(&WEEK#06..EQ.Y)
//* THIS LINE OF JCL ONLY APPEARS ON WEEK 6
//*%OPC END ACTION=INCLUDE