View previous topic :: View next topic
|
Author |
Message |
Ruchita.Jain
New User
Joined: 18 Oct 2013 Posts: 1 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
madprasy
New User
Joined: 08 Apr 2008 Posts: 34 Location: Chennai
|
|
|
|
Try SMTP in batch job.. You can search for SMTP in the forum for sample. |
|
Back to top |
|
|
|