Re: Separate shifts within date time variable

Posted by Art Kendall on
URL: http://spssx-discussion.165.s1.nabble.com/Separate-shifts-within-date-time-variable-tp5740995p5741000.html

the reason testtime is missing is NOT because the machine is unable to follow your instructions. You know that test time is missing because ordertime was missing.
 I suggest you replace
compute testtime = $sysmis.

with
if missing(time.hms) testtime =-1.
missing values testtime (-1).
value labels testtime -1 'ordertime was missing'.

Art Kendall
Social Research Consultants