Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
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: 2445
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: 2445
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 Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts Copying part of the report using SARBCH Aedulla CA Products 1 Tue Oct 24, 2017 9:24 am
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us