pegaga1979
29th October 2014, 13:44
Hi,

i would like to create a report that not print data before date 03/09/2014 00:00:00. in other words to have data printed only after date 03/09/2014 00:00:00.

i have put in script as below but result no data at all.
can anyone assist me?

declaration:

extern domain tcdate date.f
long year,month,day,hour,minute,sec


before.program:
utc.to.date (utc.num(),year,month,day,hour,minute,sec)

date.f = date.to.utc (2014,09,03,0,0,0)

detail.1:
before.layout:

if hcasc905.rcdt <= date.f then
lattr.print = false else
lattr.print = true
endif

bhushanchanda
29th October 2014, 14:12
Hi,

The code is correct. Please check if you have added hcasc905.rcdt in Report Input fields or is declared in report script.

Put the report in debug mode and check the value of hcasc905.rcdt and also see if its going to lattr.print = false.

Make sure you either add the field in report input fields or declare in report script but not both.

One more thing, check if the domain of hcasc905.rcdt is same as of date.f i.e. in UTC format.

pegaga1979
29th October 2014, 15:06
Hi Bhushan,

yes you are correct. i missed the report input fields.
now it printed as required.
thank you very much :)