Well, in fact I just had a look in that manual. If I'm not wrong, this is the general syntax for the START command:
Code: Select all
S membername[.identifier][,devicetype|,[/]devnum][,volumeserial][,parameters][,JOBNAME=jobname][,JOBACCT=acct_info] [,SUB=subsystemname][,keyword=option[,keyword=option]...]
And this is what it says about the "parameters" : "Program parameters passed to the started program", an insufficient explanation for my ignorance.
This is the source code of my started task:
Code: Select all
//DESDIFGE PROC
//JAVA EXEC PROC=EXJZOSVM,VERSION='14',
// LOGLVL='+I',
// JAVACLS='my.java.ClassName'
//MAINARGS DD DSN=WEBOS.DESA.SYSIN(DIFGMAIN),DISP=SHR
//MSGFILE DD DSN=WEBDES.T.DESDIFGE.MQ.RECEP,DISP=(OLD,KEEP),
// VOL=SER=WEBPRO,UNIT=SYSDA,
// DCB=(LRECL=8644,BLKSIZE=25936,RECFM=VB),
// SPACE=(CYL,(1,1),RLSE)
//STDENV DD DSN=WEBOS.DESA.SYSIN(DIFGENVR),DISP=SHR
//OUTDSC OUTPUT DEST=HOLD
//SYSPRINT DD SYSOUT=W,OUTPUT=(*.OUTDSC)
//SYSOUT DD SYSOUT=W,OUTPUT=(*.OUTDSC)
//SYSERR DD SYSOUT=W,OUTPUT=(*.OUTDSC)
//STDOUT DD SYSOUT=W,OUTPUT=(*.OUTDSC)
//STDERR DD SYSOUT=W,OUTPUT=(*.OUTDSC)
//CEEDUMP DD SYSOUT=W,OUTPUT=(*.OUTDSC)
//*
The content of WEBOS.DESA.SYSIN(DIFGMAIN) is the following (just command-line args, parsed by the Java class):
Code: Select all
--mqm MQ_MANAGER_NAME
--queue MY.MQQUEUE.NAME
--qopenmode EXCLUSIVE
--log //DD:MSGFILE
And the content of WEBOS.DESA.SYSIN(DIFGENVR) is the usual content of the STDENV for the JZOS launcher.
The content of WEBOS.DESA.SYSIN(DIFGMAIN) is what the Java class will normally use (the default). But I'd like to use the MVS START command to pass it some other parameters that change the behaviour of my Java class and make it ignore the content of WEBOS.DESA.SYSIN(DIFGMAIN).
Now, I wonder where/how in my procedure I should specify that the Java class gets arguments from the MVS START command, or what am I missing/doing wrong?
Thanks for your support.