﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
79	an error in SubSer and DatCh	imendez	danirus	"This code:

////////////////////////////////////////////////////////////////////////////////////////
Serie sr = CalInd(WD(7), Diario);
Date f = First(sr);
Date l = Last(sr);
Serie srFec = DatCh(sr, WD(6), FirstS);
Serie srSub = SubSer(srFec, f, l);
////////////////////////////////////////////////////////////////////////////////////////

apparently works rigth, but when making a table you can see that srSub hasn't no 
data.

I think it's a problem with SubSer when making it from TheBegin (but, curiously, 
not when making it until The End):

////////////////////////////////////////////////////////////////////////////////////////
Serie srSubBeg = SubSer(CalInd(WD(7), Diario), TheBegin, y2004);
Serie srSubEnd = SubSer(CalInd(WD(7), Diario), y2004, TheEnd);
////////////////////////////////////////////////////////////////////////////////////////

Now, ""srSubEnd"" is rigth, but ""srSubBeg"" hasn't got any data.

This problem merges from another error in DatCh:

/////////////////////////////////////////////////////////////////////////////////////////////
Serie sr = SubSer(Trend(y2004m07d01, Diario), y2004m07d01, y2004m07d31);
Serie srFec = DatCh(sr, WD(6), FirstS);
/////////////////////////////////////////////////////////////////////////////////////////////

""srFec"" has a wrong data (FirstS(sr)) at y2004m06d26, that is Succ(y2004m07d01, 
WD(6), -1)


Regards"	defect	closed	normal		TimeSetAlgebra	head	normal	fixed		
