MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Report Line Overflow Error in Easytrieve

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
deepeshk79
Beginner


Joined: 20 Jun 2003
Posts: 112
Topics: 48
Location: Bangalore

PostPosted: Thu Feb 24, 2005 9:43 am    Post subject: Report Line Overflow Error in Easytrieve Reply with quote

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
View user's profile Send private message AIM Address
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Feb 24, 2005 9:54 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
deepeshk79
Beginner


Joined: 20 Jun 2003
Posts: 112
Topics: 48
Location: Bangalore

PostPosted: Fri Feb 25, 2005 6:38 am    Post subject: Reply with quote

Hi Kolusu,

Thanks for the reply. I added the N (overflow) to the report size to fix it. Smile

Thanks,
Deepesh
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group