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

How to know the lines printed in cobol report writer


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

New User


Joined: 18 Aug 2008
Posts: 50
Location: Bangalore

PostPosted: Fri Dec 02, 2011 9:44 am
Reply with quote

Hi,


How to know the lines printed in a page in cobol report writer.
If the lines printed is 59 I want to perform some logic
Please suggest


Thanks,
Sandhya
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: Fri Dec 02, 2011 10:21 am
Reply with quote

Hello,

From the very little provided, Suggest you recnsider. Especially if one page it might be 59 and another 58, etc.

What else can be used to identify there is logic to be done?

I'm not really sure if you mean the actual 59th line or if there are 59 or more lines on a given page.

Suggest you post some sample report info and what you want done with the different sample pages.

If you write the report to a dataset is what you want to work with always in the same place?
Back to top
View user's profile Send private message
sandhyaimmadi

New User


Joined: 18 Aug 2008
Posts: 50
Location: Bangalore

PostPosted: Fri Dec 02, 2011 10:34 am
Reply with quote

My program has a page limit of 60
Evry group will be written in a seperate page
Suppose if the group data is exceeding more than 60 lines, in the next page instead of current group name heading, it is writing the new group name which is wrong.So I want to check the line count whenever there is a group name change


Thanks,
Sandhya
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: Fri Dec 02, 2011 10:47 am
Reply with quote

Hello,

If you cannot find a way to control the heading in the report difinition, maybe it is time to replace the report writer for "real" code that you can better control?

Why would a continuation of a group cause a new group name to be generated?
Back to top
View user's profile Send private message
sandhyaimmadi

New User


Joined: 18 Aug 2008
Posts: 50
Location: Bangalore

PostPosted: Fri Dec 02, 2011 1:28 pm
Reply with quote

LINE-COUNTER will tell the no of lines written.

Is there any way to know whether footer has been written or not in the program.
I want to set a flag if footer has written.

Please help me out

Thanks,
Sandhya
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Dec 02, 2011 2:33 pm
Reply with quote

If it is you that has written the program, then it seems that you have omitted a lot of logic from this program
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Dec 02, 2011 5:06 pm
Reply with quote

Do you just want to allow for multiple pages for a group? If so, check the manual.

If you try to add stuff in yourself to do this, you'll end up with a mess which is unlikely to work. Either use the Cobol Report Writer correctly or write a Cobol program.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Dec 02, 2011 6:49 pm
Reply with quote

It has been quite a few years since I wrote any COBOL. ISTR, though, that when I was starting out in this field (and dinosaurs still walked the earth...), I was told, "Forget about Report Writer; no one who expects to be taken seriously uses it".
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Fri Dec 02, 2011 7:10 pm
Reply with quote

I agree - write real code.

After people use your fantastic report, they'll want more mods to it, and some will be too sophisticated for report writer.
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top