View previous topic :: View next topic |
Author |
Message |
Brian Beginner
Joined: 12 Aug 2003 Posts: 95 Topics: 6
|
Posted: Wed Apr 07, 2004 1:25 am Post subject: EZT - BEFORE-LINE |
|
|
Board,
I have been trying this out for sometime now. I want my ezt program to display / write some values to another file just before printing it to a report. This program is pretty complex and i dont want to disturb the otherwise peaceful execution of this program. I just introduced a BEFORE-LINE proc after the last LINE statement of the report with a S type variable and expect it to display the contents. But i dont see any output.
Code: |
REPORT -----------
LINE A B C
BEFORE-LINE. PROC
DEFINE S-A S 4 A
DEFINE S-B S 10 N
S-A = A
S-B = B
IF B > 40,00000
DISPLAY A
END-IF
END-PROC
|
any clues ?
cheers
Brian |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Wed Apr 07, 2004 5:34 am Post subject: |
|
|
brian,
Did you check the report file ? The display statement will be in the report file.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Brian Beginner
Joined: 12 Aug 2003 Posts: 95 Topics: 6
|
Posted: Wed Apr 07, 2004 7:20 am Post subject: |
|
|
Kolusu,
Thanks for your reply. Am looking into the report file only. I do not see any trace of the records.
Are there are REPORT options that inhibit the execution of BEFORE-LINE proc ? My report options are SUMMARY SUMCTL DTLCPY.
cheers
Brian |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12377 Topics: 75 Location: San Jose
|
Posted: Wed Apr 07, 2004 7:33 am Post subject: |
|
|
Brian,
Remove the comma in the IF clause and see if it works.
Code: |
IF B > 4000000
DISPLAY 'DISPLAY THE CONTENTS OF A:'
END-IF
|
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Brian Beginner
Joined: 12 Aug 2003 Posts: 95 Topics: 6
|
Posted: Wed Apr 07, 2004 7:53 am Post subject: |
|
|
Kolusu,
Just got the hint. The control was creating the problem. I replaced the BEFORE-LINE with a BEFORE-BREAK and the results were as beautiful as the Taj Mahal.
cheers
Brian |
|
Back to top |
|
 |
Brian Beginner
Joined: 12 Aug 2003 Posts: 95 Topics: 6
|
Posted: Wed Apr 07, 2004 10:55 pm Post subject: |
|
|
Ravi,
My report options are coded in such a way to inhibit(or say supress displays) the execution of BEFORE-LINE.
On deeper investigation i found that in my case a BEFORE-LINE and a BEFORE-BREAK perform the same operation and when i replaced the BEFORE-LINE with a BEFORE-BREAK i got the results that i expected.
cheers
Brian |
|
Back to top |
|
 |
|
|