Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 8167
Location: East Dubuque, Illinois, USA

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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us