|
View previous topic :: View next topic
|
| Author |
Message |
nitinkhobragade1
New User
Joined: 07 Mar 2006 Posts: 16
|
|
|
|
Hi,
I am using a below JCL code to send email:
Although i am recieving the email but the email is coming with a BLANK subject line and body of email is also BLANK. i.e no text appears inside email.
Can any one please tell me why i am not getting the subject line and email text mentioned in JCL when i recieve the email? |
|
| Back to top |
|
 |
asridhar
New User
Joined: 04 May 2005 Posts: 5 Location: Hyderabad
|
|
|
|
Hi
Can you please explain me this [email protected] ..is this MVSUSER our RACFID and MVSHOST is our system which we are working on the system.
When am trying with your code am not getting any result..
could you please explain me exactly what you are looking?
Thanks
Sagar |
|
| Back to top |
|
 |
prakash.ammasi
New User
.jpg)
Joined: 04 Apr 2007 Posts: 8 Location: chennai
|
|
|
|
www.dnsstuff.com/
and find for the IPWHOIS Lookup
give u r IP there it wil give u r server details, NameServer
then find for DNS Report in the main page it gives the Host mail id |
|
| Back to top |
|
 |
ramfrom84
New User

Joined: 23 Aug 2006 Posts: 93 Location: chennai
|
|
|
|
Hi All,
What is [email protected] , i test the sample JCL , i m not getting Even Blank Mail. Can u please explain in More details about this JCL . It would be helpful for Us...
Thanks........ |
|
| Back to top |
|
 |
prakash.ammasi
New User
.jpg)
Joined: 04 Apr 2007 Posts: 8 Location: chennai
|
|
|
|
i do have the same question [email protected] means ???
my jcl running fine but SYSPRINT shows
DATA SET UTILITY - GENERATE
IEB352I WARNING: ONE OR MORE OF THE OUTPUT DCB PARMS COPIED FROM INPUT
PROCESSING ENDED AT EOD |
|
| Back to top |
|
 |
shane
New User

Joined: 17 May 2007 Posts: 11 Location: Phoenix,Arizona
|
|
|
|
Hi Nitin,
I think this codes should work with some minor changes in the JCl as said by prakash, |
|
| Back to top |
|
 |
shane
New User

Joined: 17 May 2007 Posts: 11 Location: Phoenix,Arizona
|
|
| Back to top |
|
 |
