Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
No new posts High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us