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
 

 

JCL to send a e-mail with zip file attached

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
abhiyanta

New User


Joined: 18 Apr 2006
Posts: 11
Location: pune

PostPosted: Fri Mar 12, 2010 5:29 pm    Post subject: JCL to send a e-mail with zip file attached
Reply with quote

Hi,

Please help me for JCL which is used to send a e-mail with ZIP file attached. Our corrent JCL is not working for zip file attachment.


//STEP02 EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,TCPSMTP)
//SYSUT1 DD DISP=SHR,
// DSN=DPFCBP2.D381057.SOURCE(ABCCNTL)
// DD DSN=TEMP01.ZIP,DISP=(OLD,PASS)


Error in SD;SF

1DATA SET UTILITY - GENERATE
-IEB352I WARNING: ONE OR MORE OF THE OUTPUT DCB PARMS COPIED FROM INPUT

IEB351I I/O ERROR ,MAILJOB9,STEP01 ,E967,D, ,READ ,WRNG.LEN.RECORD,000
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Mar 12, 2010 5:31 pm    Post subject: Reply to: JCL to send a e-mail with zip file attached
Reply with quote

You're concatenating two input datasets - are the both the same RECFM and LRECL?
Back to top
View user's profile Send private message
abhiyanta

New User


Joined: 18 Apr 2006
Posts: 11
Location: pune

PostPosted: Fri Mar 12, 2010 5:42 pm    Post subject:
Reply with quote

No... One of them is FB of 80 LRECL, which is used as a mail body. and other one is attachment which should be zip file.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Mar 12, 2010 6:28 pm    Post subject:
Reply with quote

The 80-byte LRECL must be changed to match the zip file. This is one reason we never email zip files but use FTP to transfer them. You could change your first file from FB,80 to VB,84 and use a DCB block size override on the first DD name of the concatenation to indicate the block size of the zip file. Otherwise, you will have to ensure both files in the concatenation have the same DCB attributes.
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 -> JCL & VSAM 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 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
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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