bhim_s
New User
.jpg)
Joined: 19 Sep 2006 Posts: 46 Location: Australia
|
|
|
|
TRY THIS...
| Code: |
//SENDNOT EXEC PGM=SYNCGENR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSUT1 DD *
HELO MVSHOST
MAIL FROM:<sender's mail id>
RCPT TO:<receiver's mail id>
DATA
TO: ABC <receiver's mail id>
FROM: sender's mail id
SUBJECT: TEST MAIL...
*******************
BHIM.
/*
//SYSUT2 DD SYSOUT=(B,SMTP)
//* |
Bhim |
|
| Back to top |
|
 |
ramfrom84
New User

Joined: 23 Aug 2006 Posts: 93 Location: chennai
|
|
|
|
| I try Both the , The job run fine ,But i didnot get mail. |
|
| Back to top |
|
 |
shane
New User

Joined: 17 May 2007 Posts: 11 Location: Phoenix,Arizona
|
|
| Back to top |
|
 |
prakash.ammasi
New User
.jpg)
Joined: 04 Apr 2007 Posts: 8 Location: chennai
|
|
|
|
hi ramfrom84,
try this .....
**** WORING FINE *********
//TESTJCL JOB ('CGAT01',013),'PRAKASH',
// MSGCLASS=T,CLASS=T,NOTIFY=USERID,REGION=4M
//SENDNODE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
HELO MVSHOST
MAIL FROM:<[email protected]>
RCPT TO:<[email protected]>
DATA
FROM:<[email protected]>
TO:<[email protected]>
SUBJECT: TEST MAIL FROM JCL
HI PETER THIS IS A TEST MAIL....
/*
AND I GOT THIS MAIL .........
Subject: Undeliverable Mail
Unable to deliver mail to some/all recipients.
050 DATA 00020002
501 Syntax Error. No Args after 'DATA' command
050 FROM:<[email protected]> 00030002
500 Unknown command, 'FROM'
050 TO:<[email protected]> 00040002
500 Unknown command, 'TO'
050 SUBJECT: TEST MAIL FROM JCL. 00050002
500 Unknown command, 'SUBJECT'
050 HI PETER THIS IS A TEST MAIL.... 00084002
500 Unknown command, 'HI'
** Text of Mail follows **
HELO MVSHOST 00008002
MAIL FROM:<[email protected]> 00009002
RCPT TO:<[email protected]> 00010002
DATA 00020002
FROM:<[email protected]> 00030002
TO:<[email protected]> 00040002
SUBJECT: TEST MAIL FROM JCL. 00050002
HI PETER THIS IS A TEST MAIL.... 00084002 |
|
| Back to top |
|
 |
ramfrom84
New User

Joined: 23 Aug 2006 Posts: 93 Location: chennai
|
|
|
|
I try ur Code , But i not get the mail , return code is 0,Please see my output.Please advise where i went wrong , and my jcl is MENTION BELOW
| Code: |
//TESTJCL4 JOB (12345),'JCL',CLASS=A,
// MSGCLASS=X,NOTIFY=TESSTJCL,
// MSGLEVEL=(1,1),
//*
//SENDNODE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
HELO MVSHOST
MAIL FROM:<[email protected]>
RCPT TO:<[email protected]>
DATA
FROM:<[email protected]>
TO:<[email protected]>
SUBJECT: TEST MAIL FROM JCL
HI PETER THIS IS A TEST MAIL....
/*
|
SYSPRINT details
| Code: |
DATA SET UTILITY - GENERATE
IEB352I WARNING: ONE OR MORE OF THE OUTPUT DCB PARMS COPIED FROM INPUT
PROCESSING ENDED AT EOD
|
SYSUT2 details :
|
|
| Back to top |
|
 |
prakash.ammasi
New User
.jpg)
Joined: 04 Apr 2007 Posts: 8 Location: chennai
|
|
| Back to top |
|
 |
paray2x
New User
Joined: 28 Dec 2005 Posts: 21
|
|
|
|
nitinkhobragade1,
If your site supports it, you can use XMITIP program to send e-mails from batch. Its a freeware and wasy to use.
Refer the user guide at
Use [URL] BBCode for External Links
Thanks |
|
| Back to top |
|
 |
paray2x
New User
Joined: 28 Dec 2005 Posts: 21
|
|
|
|
Sorry, The above message should read
"Its a freeware and easy to use. " |
|
| Back to top |
|
 |
ramfrom84
New User

Joined: 23 Aug 2006 Posts: 93 Location: chennai
|
|
|
|
Thanks prakash.ammasi for the material about sending Mail .
I have a question for u ?
How can i find the HOST Name, I have problem with it.Help me Out...
Thanks in advance,.., |
|
| Back to top |
|
 |
prakash.ammasi
New User
.jpg)
Joined: 04 Apr 2007 Posts: 8 Location: chennai
|
|
|
|
hi this is the JCL below
IF U WANT TO FIND THE "MVSHOST" (on the "helo MVSHOST" line) must match the JES Node name for your system as defined in your 'SYS1.PARMLIB(IEFSSNxx)' for the VMCF subsystem. If you are a JES2 site, look at any JES2 job log for the node name at the top after "N O D E".
//TESTJCL JOB ('GGOT32',013),'PRAKASH',
// MSGCLASS=T,CLASS=T,NOTIFY=C33SMSY,REGION=4M
//SENDNODE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
HELO MVSHOST
MAIL FROM:<[email protected]>
RCPT TO:< [email protected]>
DATA
FROM:<[email protected]>
TO:<[email protected]>
SUBJECT: TEST MAIL FROM JCL
HI THIS IS A TEST MAIL....
/* |
|
| Back to top |
|
 |
ramfrom84
New User

Joined: 23 Aug 2006 Posts: 93 Location: chennai
|
|
|
|
Hi ,
I m not habving permission for this PDS SYS1.PARMLIB, Is there no way to find the MVS Host id. |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
You might talk with your network or system support people. They will know the info you want. |
|
| Back to top |
|
 |
|
|