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

sending mail through jcl (file input)


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts IGYPG3178-I when compiling a pgm read... COBOL Programming 6
No new posts FileAid move data from two files to o... Compuware & Other Tools 5
No new posts Sorting date into YYYYMMDD, and creat... DFSORT/ICETOOL 13
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
Search our Forums:


Back to Top