View previous topic :: View next topic
|
Author |
Message |
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
I want to send a message through a JCL. I am using the following step.
Code: |
//SEND EXEC PGM=IKJEFT1B
//SYSIN DD DUMMY
//SYSEXEC DD DSN=TSO.SSS.REXXLIB,DISP=SHR
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
%XMITIP (user@xxx.com) +
MSGDD CONTENT +
MSG72 +
REPLYTO user@xxx.com +
FROM user@xxx.com +
SUBJECT 'Compare job execution status'
/*
//CONTENT DD *
Comparison job has been completed and the ouput datasets are ready.
/* |
But it is giving me syntax error.
Code: |
READY
%XMITIP (user@xxx.com)MSGDD CONTENT MSG72 REPLYTO user@xxx.comFR
n status'
XMITIP: keyword: >user@xxx.COMSUBJECT< is invalid in the syntax of this
XMITIP: The correct syntax for XMITIP (version) 4.32 is:
XMITIP: %XMITIP user@address
XMITIP: or (u1@address u2@address..) |
I did ggogling and did QW as well. But nothing helped. I am not sure where I am making the mistake. Is there anyone who can help? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
there are quite a few examples of xmitip around
or google for the xmitip manuals, or ask Your support to provide them
luckily I had the link handy
www.lbdsoftware.com/XMITIP-Guide.pdf |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
One easy way to getting a new XMITIP to work is to clone an existing one that already works on your system and change accordingly to your specifics. . . |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
Thats what I did. But it is not working |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
I modified this as below and it is working now. Thanks for the help.
//SYSTSIN DD *
%XMITIP (user@xxx.com ) -
CC (user@xxx.com ) -
FROM user@xxx.com -
SUBJECT 'FAILURE Check Writing Job' -
MSGDD MSGTXT
/*
//MSGTXT DD *
One of the Check Writing Jobs FAILED.
/* |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Then you changed something. . . What?
Why are there () around only 1 address (user@xxx.com)? The info presented by xmitip shows differently. . . |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
The coded text of the XMITIP command does not seem to match exactly the echo in the error messages. |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
I just changed '+' sign at the end of each sentece to '-' and it worked. I think there was no issue with the syntax. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Of course that was a syntax problem. . .
If you cloned a working xmitip process, where did the + signs come from.? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
from the manual
Quote: |
A plus sign causes leading delimiters to be removed from the continuation line. |
Quote: |
REPLYTO user@xxx.com +
FROM user@xxx.com + |
I am pretty sure that the command was edited somehow after the initial submission, there was no blank before the + in the REPLYTO fragment
that is confirmed by the diagnostic message
Quote: |
READY
%XMITIP (user@xxx.com)MSGDD CONTENT MSG72 REPLYTO user@xxx.comFR
n status'
XMITIP: keyword: >user@xxx.COMSUBJECT< is invalid in the syntax of this
XMITIP: The correct syntax for XMITIP (version) 4.32 is:
XMITIP: %XMITIP user@address
XMITIP: or (u1@address u2@address..)
|
where the FR and SUBJECT are <concatenated> to the preceding xxx.com
that' s why using the - as a continuation indicator might be safer (condones sloppy writing ) |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Quote: |
I am pretty sure that the command was edited somehow after the initial submission, there was no blank before the + in the REPLYTO fragment |
Agree
This isnot a problemwith XMITIP. Itis a problem with theuse of continuation. The TSO manuals describe the usage of continuation characters. |
|
Back to top |
|
|
|