View previous topic :: View next topic
|
Author |
Message |
sriramvempaty
New User
Joined: 02 Aug 2007 Posts: 18 Location: india
|
|
|
|
Hi all,
My requirement is to write some content in to a report in the second page. First page should be left blank.
I know i can use WRITE REPORT-LINE AFTER PAGE to write content to second page. But my WRITE command shouldn't contain AFTER PAGE/ADVANCING.
How can i do this?
Thanks. |
|
Back to top |
|
|
Vasukip Currently Banned New User
Joined: 17 Jun 2008 Posts: 48 Location: Chennai
|
|
|
|
Hi,
For this you can define one blank Detail Line as BLANK_HEADER.
WRITE OUTREC FROM BLANK-HEADER .
Anthen you can use AFTER advancing pointer for DATA-DETAIL-LINE. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Carriage control allows an RECFM=FBA or RECFM=VBA file to be used by the program to skip pages. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
But my WRITE command shouldn't contain AFTER PAGE/ADVANCING. |
Why not?
Defining top-of-page in "special names" and then using this name in the write is a common way to position the paper at the top of a new page - without specifying "PAGE".
Is there something that requires you to fill a page with blank lines, rather than directly advancing to the top of the next page? |
|
Back to top |
|
|
sriramvempaty
New User
Joined: 02 Aug 2007 Posts: 18 Location: india
|
|
|
|
Hi Dick,
The problem here is we have a module which takes care of writing in to /reading from files.
To that module we can only pass data. not other than that.
Now, my requirement is to generate a report similar to
top of page 1
*********HEADER*********page:1
Axxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Bxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
end of page1
top of page2
page:2
Cxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
yyyyyyyyyyyyyyyyy
zzzzzzzzzzzzzzzzzzzz
end of page 2
*********HEADER*********page:1
Exxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Fxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Where A,B,C,D's belongs to logical group1
EF belong to logical group2.
A group can have 'n' number of rows(no limit for n). Header should appear only once for each group (next group should start from next page starting).
I've taken care of everything except writing in to next page when a new group starts.
How can we achieve this with out using AFTER PAGE?
Thanks in advance. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
The problem here is we have a module which takes care of writing in to /reading from files. |
I'd suggest you talk with the people who support this module. If it was intended to support report creation, it should support getting to the top of a page - one way or another.
Personally, i'd think there was a difference between reading/writing "records" in a file versus writing a report. . .
Quote: |
How can we achieve this with out using AFTER PAGE? |
Count lines and write the proper number of blank "records" to position the report at the "top" of the next page. You might also try to embed carriage control characters to force "paper motion", but your generic read/write module may strip them off. . . |
|
Back to top |
|
|
|