Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Final column position(135) exceeds line limit(132) in report

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Final column position(135) exceeds line limit(132) in report
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: 2441
Location: Netherlands, Amstelveen

PostPosted: Wed Aug 18, 2010 12:21 pm    Post subject:
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    Post subject:
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    Post subject:
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: 2441
Location: Netherlands, Amstelveen

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

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

Site Director


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

PostPosted: Wed Aug 18, 2010 7:40 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm
This topic is locked: you cannot edit posts or make replies. Limit access to certain RACF group cvnlynn CLIST & REXX 5 Wed Aug 23, 2017 2:28 am
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts Select numeric portion from CHAR data... balaji81_k DB2 6 Sat Aug 19, 2017 1:51 am

Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us