Trouble with Parameter fields

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
chibbert
Posts: 9
Joined: Tue Oct 10, 2017 12:44 pm

Trouble with Parameter fields

Post by chibbert » Fri Feb 27, 2009 12:12 pm

I have a query in an AS400 database which I need to only select data between dates.____Our system uses the century form of dates (January 1, 2009 = 1090101)__If I write the query using invoice date is "in the range" 1090101 and 1090201 - the query works fine__But if I make a parameter field BEGIN and another that is END__then change the filter to invoice date is >= 1090101 and invoice date is <=1090201 it will not accept the date when it calls for the parameter entry. It responds with an asterisk.____I am technically asking for the exact same data either way but one doesn^t work. Is there a work-around on this or am I overlooking something.____Thanks__Chris

Chris_Hibbert_(Guest)
Posts: 10
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Trouble with Parameter fields

Post by Chris_Hibbert_(Guest) » Mon Mar 02, 2009 11:18 am

It is in the format CYYMMDD (I think this is the default or only method in AS400)____C=Century__YY=2 digit year__MM=2 digit month of year__DD=2 digit day of month______Today^s date 3/2/2009 is displayed as 1090302____Thanks for your help.

Chris_Hibbert_(Guest)
Posts: 10
Joined: Tue Oct 10, 2017 12:44 pm

==> RE: Trouble with Parameter fields

Post by Chris_Hibbert_(Guest) » Mon Mar 02, 2009 11:18 am

Sorry Kathleen - after re-reading you are asking for data-type____It is numeric____Thanks for your continued help.

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: Trouble with Parameter fields

Post by kfleming » Mon Mar 02, 2009 12:14 pm

What data type is your invoice date field?____Kathleen__R&R Support

Chris_(Guest)
Posts: 18
Joined: Tue Oct 10, 2017 12:44 pm

====> RE: Trouble with Parameter fields

Post by Chris_(Guest) » Tue Mar 03, 2009 10:05 am

Kathleen - that solved it. I had the BEGDATE set up as 7 but only had the ENDDATE set up with 1____Sorry for the trouble but thanks so much for the answer!____Chris

kfleming
Posts: 5795
Joined: Tue Oct 10, 2017 12:44 pm

===> RE: Trouble with Parameter fields

Post by kfleming » Tue Mar 03, 2009 11:21 am

And your parameter field is numeric with a format of 7 integers no decimals?____Kathleen__R&R Support

Post Reply