View previous topic :: View next topic |
Author |
Message |
akrv Beginner
Joined: 16 Sep 2006 Posts: 2 Topics: 1
|
Posted: Sat Sep 16, 2006 10:18 pm Post subject: ICEGENER AND SENDING ATTACHMENT AS TEXT |
|
|
Hi All,
I am trying to send dataset as text attachment to a mail address using icegener. The input dataset is of lrecl 246 bytes. The mail in the attachment has only 204 bytes. its getting truncated... any idea on how it can be resolved.....
Thanks
akrv |
|
Back to top |
|
 |
programmer1 Beginner
Joined: 18 Feb 2004 Posts: 138 Topics: 14
|
Posted: Sun Sep 17, 2006 3:11 am Post subject: |
|
|
I hope you didn't pre-allocate the dataset defined in SYSUT2 as 204 bytes. _________________ Regards,
Programmer |
|
Back to top |
|
 |
shekar123 Advanced
Joined: 22 Jul 2005 Posts: 528 Topics: 90 Location: Bangalore India
|
Posted: Sun Sep 17, 2006 12:59 pm Post subject: |
|
|
akrv,
As programmer1 suggested you might be missing proper DCB parameters information.Change the LRECL to 204 and run the job.
I have done below way and i would like to know how you have done using ICEGENER .Can you share with me the info:
Code: |
//**********************************************************************
//* COPY THE LATEST GDG SHEKAR.TEST.GDG(0) DATASET TO
//* SHEKAR.REPORT.TXT
//**********************************************************************
//STEP0100 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=SHEKAR.TEST.GDG(0),DISP=SHR
//SYSUT2 DD DSN=SHEKAR.REPORT.TXT,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,
// SPACE=(TRK,(1,1),RLSE),
// DCB=(LRECL=80,RECFM=FB,BLKSIZE=800)
//SYSIN DD DUMMY
//**********************************************************************
//* SEND THE DATASET 'SHEKAR.REPORT.TXT' TO
//* SHEKAR'S MAIL ID BY TSO TRANSMIT
//**********************************************************************
//STEP0200 EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSTSIN DD DSN=SHEKAR.TEST.CARDS(SFORMAIL),DISP=SHR
SHEKAR.TEST.CARDS(SFORMAIL)
TRANSMIT NODENAME/USERID SEQ LOG DATASET('SHEKAR.REPORT.TXT')
NODENAME and USERID SHOULD BE CORRECT.
|
_________________ Shekar
Grow Technically |
|
Back to top |
|
 |
akrv Beginner
Joined: 16 Sep 2006 Posts: 2 Topics: 1
|
Posted: Sun Sep 17, 2006 1:24 pm Post subject: |
|
|
hi programmer,
Sysut2's dcb as follows
//SYSUT2 DD SYSOUT=(,),OUTPUT=(*.EMAIL),
// DCB=(RECFM=FB,LRECL=246,BLKSIZE=24600)
But when the text file is opened only 204 bytes are seen. |
|
Back to top |
|
 |
Frank Yaeger Sort Forum Moderator

Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Sun Sep 17, 2006 6:45 pm Post subject: |
|
|
Add the following DD statement to the ICEGENER step to get diagnostic messages:
Code: |
//SORTDIAG DD DUMMY
|
Then rerun the job and show all of the //SYSPRINT messages here. _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|
Back to top |
|
 |
|
|