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
 

 

SYSUT2 - CONFLICTING DCB PARAMETERS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SYSUT2 - CONFLICTING DCB PARAMETERS
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 User


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

PostPosted: Thu May 19, 2016 10:20 am    Post subject:
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    Post subject:
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: 7913
Location: Bellevue, IA

PostPosted: Thu May 19, 2016 1:09 pm    Post subject:
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    Post subject:
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: 1715
Location: UK

PostPosted: Thu May 19, 2016 6:50 pm    Post subject:
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: 7913
Location: Bellevue, IA

PostPosted: Thu May 19, 2016 8:08 pm    Post subject:
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    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 CICS NEW SIT PARAMETERS CICS BEHAVIOR... Kyle Carroll CICS 0 Fri Nov 04, 2016 11:55 pm
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts Multiple parameters Csongor All Other Mainframe Topics 16 Thu Jun 09, 2016 7:54 pm
No new posts Number of parameters in Linkage kregen COBOL Programming 4 Wed Jan 27, 2016 5:13 pm
No new posts Batch CICS/DB2 Program Parameters Roy Ware CICS 2 Wed Jun 03, 2015 10:33 pm


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