View previous topic :: View next topic
|
Author |
Message |
SayantaniKundu
New User
Joined: 24 Nov 2008 Posts: 6 Location: Kolkata
|
|
|
|
I got a compilation error while compiling the following code snippet.
"Final column position(135) exceeds line limit(132)"
01 DET-B02-BIS TYPE IS DETAIL.
02 LINE PLUS 1.
03 COLUMN 01 PIC X(04) VALUE "CSI:".
03 COLUMN 06 PIC 9(02) SOURCE B02-CTR-NUMCSI.
03 COLUMN 09 PIC X(08) VALUE "NUMDOM: ".
03 COLUMN 17 PIC ZZZ9 SOURCE B02-CTR-NUMDOM.
03 COLUMN 22 PIC X(08) VALUE "# USOS: ".
03 COLUMN 30 PIC ZZZ9 SOURCE B02-CTR-DOMUSOS.
03 COLUMN 35 PIC X(07) VALUE "CALLE: ".
03 COLUMN 42 PIC X(36) SOURCE B02-CTE-CALLENUM.
03 COLUMN 79 PIC X(05) VALUE "COL: ".
03 COLUMN 84 PIC X(24) SOURCE B02-CTE-NOMCOL.
03 COLUMN 109 PIC X(07) VALUE "POBL.: ".
03 COLUMN 116 PIC X(20) SOURCE B02-CTE-NOMPOB.
I compiled with EX(INX(RW),PRTX(RW)) compiler option. Please suggest how to overcome this error. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
I guess this is about COBOL Report Writer.
Define the LINE LIMIT statement.
or
RECORD CONTAINS. |
|
Back to top |
|
|
Kjeld
Active User
Joined: 15 Dec 2009 Posts: 365 Location: Denmark
|
|
|
|
I am not that familiar with Cobol Report Writer, but it seems like your definitions takes up 135 bytes. The last item starts in position 116 and takes up 20 bytes, which is 135 bytes in all? |
|
Back to top |
|
|
SayantaniKundu
New User
Joined: 24 Nov 2008 Posts: 6 Location: Kolkata
|
|
|
|
Hi Peter,
LINE LIMIT statement works fine.
Thanks. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Good to hear. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Of course, if the printout is sent to a destination that only permits a maximum length of 132 the process will fail or there will be truncation. . . |
|
Back to top |
|
|
|