IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Mail attachments SYNCSORT COPY FEATURE CALLED - RC = 12


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
meetsrk

New User


Joined: 13 Jun 2004
Posts: 85

PostPosted: Sun Oct 28, 2007 5:15 pm
Reply with quote

Im tryin to send a mail with attachment thru JCL. And i get the below error ..

Code:

DATA SET UTILITY - GENERATE                                         
 WER276B  SYSDIAG= 442548, 908245, 908245, 457954                   
 WER164B  6,896K BYTES OF VIRTUAL STORAGE AVAILABLE, MAX REQUESTED,
 WER164B     256K BYTES RESERVE REQUESTED, 1,000K BYTES USED       
 WER146B  24K BYTES OF EMERGENCY SPACE ALLOCATED                   
 WER108I  SYSUT1   : RECFM=FB   ; LRECL=    80; BLKSIZE=    80     
 WER171A  CONCAT DS, LRECLS NE OR RECFMS DIFF                       
 WER449I  SYNCSORT GLOBAL DSM SUBSYSTEM ACTIVE                     
SYNCSORT COPY FEATURE CALLED - RC = 12                             


The file which im attaching is of Record length . . . : 7832 ..

But when i send a file of RL as 80 .. it is succesfully sent ..

Pls advice ..

Thanks in advance.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Oct 28, 2007 5:19 pm
Reply with quote

Code:
WER171A  CONCAT DS, LRECLS NE OR RECFMS DIFF     


The message is clear,
You are trying to concatenate files with different dcb' s atttributes and that's
nowhere allowed

in Your "code" there is nothing related to "send Mail" it is just
a sort/syncsort sysout
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Sun Oct 28, 2007 5:25 pm
Reply with quote

You can't send line lengths over 1000 through email. See previous discussions on this.
Back to top
View user's profile Send private message
meetsrk

New User


Joined: 13 Jun 2004
Posts: 85

PostPosted: Sun Oct 28, 2007 5:29 pm
Reply with quote

Thanks for pointing out .. but i dont use any other files in concatenation ..

Code:

//SYSUT1 dd *
<mail instruct>
/*
//            dd dsn=<attachment of file RL = 7832>, disp=shr
//            dd *
<mail instruc>
/*



pls advice.
Back to top
View user's profile Send private message
meetsrk

New User


Joined: 13 Jun 2004
Posts: 85

PostPosted: Sun Oct 28, 2007 5:36 pm
Reply with quote

Oh thanks Steve .. didnt see ur message ..

Is there anyway .. i can send this file as attachement?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Oct 28, 2007 5:39 pm
Reply with quote

YES YOU DO !!

in Your jcl stub there is a ..

Code:
//sysut1 dd ...
folllowed by
// dd ...
followed by
// dd ...


if that is not a dataset concatenation...
how would You call it

remeber that, as per MVS device independence,
a DD statement defines a dataset, even if it is made up of inline
data as in the case of a ...DD *
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Oct 28, 2007 5:45 pm
Reply with quote

Another remark ( I hit submit too fast )
the message You got is not related at all to mail processing

it' s just a CONCATENATION related issue

the fact that mail might have other issues is not part of this thread
Back to top
View user's profile Send private message
meetsrk

New User


Joined: 13 Jun 2004
Posts: 85

PostPosted: Sun Oct 28, 2007 5:59 pm
Reply with quote

e.s ... thanks a lot .. found the issue ....

The member where is wrote my pgm is off 80 bytes ..

so when i used sysut1 dd * .. it took 80 bytes and another was 7832 ..

...

well i now i have given mail instr in a file which of length 7832 and it work fine ..

Thank u all again!!!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Oct 29, 2007 1:18 am
Reply with quote

Hello,

Good to hear it is now working icon_smile.gif

If you post the jcl and control statements you used to run successfully, it may help someone with a similar question later.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
Search our Forums:

Back to Top