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

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: 19245
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts IDCAMS listcat service using cobol JCL & VSAM 1
No new posts Make cobol variable value a variable COBOL Programming 3
No new posts how to convert and use 1 bit hex-numb... COBOL Programming 10
No new posts VB file copy COBOL program gives erro... COBOL Programming 3
No new posts Cobol program to determine the sequen... COBOL Programming 2
Search our Forums:

Back to Top