condor_history -c 'formatTime('ifThenElse(JobStatus == 4, CompletionDate, EnteredCurrentStatus)', "%m") == "04"' The above probably failed to parse, because it has an extra pair of quotes. This will work: condor_history -c 'formatTime(ifThenElse(JobStatus =?= 4, CompletionDate, EnteredCurrentStatus), "%Y%m") >= "201104"' -Erik |