View previous topic :: View next topic |
Author |
Message |
deepeshk79 Beginner
Joined: 20 Jun 2003 Posts: 112 Topics: 48 Location: Bangalore
|
Posted: Thu Feb 24, 2005 9:43 am Post subject: Report Line Overflow Error in Easytrieve |
|
|
Hi,
Iam trying to create an easytrieve report with LRECL as 184.
Iam moving input file fields to working storage fileds and iam printing the report. The report is declared as a printer file
Code: |
FILE ABC763FS PRINTER FB(200 0)
|
and my report structure is
Code: |
REPORT ABC763FS-REP PRINTER ABC763FS LINESIZE 185
LINE 01 W-HDR-CCYYMMDD +
W-FILLER1 +
W-HHTYTY +
W-FILLER2 +
W-GGG-P1 +
W-GGG-P2 +
W-FILLER3 +
W-TTTT-CODE +
W-FILLER4 +
W-TYTY +
W-FILLER5 +
W-ERTYUI +
......................ETC..............
|
When i try compiling my easytrieve iam getting the following error..
Quote: |
415 *******B061 REPORT LINE OVERFLOWED BY - 193
|
Also these fields are declared as working storage with Heading as '** '.
Code: |
W-HDR-CCYYMMDD W 8 N HEADING ('** ')
W-FILLER1 W 1 A VALUE ',' HEADING ('** ')
W-HHTYTY W 4 N HEADING ('** ')
W-FILLER2 W 1 A VALUE ',' HEADING ('** ')
W-GGG-P1 W 5 A HEADING ('** ')
W-GGG-P2 W 18 N HEADING ('** ')
W-FILLER3 W 1 A VALUE ',' HEADING ('** ')
W-TTTT-CODE W 3 A HEADING ('** ')
W-FILLER4 W 1 A VALUE ',' HEADING ('** ')
|
Any idea why this error..??
Thanks,
Deepesh |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Feb 24, 2005 9:54 am Post subject: |
|
|
Deepesh
I guess your report fields span more than 200 bytes. There are couple of parameters to override the default report attributes.
try this
Code: |
REPORT ABC763FS-REP PRINTER ABC763FS LINESIZE 199 SPACE 1
|
here you defined your file as
Code: |
FILE ABC763FS PRINTER FB(200 0)
|
Always remember that linesize is 1 less than the value specified on the FILE parameter.
If this still gives you an overflow error by 'N' , then add the N to line size parameter and also to file statement i.e
Code: |
REPORT ABC763FS-REP PRINTER ABC763FS LINESIZE 199+N SPACE 1
|
Code: |
FILE ABC763FS PRINTER FB(200+N 0)
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
deepeshk79 Beginner
Joined: 20 Jun 2003 Posts: 112 Topics: 48 Location: Bangalore
|
Posted: Fri Feb 25, 2005 6:38 am Post subject: |
|
|
Hi Kolusu,
Thanks for the reply. I added the N (overflow) to the report size to fix it.
Thanks,
Deepesh |
|
Back to top |
|
 |
|
|