IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

CICS COBOL PROGRAM.


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
krunalbafna
Warnings : 1

Active User


Joined: 18 Jan 2010
Posts: 143
Location: Pune

PostPosted: Mon Jan 02, 2012 5:04 pm
Reply with quote

Hi,
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Jan 02, 2012 7:12 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Using API Gateway from CICS program CICS 0
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top