As you can see the email parametes ( To, Subject etc) is coded in USERDATA parameters. I have a project where I cannot predict the To address. I want the OUTPUT parameters to be sent to the JCL dynamically.
I can use a JCLLIB ORDER and expand the JCL from it. But my shop doesnt allow JCLs to be expnanded from regular PDS ( allows only from Changeman libraries).
Joined: 20 Oct 2006 Posts: 6968 Location: porcelain throne
query? this is the jcl forum, not the db2 forum.
at any time there are 3-somethimes 20 or 30 members logged-on
and 300 to 500 guests.
now we know what the member do,
but the guests?
wonder what they are doing? certainly not chatting!
my guess is that they are searching the forum,
looking thru threads that can give them a hint (if not complete solution)
about how they can solve their problem.
normally, what one does is to search/look-thru threads
find something that approximates their situation
make an attempt to implement,
if all goes well, then they are done.
in the cases where the individual still has problems,
the the post consists (should consist) of:
a complete description of the the desired results
a complete description of the problem
error codes encountered
the jcl for the job (including control cards for any utilities)
using BBCode to provide readability for members
(on their own time, without compensation)
to contribute to the solution of the Thread Starter's problem.
now, you have only told us that you can not modify the production Job PDS,
that you want to dynamically provide 'overrides'/input to the submitted JOB.
So, it sounds as if you need a JOB that has steps to:
extract data from a database
and provide control cards for the TO address and the FILENAME
and have that available to iebgener step
are you allowed to use INTRDR to submit JOBS by a JOB?
are you allowed to modify production INCLUDE libraries on the fly?
have you tried using symbolics? does that work with the USERDATA control cards?