Running WAPLEXEC programs

WAPLEXEC programs can be run by EQQYXJPX, naming the WAPLEXEC program with the CMD symbolic parameter.

//RUNWAPL  EXEC EQQYXJPX,                                  
//         SUBSYS=TWSA,                                    
//           CMD=EQQWXCSR
//OUTBL      DD SYSOUT=*                                   
//INPUTDEF   DD *                                          
MAP(JOB,RC,PRED,FORM,.,WS) ADID(FRED) FORM(DD0001) WS(CPU1)
POLICY(60<26,5<51,3) UPDATE(Y) FIRSTWS(DUMM) LASTWS(DUMM)  
DESCR(Excel Application) ODESCR(Scheduling) OWNER(TWS)     
//CSVFILE    DD *                                          
JOBA                                                       
JOBB,4,JOBA,DD0002,HELLO,WAIT                              
JOBC,,JOBA JOBQ,,GOODBYE                                   
JOBD,,'JOBB JOBC'    
JOBQ

For the specific programs, additional DD statements might be required.

Note:
  1. WAPLEXEC programs are designed to provide their own OUTPUT statements within the code, therefore the EQQFILE DD statement must always point to member FILENONE for WAPLEXECs.
  2. Input files to WAPLEXEC programs can be catalogued data sets or instream data within the JCL. The command strings can be extremely long, and in the case of Comma Separated Value files much longer than 80 bytes. Care should be taken with WAPLEXEC jobs using instream data to disable “line numbers” (UNNUM or NUMBER OFF in PDF Edit). Because numeric data could form part of the input, the WAPLEXEC code cannot reliably determine whether numbers in columns 73 to 80 were intended as data, or line numbers, so the whole of the input file, regardless of record length, is always treated as input to the process.