Why not simply code:

//EXECPROD EXEC JVMPRC80
//STDIN    DD
//         DD DISP=SHR,DSN=next.dsn.name

Then, in your PROC code an assignment to STDIN and point it at a dataset.
That dataset would be either empty, or filled as required, with "basic" or 
"common" input that most everything needs, or would have no effect on the 
processing.

The only question I don't know the answer to is what would happen if you do 
this:

//EXECPROD EXEC JVMPRC80
//STDIN    DD
//         DD *
Inline statement 1
Inline statement 2
.
.
.

Would something like this work???

C-

Charles (Chuck) Hardee
Senior Systems Engineer/Database Administration
EAS Information Technology

Thermo Fisher Scientific
300 Industry Drive | Pittsburgh, PA 15275
Phone +1 (724) 517-2633 | Mobile +1 (412) 877-2809 | FAX: +1 (412) 490-9230
chuck.har...@thermofisher.com  | www.thermofisher.com

WORLDWIDE CONFIDENTIALITY NOTE: Dissemination, distribution or copying of this 
e-mail or the information herein by anyone other than the intended recipient, 
or an employee or agent of a system responsible for delivering the message to 
the intended recipient, is prohibited. If you are not the intended recipient, 
please inform the sender and delete all copies.

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Kirk Wolf
Sent: Tuesday, September 29, 2015 4:51 PM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Way to change a PROC to add a concatenation to existing DD?

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

----------------------------------------------------------------------
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