Page 1 of 1

@strdate for current sample

Posted: Thu Aug 29, 2019 1:19 pm
by maragloria
Hi there,

I understand that @strdate returns a string list corresponding to each element in workfile.
Is there a similar function available to obtain each element in the the current sample ?

Many thansk,

Mara

Re: @strdate for current sample

Posted: Thu Aug 29, 2019 1:42 pm
by EViews Matt
Hello,

@strdate creates an alpha series rather than a lone string. If you want a single string containing all the sample's dates, you can use @strdate to create date strings for all observations, then use stom() to extract only the date strings for the current sample into an svector, and finally use @wjoin to combine the elements of that svector into a single string.

Re: @strdate for current sample

Posted: Thu Aug 29, 2019 1:57 pm
by maragloria
Thanks for the prompt reply!