View previous topic :: View next topic
|
Author |
Message |
sandhyaimmadi
New User
Joined: 18 Aug 2008 Posts: 50 Location: Bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
sandhyaimmadi
New User
Joined: 18 Aug 2008 Posts: 50 Location: Bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
sandhyaimmadi
New User
Joined: 18 Aug 2008 Posts: 50 Location: Bangalore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
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 |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
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 |
|
|
|