IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

Cobol Pgm to Trigger mail on Lotus Notes


 
IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ruchita.Jain

New User


Joined: 18 Oct 2013
Posts: 1
Location: India

PostPosted: Fri Oct 18, 2013 6:43 pm
Reply with quote

Hi , This is my first post here.
Can some one pls guide me for below query:

I have created a cobol program to trigger mail on Lotus notes . If I am fetching Current region as EXEC SQL SET :WS-REGION = CURRENT SERVER END-EXEC , it is working successfully.

If I am trying to pass current region through parm parameter from JCL and treating it as a non DB2 Module , it is giving me an error code as 2944.

WS-REGION IS PIC 9(8) VALUE SPACES.
and parm parameter also I am passing of 8 bytes.

I want my program to work as a non DB2 Module.

Thank you
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19251
Location: Inside the Matrix

PostPosted: Fri Oct 18, 2013 7:17 pm
Reply with quote

Hello and welcome to the forum,

If you want the code to work as non-db2, why is there an SQL SET?

To get a parm into a batch program, use the LINKAGE section in the code.

The way many places "trigger" an e-mail is by executing a step in the batch job.

Possibly i have gotten lost. If i have, please clarify.
Back to top
View user's profile Send private message
madprasy

New User


Joined: 08 Apr 2008
Posts: 34
Location: Chennai

PostPosted: Sat Oct 19, 2013 11:32 am
Reply with quote

Try SMTP in batch job.. You can search for SMTP in the forum for sample.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> COBOL Programming
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts COBOL PERFORMANCE TUNING COBOL Programming 0
No new posts JCL for replacing code in Cobol JCL & VSAM 8
No new posts COBOL VS SORT Utility for file format... COBOL Programming 6
No new posts XML Parsing in COBOL creating "h... COBOL Programming 0
No new posts Calling Rexx program from Cobol CLIST & REXX 12

Back to Top