IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Final column position(135) exceeds line limit(132) in report


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
SayantaniKundu

New User


Joined: 24 Nov 2008
Posts: 6
Location: Kolkata

PostPosted: Wed Aug 18, 2010 11:05 am
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Aug 18, 2010 12:21 pm
Reply with quote

I guess this is about COBOL Report Writer.

Define the LINE LIMIT statement.

or

RECORD CONTAINS.
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Wed Aug 18, 2010 1:33 pm
Reply with quote

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
View user's profile Send private message
SayantaniKundu

New User


Joined: 24 Nov 2008
Posts: 6
Location: Kolkata

PostPosted: Wed Aug 18, 2010 2:25 pm
Reply with quote

Hi Peter,

LINE LIMIT statement works fine.

Thanks.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Aug 18, 2010 2:27 pm
Reply with quote

Good to hear.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 18, 2010 7:40 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
Search our Forums:

Back to Top