End dates?

For questions and discussion related to reading in and working with data.
timduy
Posts: 50
Joined: Sun Jan 15, 2012 12:24 am

End dates?

Unread post by timduy »

Is there a command that returns the end date of a series - by which I mean the date at which the data of a series ends? I think there must be but I am not seeing it.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: End dates?

Unread post by TomDoan »

You want INQUIRE. For instance

INQUIRE(SERIES=MYSERIES) mystart myend

will give you MYEND as the last non-NA entry.
timduy
Posts: 50
Joined: Sun Jan 15, 2012 12:24 am

Re: End dates?

Unread post by timduy »

Thank you. My prior workaround:

LINREG(NOPRINT) HOUST1F * *
#CONSTANT

DISPLAY(STORE=LASTVALUE) %datelabel(%REGEND()) " values:" $
"\\" $
"\\1 unit =" ###.# HOUST1F(%REGEND()) $
"\\2-4 units =" ###.# HOUST2F(%REGEND()) $
"\\5 or more units =" ###.# HOUST5F(%REGEND())
Post Reply