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
 

 

Mail attachments SYNCSORT COPY FEATURE CALLED - RC = 12

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Mail attachments SYNCSORT COPY FEATURE CALLED - RC = 12
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Sun Oct 28, 2007 5:19 pm    Post subject: Reply to: Mail attachments
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    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Sun Oct 28, 2007 5:39 pm    Post subject: Reply to: Mail attachments
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Sun Oct 28, 2007 5:45 pm    Post subject: Reply to: Mail attachments
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    Post subject:
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

Site Director


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

PostPosted: Mon Oct 29, 2007 1:18 am    Post subject:
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    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 copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts Copy load modules and alias vasanthz IBM Tools 5 Thu Apr 20, 2017 6:31 am
No new posts Mail via SMTP with an image? Mike 1304 JCL & VSAM 4 Thu Jan 26, 2017 2:01 pm
No new posts SYNCSORT SEQNUM and FI fields. nartcr SYNCSORT 7 Sat Jan 21, 2017 4:02 am
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm


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