Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
sending mail through jcl (file input)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
pankaj_psm

New User


Joined: 03 May 2005
Posts: 4
Location: Pune

PostPosted: Wed Mar 28, 2007 4:43 am    Post subject: sending mail through jcl (file input)
Reply with quote

Hi There,
I am using code in sysut1,it is running.When I put this code in ps file(record length=80, and format =f) then I receive a mail but saying "Unable to deliver mail to some/all recipients" and
Syntax Error. No Args after 'DATA' command
Please suggest what should I do ?
Details are given below...


*********code in sysut1 ************
//SYSUT1 DD *
HELO domain name
MAIL FROM:<my email id>
RCPT TO:<recipient's email id >
DATA
FROM:<my email id>
TO:<recipient 's email id>
SUBJECT: TESTING MAIL FUNCTION
MAR 2007,SENDING MAIL FROM MAINFRAME.
PANKAJ.
//SYSUT2 DD SYSOUT=K,DEST=TCPSMTP,
// DCB=(RECFM=F,LRECL=80)
//SYSPRINT DD SYSOUT=*,LRECL=133
//SYSOUT DD SYSOUT=*
********************************************************
***************** file input in sysut1**********************

//SYSUT1 DD DISP=SHR,DSN=CMME.SEND.EMAIL
content of file :
HELO RCCC
MAIL FROM:<my email id>
RCPT TO:<recipient 's email id>
DATA
FROM:<my email id>
TO:<recipient's email id>
SUBJECT: TESTING MAIL FUNCTION
MAR 2007,SENDING MAIL FROM MAINFRAME.
PANKAJ.

*********************************************************

****************error message received ********************
Unable to deliver mail to some/all recipients.
050 DATA 00000004
501 Syntax Error. No Args after 'DATA' command
050 FROM:<my email id >
00000005
500 Unknown command, 'FROM'
050 TO:<recipient's email id >
00000006
500 Unknown command, 'TO'
050 SUBJECT: TESTING MAIL FUNCTION 00000007
500 Unknown command, 'SUBJECT'
050 MAR 2007,SENDING MAIL FROM MAINFRAME. 00000008
500 Unknown command, 'MAR'
050 PANKAJ. 00000009
500 Unknown command, 'PANKAJ'
*********************************************************


Thanks,

Pankaj
Back to top
View user's profile Send private message

pankaj_psm

New User


Joined: 03 May 2005
Posts: 4
Location: Pune

PostPosted: Thu Mar 29, 2007 12:31 pm    Post subject: sending mail through jcl (file input problem)...
Reply with quote

Hi Nirmal,
I am using code in sysut1,it is running.When I put this code in ps file(record length=80, and format =f) then I receive a mail but saying "Unable to deliver mail to some/all recipients" and
Syntax Error. No Args after 'DATA' command
Please suggest as early as possible what should I do ?
Details are given below...


*********code in sysut1 ************
//SYSUT1 DD *
HELO domain name
MAIL FROM:<my email id>
RCPT TO:<recipient's email id >
DATA
FROM:<my email id>
TO:<recipient 's email id>
SUBJECT: TESTING MAIL FUNCTION
MAR 2007,SENDING MAIL FROM MAINFRAME.
PANKAJ.
//SYSUT2 DD SYSOUT=K,DEST=TCPSMTP,
// DCB=(RECFM=F,LRECL=80)
//SYSPRINT DD SYSOUT=*,LRECL=133
//SYSOUT DD SYSOUT=*
********************************************************
***************** file input in sysut1**********************

//SYSUT1 DD DISP=SHR,DSN=CMME.SEND.EMAIL
content of file :
HELO RCCC
MAIL FROM:<my email id>
RCPT TO:<recipient 's email id>
DATA
FROM:<my email id>
TO:<recipient's email id>
SUBJECT: TESTING MAIL FUNCTION
MAR 2007,SENDING MAIL FROM MAINFRAME.
PANKAJ.

*********************************************************

****************error message received ********************
Unable to deliver mail to some/all recipients.
050 DATA 00000004
501 Syntax Error. No Args after 'DATA' command
050 FROM:<my email id >
00000005
500 Unknown command, 'FROM'
050 TO:<recipient's email id >
00000006
500 Unknown command, 'TO'
050 SUBJECT: TESTING MAIL FUNCTION 00000007
500 Unknown command, 'SUBJECT'
050 MAR 2007,SENDING MAIL FROM MAINFRAME. 00000008
500 Unknown command, 'MAR'
050 PANKAJ. 00000009
500 Unknown command, 'PANKAJ'
*********************************************************


Thanks,

Pankaj
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us