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: 8002
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 RULES(NOEVENPACK) in cobol jackzhang75 COBOL Programming 5 Wed Mar 29, 2017 12:47 am
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm

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