Joined: 02 Jan 2009 Posts: 115 Location: Hyderabad
Hi,
We have two mainframes at our site.
1. My company's mainframes
2. Client mainframes
In out site, JCL using IEBGENER is working fine to send email with attachment.
I've copy pasted the same thing in client mainframes and just changed the node ( which i got it by issuing the commadn TASID). Max cc = 0, but no mail has come to my id.
There is a difference in SYSPRINT in both mainframes.
working code's SYSPRINT
Code:
DATA SET UTILITY - GENERATE
IEB352I WARNING: ONE OR MORE OF THE OUTPUT DCB PARMS COPIED FROM INPUT
PROCESSING ENDED AT EOD
client mainframe's SYSPRINT
Code:
1ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES A
ICE000I 0 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 19:32 ON WED AU
0 OPTION COPY,MSGDDN=SYSPRINT,SORTIN=SYSUT1,SORTOUT=SYSUT2
ICE201I F RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE751I 0 C5-K90013 C6-K90013 C7-K90000 C8-K42135 E9-K90013 C9-BASE E5-K44563
ICE193I 0 ICEAM2 ENVIRONMENT IN EFFECT - ICEAM2 INSTALLATION MODULE SELECTED
ICE088I 0 D289119A.STEP1 . , INPUT LRECL = 80, BLKSIZE = 80, TYPE = FB
ICE093I 0 MAIN STORAGE = (MAX,6291456,6278910)
ICE156I 0 MAIN STORAGE ABOVE 16MB = (6200798,6200798)
ICE127I 0 OPTIONS: OVFLO=RC0 ,PAD=RC0 ,TRUNC=RC0 ,SPANINC=RC16,VLSCMP=N,SZERO=Y
ICE128I 0 OPTIONS: SIZE=6291456,MAXLIM=3145728,MINLIM=450560,EQUALS=N,LIST=Y,ER
ICE129I 0 OPTIONS: VIO=N,RESDNT=ALL ,SMF=FULL ,WRKSEC=Y,OUTSEC=Y,VERIFY=N,CHALT
ICE130I 0 OPTIONS: RESALL=65536,RESINV=65536,SVC=109 ,CHECK=Y,WRKREL=Y,OUTREL=Y
ICE131I 0 OPTIONS: TMAXLIM=6291456,ARESALL=0,ARESINV=0,OVERRGN=16384,CINV=Y,CFW
ICE132I 0 OPTIONS: VLSHRT=N,ZDPRINT=Y,IEXIT=Y,TEXIT=Y,LISTX=N,EFS=NONE ,EXIT
ICE133I 0 OPTIONS: HIPRMAX=10 ,DSPSIZE=10 ,ODMAXBF=0,SOLRF=Y,VLLONG=N,VSAM
ICE235I 0 OPTIONS: NULLOUT=RC0
ICE084I 0 BSAM ACCESS METHOD USED FOR SYSUT2
ICE084I 0 BSAM ACCESS METHOD USED FOR SYSUT1
ICE751I 1 EF-K10929 F0-K30362 E8-K44563
ICE090I 0 OUTPUT LRECL = 80, BLKSIZE = 80, TYPE = FB
ICE055I 0 INSERT 0, DELETE 0
ICE054I 0 RECORDS - IN: 9, OUT: 9
ICE052I 0 END OF DFSORT
I faced this situation long time back and i did two changes one i looked into some existing e-mail file which was used in my client's machine and i replaced with ICEGENER utility. It woked for me
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
Possible problem 1: the SMTP started task on the client machine may not be the same as on your machine, which would prevent the email from being sent out -- you need to confirm with the client about the SMTP started task name
Possible problem 2: even if the SMTP started task name is the same, the client may have their mail server set up not to send certain emails (above a particular size, for example). You need to confirm with the client about any restrictions on their emails from their mainframe.
Using SORT instead of IEBGENER will have no impact on the sending of the email -- they both copy the data from SYSUT1 to SYSUT2. Concentrate on the real differences between the machines since the one you singled out will not prevent emails from going out. A good thing to look at would be a sample email job that the client is running now to see the differences.
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
Quote:
instead of SMTP, I used TCPSMTP.
This is the started task name I referred to as possible problem #1.
In what you've shown, I do not see the last line with the period that is required under the RFC for the email to be sent. Create file AAAA.BBBB.PERIOD with the same DCB as the other files, edit it to have a period in column 1 of the only line in the file, and change your JCL to
As mentioned by me and robert, try to have same DCB for all files and try with the below
Code:
HELO F0JES2
MAIL FROM:<KRANTHIKUMAR_B@INFOSYS.COM>
RCPT TO:<KRANTHIKUMAR_B@INFOSYS.COM>
DATA
SUBJECT: TEST MAIL
MIME-VERSION: 1.0
CONTENT-TYPE: TEXT/PLAIN
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=TEST.TXT
Joined: 02 Jan 2009 Posts: 115 Location: Hyderabad
Hi,
Tried both suggestions, but of no use
Code:
HELO F0JES2
MAIL FROM:<KRANTHIKUMAR_B@INFOSYS.COM>
RCPT TO:<KRANTHIKUMAR_B@INFOSYS.COM>
DATA
SUBJECT: TEST MAIL
MIME-VERSION: 1.0
CONTENT-TYPE: TEXT/PLAIN
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=TEST.TXT
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
It is time to contact the client support group to find out where the problem is. They may have some specialized set up for SMTP that you need to make adjustments to your program for. As I said earlier, getting a job from the client that is sending email on their system right now would give you some better ideas on how your email needs to be structured.