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

SYSUT2 - CONFLICTING DCB PARAMETERS


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

New User


Joined: 18 May 2016
Posts: 3
Location: India

PostPosted: Thu May 19, 2016 9:43 am
Reply with quote

Hi,

I am trying to test a JCL which is suppose to send an attachement through email. But job is getting abended with RC=12 (IEB311I CONFLICTING DCB PARAMETERS )

Is there any limit for record length of the input file? SYSUT2 seems to be failing.

Code:
//MAILPROC EXEC PGM=IEBGENER                               
//SYSABEND DD   SYSOUT=*                                   
//SYSTOTAL DD   SYSOUT=*                                   
//SYSLIST  DD   SYSOUT=*                                   
//SYSPRINT DD   SYSOUT=*                                   
//SYSUT2   DD   SYSOUT=(9,SMTP)
 //SYSIN    DD   DUMMY                                       
//*                                                         
//SYSUT1 DD *                                               
HELO MAINFRAME.********                                     
MAIL FROM: <abc@abc.com>                 
RCPT TO: <cia@cia.com>                 
DATA                                                       
FROM:     abc@abc.com                     
TO:       cia@cia.com                   
SUBJECT:  TEST ATTACHMENT                                   
MIME-VERSION: 1.0                                           
CONTENT-TYPE: TEXT/PLAIN                                   
CONTENT-DISPOSITION: ATTACHMENT; FILENAME=FILE.TXT         
//       DD DSN=datasetname,DISP=SHR       


It would be if cold get some help over here icon_smile.gif
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Thu May 19, 2016 10:20 am
Reply with quote

What are the DCB attributes of datasetname (the data set specified in a concatenation with the SYSUT1 DD statement?

Does the JCL work without the concatenation?
Back to top
View user's profile Send private message
raulravi7

New User


Joined: 18 May 2016
Posts: 3
Location: India

PostPosted: Thu May 19, 2016 10:24 am
Reply with quote

Dear Steve,

I have tried two different datasets
1) datasetname FB 445 ---> This is failing
2) datasetname1 FB 160 ----> This is working fine

What do you mean my without concatenation?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Thu May 19, 2016 1:09 pm
Reply with quote

For the JCL you show, you CANNOT use DD * unless your data set is FB with LRECL 80. Put the SMTP commands in a dataset with the same LRECL as your datasetname and change DD * to DD DSN=smtpdatasetname.
Back to top
View user's profile Send private message
raulravi7

New User


Joined: 18 May 2016
Posts: 3
Location: India

PostPosted: Thu May 19, 2016 1:49 pm
Reply with quote

Thanks a ton Rob.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Thu May 19, 2016 6:50 pm
Reply with quote

Quote:
Thanks a ton Rob.

No one called 'Rob' in this thread. Show respect and use the name posted - Robert in this case.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Thu May 19, 2016 8:08 pm
Reply with quote

Quote:
Is there any limit for record length of the input file?
The JCL Reference manual says
Quote:
Restrictions when coding LRECL: If you code LRECL with the * parameter, you cannot submit a data set to JES3 with a record length greater than 80 bytes.

You cannot use the TSO/E SUBMIT command to submit a data set to JES2 or JES3 with a record length greater than 80 bytes.
although if you use IEBGENER to copy JCL to the internal reader, that JCL may use an LRECL greater than 80 (just no DD *). The actual limit will vary by site since (for JES3 at least) it is based on the spool buffer block size.

The other limit is that SMTP does not support lines longer than 998 bytes (which is 1000 bytes when the CR/LF is added to the end of the ASCII line). This is documented in the appropriate RFC (2822).
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 Starting a PROC with parameters from ... CLIST & REXX 6
No new posts Passing Parameters to Programs Invoke... PL/I & Assembler 5
No new posts Injecting HTTPHEADER parameters in th... PL/I & Assembler 0
No new posts How to prevent two schid’s from con... CA Products 1
No new posts passing symbolic parameters through d... JCL & VSAM 3
Search our Forums:

Back to Top