View previous topic :: View next topic
|
Author |
Message |
Amsar
New User
Joined: 26 Sep 2008 Posts: 84 Location: Chennai
|
|
|
|
Hi All,
I am zipping a file (PGM=ZIP) having header and data in comma seprated format.
i am mailing this file thru PGM=SMTP but i am unable to open the attachment. Warning message i am getting is [WARNING : A/V UNSCANNABLE]
Could anybody help me to resolve this issue?
Thanks,
Amol |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What did you tell SMTP are the characteristics of the attachment?
Most likely, the ZIP file is unscannable because it no longer is a ZIP file -- if SMTP treated it as a text file and converted EBCDIC to ASCII the file is totally and completely corrupt. |
|
Back to top |
|
|
Amsar
New User
Joined: 26 Sep 2008 Posts: 84 Location: Chennai
|
|
|
|
Robert,
SMTP is a program for mailing (May be client specific). and this the input for mailing job
result,lacs1.zip,binary
Thanks,
Amsar |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
I am extremely familiar with SMTP on z/OS -- I've set up multiple SMTP jobs running on different ports on one LPAR, even. In SMTP to send an attachment, particularly a binary file such as a ZIP file, you must (note the mandatory nature) use MIME to tell SMTP how to handle the attachment. I was asking for the MIME statements in your SMTP commands to be posted for review. SMTP is part of the TCP/IP stack installed as part of the z/OS from IBM and there's configuration options that can be client specific, but the actual way it works is not client specific.
Per the RFC specifications for SMTP (which I've read and in some cases have copies of), the general format for an SMTP conversation is:
Code: |
HELO <domainname>
MAIL FROM: <sendingid@domain>
RCPT TO: <receivingid@domain>
DATA
From: <user specified data>
To: <user specified data>
Subject: <user specified data>
MIME-Version: 1.0
Content-Type: text/plain
Content-Disposition: attachment; filename=file.txt |
This is the MIME information for a simple text file attachment. What is the Content-Type you are specifying? What is the Content-Disposition you are specifying? |
|
Back to top |
|
|
Amsar
New User
Joined: 26 Sep 2008 Posts: 84 Location: Chennai
|
|
|
|
Fallowing are the messages from the spool.
[
Code: |
X-Mailer: SCESMTP 3.1B 04/16/04_12.53
X-SystemID: A0
X-Jobname: CI656A
X-JobID: JOB01674
X-UID: CI656
X-RACF-Name: xxxxx
Content-Type: multipart/mixed; boundary="A0C4BBE4E62CD727"
--A0C4BBE4E62CD727 |
[/code] |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Let's try one last time.
I did not ask you for details of the spool output. I want to see the actual data you are passing to SMTP. I don't know if your batch job is using IEBGENER or some other utility to write to (B,SMTP) -- or whatever your SMTP writer class is if not B -- but I want to see what the input is to that copy. I suspect that your input is incorrectly specified -- Content-Type should be application/zip (or something similar) not multipart/mixed.
If you cannot provide the SMTP source statements that you are using, I cannot help you since there's not enough data about the problem. In that case, I strongly urge you to contact your site support group for assistance. |
|
Back to top |
|
|
Amsar
New User
Joined: 26 Sep 2008 Posts: 84 Location: Chennai
|
|
|
|
Robert,
This is the data after zipping which is passed as an input to SMTP.
Code: |
&.........òã...Þ&.%x....3.....äñè....äíí...ê..ë&<ñè..!ññÖÜùK.PÍÞÅÕ"åa'Äá4û.¨R.â»
..Tc1ñá.73F8-@bP.FX:ÚÖgÙ..ð|..T.ö¬..V$...¤ÅhF8-@ó[Á/@«×Ñð.F.Tc1Ñ.ý1.áÄ@wÇð|Â.FÅú
Tc1Z.ý1A8Us..CÉ..˼-@....ðõùT.h]-@..zÇð|rG8.üb1¾Qb1A8Àt..CÉ..3¼-@..JYÍ.'F8-@SJ.¤
.Á.T3ø.FXÂ.F.TlýF8.GA8öÿb1A8àtP94.Tc1iåÄ@.F.Tc1.%A8-@..xJ..ð|ÛÇðõ".Të=5iF8-@.åÄ
TË£.Tc1IãÄ@fT-@W?A8-@sJÔ@³ð1A8Dt..Á.Tc1A8.¶-@...¤LÇð.Fx'.FX.b1.׳àÄ@..¸t...¤è4Ê"
.TËQb1A8-@+t...¤6J.¤..Fxܲ.ý1A8ÈþF8-@êJôÙ¨...¤\.ý1Rõ×Ù¥.Tc1iåÄ@Üf1r´.Tc19â.F.T3 |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Where's the HELO command? Where's the MAIL FROM command? Where's the RCPT TO command? If this is all you're sending, you're not sending SMTP -- SMTP transactions must start with HELO (or EHLO), have a MAIL FROM, have a RCPT TO, and have a DATA statement. You're not showing me any of these. |
|
Back to top |
|
|
Amsar
New User
Joined: 26 Sep 2008 Posts: 84 Location: Chennai
|
|
|
|
Code: |
helo RSMD3
mail from:<POSTMASTER@ACE.COM>
rcpt to:<@MAIL01.SCE.COM:ADDD@CDSC.COM>
data
Date: September 3, 2009 17:12:41 -07
Message-ID: <A0C4BBFC677B4B1D>
SUBJECT:LDAD-CDDD-DDRESS-REPORT-1
From: XXX, XXXC
To: XXXXX@CXSC.COM
MIME-Version: 1.0
X-Mailer: SCESMTP E.1B 04/16/04_12.53
X-SystemID: A0
X-Jobname: CI6DX
X-JobID: JOB021D5
X-UID: CI656
X-RACF-Name: XX XXXX
Content-Type: multipart/mixed; boundary="A0C4BBFC677B4B1D"
--A0C4BBFC677B4B1D
Content-Type: text/plain |
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Your last Content-Type is text/plain -- which absolutely will not work with Zip files (which are binary). Try application/zip or application/octet-stream. |
|
Back to top |
|
|
|