Problem sending Email using IEBGENER

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
padair
Member
Posts: 11
Joined: Wed May 13, 2009 1:02 pm

Problem sending Email using IEBGENER

Post by padair » Mon Jun 15, 2009 7:29 pm

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.

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Mon Jun 15, 2009 7:54 pm

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.

padair
Member
Posts: 11
Joined: Wed May 13, 2009 1:02 pm

Post by padair » Mon Jun 15, 2009 8:09 pm

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.
Sorry I dont understand,

I have my SYSUT set to,
//SYSUT2 DD SYSOUT=(M,SMTP)

what do you wnat me to change it to..?

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Mon Jun 15, 2009 8:15 pm

padair,
IEB351I I/O ERROR ,AP9PK1EM,STEP01 ,7844,D, ,READ ,WRNG.LEN.RECORD,000,D, ,READ ,WRNG.LEN.RECORD,000001CB000000,BSAM
how many times is the word "READ" in the error message?
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.

padair
Member
Posts: 11
Joined: Wed May 13, 2009 1:02 pm

Post by padair » Tue Jun 16, 2009 5:18 pm

dbzTHEdinosauer wrote:padair,
IEB351I I/O ERROR ,AP9PK1EM,STEP01 ,7844,D, ,READ ,WRNG.LEN.RECORD,000,D, ,READ ,WRNG.LEN.RECORD,000001CB000000,BSAM
how many times is the word "READ" in the error message?
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.
There are two reads.

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.

MrSpock
Active Member
Posts: 273
Joined: Wed Jun 27, 2007 5:37 pm

Post by MrSpock » Tue Jun 16, 2009 7:28 pm

It would appear that you are attempting to concatenate two or more datasets. For Fixed-Block (FB) datasets, in order to concatenate, they must have the same logical-record-length (LRECL).

padair
Member
Posts: 11
Joined: Wed May 13, 2009 1:02 pm

Post by padair » Wed Jun 17, 2009 6:37 pm

MrSpock, and everyone else..

Thank you for your help. It worked perfectly. The file with the address information was 60 and my attachment was 151.

Thanks again.
Padair.

McaVishalGupta
Member
Posts: 12
Joined: Thu Dec 04, 2008 12:03 pm
Location: MUMBAI

Post by McaVishalGupta » Thu Jun 18, 2009 10:01 am

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

McaVishalGupta
Member
Posts: 12
Joined: Thu Dec 04, 2008 12:03 pm
Location: MUMBAI

Post by McaVishalGupta » Thu Jun 18, 2009 10:43 am

there was one mistake in above post--
actually mail is NOT getting sending


Please suggest..
It would be a great help from ur side.

academyindia4

Topic deleted by Admin

Post by academyindia4 » Thu Jan 21, 2016 10:55 am

<< Content deleted By Admin >>

academyindia4

Topic deleted by Admin

Post by academyindia4 » Wed Feb 03, 2016 12:49 am

<< Content deleted By Admin >>

Post Reply

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



Other References
Mainframe Tools and others