I had to do this with COBOL programs. Initially, the person(s) who set this up long before I got into that shop, had written an SVC 99 routine (some serious developer type) that the COBOL program(s) would call, passing it parms. This went back to an MHTRAN migration from DOS/VSE to MVS/XA.

But we found that this routine needed significant modification (since many of the text units were deprecated!!). Enter BPX*** forgot the name of it, but it is a program you can call and tell it what you need allocated, freed, etc. That took care of all of the programs that needed dynamic allocation done. Meanwhile we also migrated from COBOL 4.x to COBOL 6.2, which helped matters a bit more, as well.

I know that someone else mentioned the BPX2...(?) utility and I think that is the one that we settled on for this kind of thing.

Don't know if this will help you or not. I know that this kind of thing could be done in the DOS world (changing ASSIGN statements, and the like). And so you might be able to do it from within the step.

Steve Thompson



On 11/10/2024 3:51 PM, Steff Gladstone wrote:
What is the best way of modifying JCL after the job has been
submitted, in order to conditionally add another DDNAME to a JOB STEP?   Or
perhaps adding parameters to the PARM string on the EXEC statement.

We were thinking of using the IEFUSI exit point, allocating a file
dynamically before the main program of the job-step is attached.  I gather
there are also JES2 exits (are they simple exits or the more flexible exit
points?) that are appropriate to the task and would be interested to hear
advice from other system programmers.

Two other questions: are these exits specified in the PARMLIB or via some
other mechanism?  And what happens if the exit fails in some way?  What
action does the system take?

Thanks in advance,
Steff Gladstone

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