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 Usergroups 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: 2429
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: 2429
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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Easytrieve report shalem CA Products 4 Sun Feb 26, 2017 9:08 am
No new posts setting new limit Key values for inde... srilata83 DB2 1 Fri Feb 10, 2017 9:24 pm
No new posts Limit CICS CPU resource vasanthz CICS 0 Tue Jan 31, 2017 7:09 am


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