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

XMITIP error


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Fri Aug 26, 2011 10:32 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Aug 26, 2011 11:06 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Aug 26, 2011 11:14 pm
Reply with quote

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
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Fri Aug 26, 2011 11:41 pm
Reply with quote

Thats what I did. But it is not working icon_sad.gif
Back to top
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Fri Aug 26, 2011 11:51 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Aug 26, 2011 11:54 pm
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Sat Aug 27, 2011 12:04 am
Reply with quote

The coded text of the XMITIP command does not seem to match exactly the echo in the error messages.
Back to top
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Sat Aug 27, 2011 3:22 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Sat Aug 27, 2011 9:20 am
Reply with quote

Hello,

Of course that was a syntax problem. . .

If you cloned a working xmitip process, where did the + signs come from.?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Aug 27, 2011 9:35 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Sat Aug 27, 2011 7:47 pm
Reply with quote

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
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top