View previous topic :: View next topic
|
Author |
Message |
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
I need to know how to break down the page and how to move to the next page when specified number of line is fullfilled in Report writing. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
I think, this will change shop to shop, you might be having some existing program to look for this.
At my shop, we use AFP, where CC ='1' means next page. |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi Anuj....
Can i able to do it in Cobol |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
WRITE PRINT-LINE AFTER PAGE. |
|
Back to top |
|
|
priyamnavada
New User
Joined: 24 Dec 2005 Posts: 52 Location: hyderabad
|
|
|
|
step:1: write the headers for the report (ex: coulmn names)
step:2: write the detail lines of the report i.e., data row for each column you are writing to the report.
step:3: count each number of data row you are writing to the report
step:4: keep the check for number of lines written to max allowed lines in a page. suppose for ex if maximum allowed number lines are 55, check whether the written number of lines has exceeded 55
step:5: if it has exceeded the maximum allowed(55), then perfrom the paragragh for writing the headers, and conitnue with writing data rows(continue from step:1)
step:6: if it has not exceeded, contnue writing data rows, and keep checking the number of rows written against max allowed. |
|
Back to top |
|
|
Thyaga
New User
Joined: 19 Mar 2008 Posts: 2 Location: Chennai
|
|
|
|
Craq
Is it possible to use tha AFTER PAGE IN display statement |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
NO! |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Thyaga wrote: |
Craq
Is it possible to use tha AFTER PAGE IN display statement |
DISPLAY is an very wasteful way of producing reports. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
DISPLAY is an very wasteful way of producing reports. |
Not only wasteful, but DISPLAY is not permitted in production programs on many (most?) systems.
If you are not familiar with creating reports with "page breaks", i'd suggest you write some simple test program that reads its' own source code and causes a page break every 50 lines as well as a new page for each division (this would be a small program, so you might have to add some comment lines to get more than 50 lines in one division to cause a page overflow).
Once you have that working, use the line-count/page heading logic in your "real" program. If you have problems/questions, post what you have done and your queston/problem and someone here will be able to help. |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Hi Priya and Dick....
I used ur logic its working nicely thank you for the co-operation.
i have to do daily, weekly and monthly reports related to my project, according to the parameters set in JCL appropriate para is going to execute, everything i did but, was having confusion in page breaking and going to new page.
Know i got to know thank you one and all. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
You're welcome - thank you for telling us that it is working
d |
|
Back to top |
|
|
|