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



Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
Warnings : 1

Active User

Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Mon Jan 02, 2012 5:04 pm    Post subject: CICS COBOL PROGRAM.
Reply with quote

I am writting a code in which i need to send the mail wether input file is processed or not.

Here I have 16 clients. When i execute the CICS program i get USER id which should be my email list.
eg i am user and my user id is : "OOIUJF" than mail should go to OOIUJF@abc.com.
in case job is ran successfully or abended.
The card should have an attachment in case of succesful run and no attachment in other case.

The subject line should change similarly.
I am planning to write a single card which has details such as :
Recepient, SUBJECT and attachment details.
For contentt also i should write the line dynamically.

Is there any approach how the three cards can be written dynamically and used in JCL to execute SMTP batch to send mail and attachment.
(Kindly provde how it is possible to send the attachment - I referred the forum but cannot strike the cord.)
Back to top
View user's profile Send private message

Robert Sample

Global Moderator

Joined: 06 Jun 2008
Posts: 7869
Location: Bellevue, IA

PostPosted: Mon Jan 02, 2012 7:12 pm    Post subject:
Reply with quote

Contact your site support group and work with them. Whether or not what you want to do is even possible is a question only someone working at your site can answer. Your CICS region must have a TD queue defined to point to the internal reader; if your site doesn't have TD queues so defined in your CICS region then what you want to do cannot be accomplished through CICS, period. And only someone at your site can tell you this.

Furthermore, I just did a search (using the forum Search function) on smtp attachment and got 50 hits, several of which have the exact JCL used to generate emails with attachments.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1


Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 11 Tue Oct 18, 2016 4:50 pm
No new posts cobol embedded sql MS_Developer COBOL Programming 7 Fri Oct 14, 2016 2:39 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm
No new posts COBOL 5 Compile oerdgie COBOL Programming 3 Thu Oct 06, 2016 6:14 pm

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