Consider an existing PROC:

//JVMPRC80 PROC JAVACLS=, < Fully Qfied Java class..RQD
// ARGS=, < Args to Java class
// LIBRARY=’<HLQ>.JZOS.LOADLIB’, < STEPLIB FOR JVMLDM module
// VERSION=’80’, < JVMLDM version: 80
// LOGLVL=’’, < Debug LVL: +I(info) +T(trc)
// REGSIZE=’0M’, < EXECUTION REGION SIZE
// LEPARM=’’
//JAVAJVM EXEC PGM=JVMLDM&VERSION,REGION=&REGSIZE,
// PARM=’&LEPARM/&LOGLVL &JAVACLS &ARGS’
//STEPLIB DD DSN=&LIBRARY,DISP=SHR
//SYSPRINT DD SYSOUT=* < System stdout
//SYSOUT DD SYSOUT=* < System stderr
//STDOUT DD SYSOUT=* < Java System.out
//STDERR DD SYSOUT=* < Java System.err
//CEEDUMP DD SYSOUT=*
//ABNLIGNR DD DUMMY
//*
//*The following DDs can/should be present in the calling JCL
//*
//*STDIN DD < OPTIONAL - Java System.in
//*STDENV DD < REQUIRED - JVM Environment script
//*MAINARGS DD < OPTIONAL - Alt. method to supply args
// PEND


STDENV is a DD that is opened by the program (JVMLDM80).

An installation would like to be able to automatically add control
statements to the end of this DD, without changing the JCL.

So, instead we would want:

//STDENV  DD DDNAME=MYENV
//                 DD DISP=SHR,DSN=INST.ADD.JAVA.STDENV

but this would require that all JCL that used this PROC would need to
change their DD:STDENV to DD:MYENV.

Here's my question:  is there a way to change the PROC so that the JCL that
uses it does not need to be changed?   Its even OK to front-end the
JVMLDM80 program with an installation-written program that does something
and then invokes JVMLDM80.    Its not possible (or desirable) to change
JVMLDM80.

Maybe a front-end program that uses SVC99 to reallocate STDENV as the
concatenation?   I'm not sure if this can be done without freeing the
existing STDENV DD.       I guess that the front-end program could create a
temporary dataset and then copy the existing STDENV DD to it and then free
STDENV and then reallocate the concatenation....

Thanks in advance for any better suggestions.

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to