‎2007 Mar 10 6:03 AM
write: / 'rajesh'.
new-page.
write: / 'rajesh***'.
top-of-page.
write: / '******rajesh*****'.
can u tell me which of the form it will trigger
can u give me the seqence clearly step by step plz
‎2007 Mar 10 6:08 AM
SORY I WAS NOT CLEAR IN MY PREV ANSWER.
FIRST WRITE STATEMENT TRIGGER TOP-OF-PAGE SO IT IS PRINTING TOP-OF-PAGE THEN IT WILL WRITE ******rajesh***** THEN IT WILL AGAIN COME BACK TO THE FIRST WRITE STATEMENT AND WRITE 'rajesh***. AGAIN NEW-PAGE TRIGGER TOP-OF-PAGE AND WRITE ******rajesh***** AND THEN IT WILL WRITE AFTER NEW-PAGE. 'rajesh***
REGARDS
SHIBA DUTTA
‎2007 Mar 10 6:05 AM
'******rajesh*****'.
'rajesh'.
'******rajesh*****'.
'rajesh***'.
REGARDS
SHIBA DUTTA
‎2007 Mar 10 6:08 AM
******rajesh*******
rajesh
******rajesh*******
rajesh*******
check it out.
‎2007 Mar 10 6:08 AM
SORY I WAS NOT CLEAR IN MY PREV ANSWER.
FIRST WRITE STATEMENT TRIGGER TOP-OF-PAGE SO IT IS PRINTING TOP-OF-PAGE THEN IT WILL WRITE ******rajesh***** THEN IT WILL AGAIN COME BACK TO THE FIRST WRITE STATEMENT AND WRITE 'rajesh***. AGAIN NEW-PAGE TRIGGER TOP-OF-PAGE AND WRITE ******rajesh***** AND THEN IT WILL WRITE AFTER NEW-PAGE. 'rajesh***
REGARDS
SHIBA DUTTA
‎2007 Mar 10 6:09 AM
Hi,
1. top-of-page.
write: / '******rajesh*****'.
2. write: / 'rajesh'.
3.new-page.
write: / 'rajesh***'.
aRs
‎2007 Mar 10 6:20 AM
The ans given by Shiba is write...
1. it will trigger Top-of-page event
2. it will display ur write: / 'rajesh'. since this statement is present for start-of-selection event
3. since u have given the event as New-page so again the top-of-page event is triggered & then ur write: / 'rajesh***'. statement is executed & displayed in the list.
if this has helped then pls give the points to this ans..
‎2007 Mar 10 7:21 AM
hi
first the top of page evnt gets triggered irrespective of the position it has been declaredtop-of-page.
write: / '******rajesh*****'.
and the statemment rajesh write: / 'rajesh'.
and finally the new page evnt gets triggered and the statemnt is written to the list
new-page.
write: / 'rajesh***'.
regards,
kiran kumar k
‎2007 Mar 10 7:37 AM
Hi rajesh....
When ever the first write statement
(WRITE: / 'rajesh'.)
is encountered execution of that write will be suspended and the control goes to top-of-page event and the write statement in that event
( WRITE: / '******rajesh*****'.)
will be executed, after that the write statement
(WRITE: / 'rajesh'.) will be executed.
now new-line is executed so it will cause a page break.
the next output statements will be printed in the next page. but when the next write statement
(WRITE: / 'rajesh***'.)
is encountered, the control goes to the top-of-page event because it is the first output statement to be executed in that page and the top-of-page will be executed after that the statement:
WRITE: / 'rajesh***'.
will be executed.
So the output consists of 2 pages sa below:
Page1:
******rajesh*****
rajesh
page2:
******rajesh*****
rajesh***
Suresh......
‎2007 Mar 10 2:26 PM
‎2007 Mar 10 7:51 AM
write: / 'rajesh'.
new-page.
write: / 'rajesh***'.
top-of-page.
write: / '*******rajesh******'.For this ..you need to understand new-page concept here thats the main key for 4 write statements in the o/p.
during the compilation by default before the first write statement is triggered
TOP-OF-PAGE is triggered .
1. '*******rajesh******'.
2. since the default line count is 33-36 in the report statement start-of-selection is
triggered and write statement is triggered which is
'rajesh'
3. Now u are forcing the new-page statement so the system now treats this command as to be print in the new page
so for this again u have top-of-page for the new page this is important
<b>so again top-of-page is triggered before the write of of new -page .</b>
once again top-of-page is triggered .
'*******rajesh******'.
4 . followed by
'rajesh***'.
new page write statement .Regards,
vijay.
You have total 4 o/ps .
*******rajesh******
rajesh
*******rajesh****** " ---> repeated for new page .
rajesh***