Problem sending Email using IEBGENER
Moderators: Frank Yaeger, DikDude, Moderator Group
Problem sending Email using IEBGENER
Hi there,
I am having a problem sending an email using IEBGENER. I am able to send the email if the file length is 120 but when I go over this, the job falls over with the following error.
1DATA SET UTILITY - GENERATE
-IEB352I WARNING: ONE OR MORE OF THE OUTPUT DCB PARMS COPIED FROM INPUT
IEB351I I/O ERROR ,AP9PK1EM,STEP01 ,7844,D, ,READ ,WRNG.LEN.RECORD,000,D, ,READ ,WRNG.LEN.RECORD,000001CB000000,BSAM
Does anyone know how to send a mail that is larger than 120, idealy I would like to send with a record length of 151. I dont know if this will help but the file that is 151 has a block size of 4832.
Any help is appreciated.
Padair.
I am having a problem sending an email using IEBGENER. I am able to send the email if the file length is 120 but when I go over this, the job falls over with the following error.
1DATA SET UTILITY - GENERATE
-IEB352I WARNING: ONE OR MORE OF THE OUTPUT DCB PARMS COPIED FROM INPUT
IEB351I I/O ERROR ,AP9PK1EM,STEP01 ,7844,D, ,READ ,WRNG.LEN.RECORD,000,D, ,READ ,WRNG.LEN.RECORD,000001CB000000,BSAM
Does anyone know how to send a mail that is larger than 120, idealy I would like to send with a record length of 151. I dont know if this will help but the file that is 151 has a block size of 4832.
Any help is appreciated.
Padair.
As far is I know, the length restriction for the SMTP protocol standard is 1024, so I don't think you're violating the standard.
Have you tried a copy, changing SYSUT2 to a dataset to just verify that all of your input files can meet the criteria for file concatenation? Do they all meet the criteria for file concatanation? The "WRNG.LEN.RECORD" message would make me believe that they don't.
Have you tried a copy, changing SYSUT2 to a dataset to just verify that all of your input files can meet the criteria for file concatenation? Do they all meet the criteria for file concatanation? The "WRNG.LEN.RECORD" message would make me believe that they don't.
Sorry I dont understand,MrSpock wrote:As far is I know, the length restriction for the SMTP protocol standard is 1024, so I don't think you're violating the standard.
Have you tried a copy, changing SYSUT2 to a dataset to just verify that all of your input files can meet the criteria for file concatenation? Do they all meet the criteria for file concatanation? The "WRNG.LEN.RECORD" message would make me believe that they don't.
I have my SYSUT set to,
//SYSUT2 DD SYSOUT=(M,SMTP)
what do you wnat me to change it to..?
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
padair,
MrSpock gave you a clue----something is wrong with your input .
He suggestioned changing your SYSUT2 to a dataset, so you could see if your output was correct-----this is called testing/debugging. This is a process one goes through before just releasing a process to production. You have no idea what would be sent, had you accidentally managed to have a problem free input.
how many times is the word "READ" in the error message?IEB351I I/O ERROR ,AP9PK1EM,STEP01 ,7844,D, ,READ ,WRNG.LEN.RECORD,000,D, ,READ ,WRNG.LEN.RECORD,000001CB000000,BSAM
MrSpock gave you a clue----something is wrong with your input .
He suggestioned changing your SYSUT2 to a dataset, so you could see if your output was correct-----this is called testing/debugging. This is a process one goes through before just releasing a process to production. You have no idea what would be sent, had you accidentally managed to have a problem free input.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
There are two reads.dbzTHEdinosauer wrote:padair,
how many times is the word "READ" in the error message?IEB351I I/O ERROR ,AP9PK1EM,STEP01 ,7844,D, ,READ ,WRNG.LEN.RECORD,000,D, ,READ ,WRNG.LEN.RECORD,000001CB000000,BSAM
MrSpock gave you a clue----something is wrong with your input .
He suggestioned changing your SYSUT2 to a dataset, so you could see if your output was correct-----this is called testing/debugging. This is a process one goes through before just releasing a process to production. You have no idea what would be sent, had you accidentally managed to have a problem free input.
I changed the SYSUT2 to a dataset and the job is giving the following error.
DATA SET UTILITY - GENERATE
IEB311I CONFLICTING DCB PARAMETERS
Sorry about asking the question but I am just learning JCL and I do not know very much.
-
- Member
- Posts: 12
- Joined: Thu Dec 04, 2008 12:03 pm
- Location: MUMBAI
Hi all,
I am facing other issue in sending Email using IEBGENER-
below mentioned JCL Gives me MAXCC=0, but mail is getting send.
Please suggest..
JCL-
//SENDMAIL JOB (@),'SENDMAIL',
// CLASS=0,MSGCLASS=R,NOTIFY=&SYSUID
//******************************************************
//JS001 EXEC UCC11RMS
//******************************************************
//JS002 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=XXXXXXX.TEST.FILE1
//SYSUT2 DD SYSOUT=(B,SMTP)
and the contents of XXXXXXX.TEST.FILE1-
helo MVSHOST
MAIL FROM:<abc@xyz.com>
RCPT To:<pqr@xyz.com>
DATA
SUBJECT:Test mail.
This is a test mail
In above file--
at the place of MVSHOST i have tried-
1. domain name from mycomputer
2. IP address of system
Please suggest wat should i write at place of MVSHOST..
or is there any other issue with my code..
Thanks
Vishal G
I am facing other issue in sending Email using IEBGENER-
below mentioned JCL Gives me MAXCC=0, but mail is getting send.
Please suggest..
JCL-
//SENDMAIL JOB (@),'SENDMAIL',
// CLASS=0,MSGCLASS=R,NOTIFY=&SYSUID
//******************************************************
//JS001 EXEC UCC11RMS
//******************************************************
//JS002 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DISP=SHR,DSN=XXXXXXX.TEST.FILE1
//SYSUT2 DD SYSOUT=(B,SMTP)
and the contents of XXXXXXX.TEST.FILE1-
helo MVSHOST
MAIL FROM:<abc@xyz.com>
RCPT To:<pqr@xyz.com>
DATA
SUBJECT:Test mail.
This is a test mail
In above file--
at the place of MVSHOST i have tried-
1. domain name from mycomputer
2. IP address of system
Please suggest wat should i write at place of MVSHOST..
or is there any other issue with my code..
Thanks
Vishal G
-
- Member
- Posts: 12
- Joined: Thu Dec 04, 2008 12:03 pm
- Location: MUMBAI
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page