simple date macro not working

Moderators: statman, Analyst Techy, andris, Fierce, GerineL, Smash

0101
Posts: 52
Joined: Fri Mar 04, 2011 9:42 pm

simple date macro not working

Postby 0101 » Wed May 07, 2014 2:41 pm

I'm trying to use a simple date macro, but when I use the macro in a date function (date.mdy(!EndDate)) I get an error about the the number of arguments supplied.

Code: Select all

define !EndDate ( ) date.mdy(09,01,2013) !enddefine.

compute FlagCase=0.
if missing(DOB) and (VisitDate lt date.mdy(!EndDate)) FlagCase=1.
The error is:

The number of arguments required for the specified subfunction does not match the number of arguments supplied. Checked for a comma used as a decimal delimiter.

Any ideas?

Who is online

Users browsing this forum: No registered users and 2 guests

cron