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
 

 

Problem During Zipping and mailing a file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Thu Sep 03, 2009 8:04 pm    Post subject: Problem During Zipping and mailing a file
Reply with quote

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
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7936
Location: Bellevue, IA

PostPosted: Thu Sep 03, 2009 8:15 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Thu Sep 03, 2009 8:26 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7936
Location: Bellevue, IA

PostPosted: Thu Sep 03, 2009 8:51 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Thu Sep 03, 2009 9:02 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7936
Location: Bellevue, IA

PostPosted: Thu Sep 03, 2009 10:30 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Thu Sep 03, 2009 10:36 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7936
Location: Bellevue, IA

PostPosted: Thu Sep 03, 2009 10:39 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Thu Sep 03, 2009 10:47 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7936
Location: Bellevue, IA

PostPosted: Thu Sep 03, 2009 10:49 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics 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 SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
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
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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