View previous topic :: View next topic
|
Author |
Message |
raulravi7
New User
Joined: 18 May 2016 Posts: 3 Location: India
|
|
|
|
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 |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
raulravi7
New User
Joined: 18 May 2016 Posts: 3 Location: India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
raulravi7
New User
Joined: 18 May 2016 Posts: 3 Location: India
|
|
|
|
Thanks a ton Rob. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
No one called 'Rob' in this thread. Show respect and use the name posted - Robert in this case. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
|