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
 

 

How to know the lines printed in cobol report writer

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How to know the lines printed in cobol report writer
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

Site Director


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

PostPosted: Fri Dec 02, 2011 10:21 am    Post subject:
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    Post subject: Reply to: How to know the lines printed in cobol report writ
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

Site Director


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

PostPosted: Fri Dec 02, 2011 10:47 am    Post subject:
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    Post subject: Reply to: How to know the lines printed in cobol report writ
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: 8593
Location: Back in jolly old England

PostPosted: Fri Dec 02, 2011 2:33 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7236

PostPosted: Fri Dec 02, 2011 5:06 pm    Post subject: Reply to: How to know the lines printed in cobol report writ
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: 1738
Location: Bloomington, IL

PostPosted: Fri Dec 02, 2011 6:49 pm    Post subject:
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

Active Member


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

PostPosted: Fri Dec 02, 2011 7:10 pm    Post subject:
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    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 syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am


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