MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

EMAIL RC=0, BUT NO MAIL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Sun Dec 10, 2006 12:42 am    Post subject: EMAIL RC=0, BUT NO MAIL Reply with quote

hI,
am trying to send mail thru mainframe. am receiving RC=0 for job but dint get any email. i have two SMTP jobs running on my mainframe SMTP1, SMTP2. So, SMTP must have been enabled.

any idea why am not getting mail?

//SENDNOTE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(A,SMTP)
//SYSUT1 DD *
HELO SYSA
MAIL FROM:<FROM-MAIL-ID>
RCPT TO:<TO-MAIL-ID>
DATA
FROM: FROM-MAIL-ID
TO: TO-MAIL-ID
SUBJECT: TEST MESSAGE FROM MVS USING SMTP
THIS IS A LINE IN THE BODY OF THE NOTE.
QUIT
//*
_________________
Thanks
Back to top
View user's profile Send private message
Sarangadhar
Beginner


Joined: 14 Oct 2004
Posts: 130
Topics: 43
Location: virtual village

PostPosted: Sun Dec 10, 2006 1:01 pm    Post subject: Reply with quote

am able to receive mail if i use SMTPNOTE in REXX.. as coded below:

/*REXX*/
"SMTPNOTE BATCH DATASET('dataset.toattach') ",
"SUBJECT(TEST SMTP) ",
"TO(mail-id)"

but file is not coming as attachement. content of the dataset is getting copied into body of the mail. I wanted as some body data and well as attachement.

any ideas please.
_________________
Thanks
Back to top
View user's profile Send private message
pvrajs
Beginner


Joined: 07 Jan 2005
Posts: 41
Topics: 12

PostPosted: Fri Dec 22, 2006 9:54 am    Post subject: Reply with quote

Hi,

Sorry to post my problem in the same thread. I have chosen as I too am having the same problem. I am using IKJEFT01. And I am calling a QMF proc in this step which atcually generates the email. Please find the code below -
[code:1:6bc204b515]
ARG PARMREC

PARSE VALUE PARMREC WITH HLQNAME DSNAME
DELSTACK

ADDRESS TSO "FREE FI(DSQPRINT)"
ADDRESS TSO "FREE FI(MAILHDR)"
ADDRESS TSO "FREE FI(MAILIN)"
ADDRESS TSO "FREE FI(MAILOUT)"
"GET GLOBAL (DB2SYS = DSQAO_SUBSYS_ID)"
IF HLQNAME = '' THEN HLQNAME = '<PROD_HLQ>'
HDRNAME = HLQNAME'.'DB2SYS'.SPABEND.MAILHDR'
ADDRESS TSO "DELETE '"HDRNAME"'"
ADDRESS TSO "ALLOCATE FI(MAILHDR) DA('"HDRNAME"') ,
MOD LRECL(150) RECFM(F B) DSORG(PS) SPACE(1,15) TRACKS"

IF DB2SYS = 'DB81' THEN REG = 'H135'
IF DB2SYS = 'DB82' THEN REG = 'H265'
IF DB2SYS = 'DB85' THEN REG = 'H276'
IF DB2SYS = 'DB32' THEN REG = 'H151'

IF RC
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group