Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regardin the code

Former Member
0 Likes
934

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
911

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

9 REPLIES 9
Read only

Former Member
0 Likes
911

'******rajesh*****'.

'rajesh'.

'******rajesh*****'.

'rajesh***'.

REGARDS

SHIBA DUTTA

Read only

SantoshKallem
Active Contributor
0 Likes
911

******rajesh*******

rajesh

******rajesh*******

rajesh*******

check it out.

Read only

Former Member
0 Likes
912

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

Read only

former_member194669
Active Contributor
0 Likes
911

Hi,

1. top-of-page.

write: / '******rajesh*****'.

2. write: / 'rajesh'.

3.new-page.

write: / 'rajesh***'.

aRs

Read only

Former Member
0 Likes
911

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..

Read only

Former Member
0 Likes
911

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

Read only

Former Member
0 Likes
911

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......

Read only

0 Likes
911

thanks a lot

Read only

Former Member
0 Likes
911
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***