Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to code OUTPUT parameters dynamically

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
manugeorge2004

New User


Joined: 17 Jun 2009
Posts: 35
Location: Denver

PostPosted: Thu Jul 19, 2012 3:26 am    Post subject: How to code OUTPUT parameters dynamically
Reply with quote

Hi

I use IEBGENER with an OUTPUT DEST parameter to send emails. Sample JCL is

//EMAIL010 EXEC PGM=IEBGENER
//OUT1 OUTPUT DEST=LPEMAIL3,
// USERDATA=('TO:ab.bc@xyz.COM',
// 'SUBJECT:Email Subject,
// 'FILENAME: Test.CSV')
//SYSPRINT DD DUMMY
//SYSIN DD DUMMY
//SYSUT2 DD SYSOUT=V,OUTPUT=*.OUT1
//SYSUT1 DD DSN=AB.BC.DDD.CSV,DISP=SHR

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

Basically I want the below lines

//OUT1 OUTPUT DEST=LPEMAIL3,
// USERDATA=('TO:ab.bc@xyz.COM',
// 'SUBJECT:Email Subject,
// 'FILENAME: Test.CSV')

to be dynamically inserted in the IEBGENER step.

Any help is appreciated

Manu
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jul 19, 2012 3:50 am    Post subject:
Reply with quote

where from/when do you know the
DEST=xxxx (is the xxxx also one of the dynamic parms?)
email address
file name (is that another one of the dynamic parms?)

this kind of thing has only been explained about 20-30 times
since the first of the year.
Back to top
View user's profile Send private message
manugeorge2004

New User


Joined: 17 Jun 2009
Posts: 35
Location: Denver

PostPosted: Thu Jul 19, 2012 4:23 am    Post subject:
Reply with quote

DEST will be constant. Other parameters are variable..I get them from a database
I couldnt find a similar query in the forum.
Can you please help
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Jul 19, 2012 5:05 am    Post subject:
Reply with quote

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)
  • jessysmsgs

using BBCode to provide readability for members
who wish
(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?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us