IBM MAINFRAME HELP & SUPPORT FORUMS
Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
 

syntax error in sending email using JCL

THIS IS AN ARCHIVE FORUM: CLICK HERE TO GO TO THE ORIGINAL TOPIC

 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> TSO/ISPF
View previous topic :: View next topic  
Author Message
jeevajeeva



Joined: 13 May 2006
Posts: 16

Posted: Fri Jun 23, 2006 11:04 am    Post subject: syntax error in sending email using JCL  

HI,

i have coded the data command as follows

DATA
to: nirmal@yahoo.com
subject:test mail

this is just a test mail.


but i am getting the undeliverable mail as follows

501 Syntax Error. No Args after 'DATA' command
500 Unknown command, 'to'
500 Unknown command, 'subject'
500 Unknown command, 'this'

any body please help me to solve this
Back to top  
akila_504



Joined: 27 Jan 2006
Posts: 3

Posted: Fri Jun 23, 2006 12:35 pm    Post subject: syntax error in sending email using JCL  

Hi Jeeva,

see the below syntax for DATA command :

DATA
FROM:<mahitha.kondasani@COGNIZANT.COM>
TO:<mahitha.kondasani@COGNIZANT.COM>
CC:<mahitha.kondasani@COGNIZANT.COM>
CC:<mahitha.kondasani@COGNIZANT.COM>
SUBJECT: TESTING in progress

u have to put TO or CC address in angle brackets.

i hope, now u donot get error, let me know.[/left]
Back to top  
jeevajeeva



Joined: 13 May 2006
Posts: 16

Posted: Fri Jun 23, 2006 4:12 pm    Post subject: Re: syntax error in sending email using JCL  

hi,


its working fine now thanks Akila

Regards,
Jeeva
Back to top  
guptae



Joined: 14 Oct 2005
Posts: 1024
Location: Bangalore,India

Posted: Thu Feb 22, 2007 6:45 pm    Post subject:  

HI There,

Topic is already discussed

http://ibmmainframes.com/viewtopic.php?t=10808
http://ibmmainframes.com/viewtopic.php?t=7118
http://ibmmainframes.com/viewtopic.php?t=3783
http://ibmmainframes.com/viewtopic.php?t=10181
Back to top  
 
       IBMMAINFRAMES.com - IBM Mainframe Support Forums Index -> TSO/ISPF
Page 1 of 1
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM