Cresentmoon,
YOu are right that formats and informats for that matter are neither
character nore numeric. They are instructions to SAS stating how SAS should
reprecent the number help in start_date. And missing numbers are
represented as . if you look at data values for start_date.
if you would like a simple count of missing values of start_date there are
many ways such as a data step, proc means, proc freq, proc summary. YOur
gonna have to give us some more info. about what your doing here and/or want
to do. Preferably with some sample data and output for us to look at.
Help us help you.
Toby Dunn
From: ***@GMAIL.COM
Reply-To: ***@GMAIL.COM
To: SAS-***@LISTSERV.UGA.EDU
Subject: SAS DATE format - identifying blank dates
Date: Fri, 13 Jan 2006 11:44:04 -0800
MIME-Version: 1.0
Received: from bay0-mc7-f14.bay0.hotmail.com ([65.54.244.214]) by
imc2-s15.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 13 Jan 2006
11:46:27 -0800
Received: from mailgw.cc.uga.edu ([128.192.1.101]) by
bay0-mc7-f14.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 13
Jan 2006 11:46:21 -0800
Received: from listserv.cc.uga.edu (listserv.uga.edu [128.192.1.75])by
mailgw.cc.uga.edu (8.12.11/8.12.11) with ESMTP id k0DInkgx013783;Fri, 13 Jan
2006 14:45:18 -0500
Received: from LISTSERV.UGA.EDU by LISTSERV.UGA.EDU (LISTSERV-TCP/IP release
1.8d) with spool id 836057 for SAS-***@LISTSERV.UGA.EDU; Fri, 13 Jan
2006 14:45:09 -0500
Received: from alfredo.cc.uga.edu (alfredo.cc.uga.edu [128.192.1.77]) by
listserv.cc.uga.edu (8.12.11/8.12.11) with ESMTP id k0DJj8YQ013187
for <sas-***@listserv.uga.edu>; Fri, 13 Jan 2006 14:45:08 -0500
Received: from alfredo.cc.uga.edu (localhost.localdomain [127.0.0.1]) by
alfredo.cc.uga.edu (8.12.11/8.12.11) with ESMTP id k0DJj8qG015920 for
<sas-***@listserv.uga.edu>; Fri, 13 Jan 2006 14:45:08 -0500
Received: (from ***@localhost) by alfredo.cc.uga.edu
(8.12.11/8.12.11/Submit) id k0DJj8wo015915 for
sas-***@listserv.uga.edu; Fri, 13 Jan 2006 14:45:08 -0500
X-Message-Info: 9FGFoCED9ZMJEtArYsGHkCokJxcKtOT+iOL+BEbKrws=
X-Authentication-Warning: alfredo.cc.uga.edu: news set sender to
***@listserv.uga.edu using -f
X-Newsgroups: comp.soft-sys.sas
Lines: 18
X-Complaints-To: groups-***@google.com
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET
CLR 1.1.4322),gzip(gfe),gzip(gfe)
Complaints-To: groups-***@google.com
Injection-Info: f14g2000cwb.googlegroups.com; posting-host=205.207.78.4;
posting-account=tJm2GA0AAAAjxWsQswcVHEyXnm1JV68w
X-Scanned-By: Digested by UGA Mail Gateway on 128.192.1.75
Organization: http://groups.google.com
Comments: To: sas-***@uga.edu
Return-Path: owner-sas-***@LISTSERV.UGA.EDU
X-OriginalArrivalTime: 13 Jan 2006 19:46:21.0837 (UTC)
FILETIME=[078C9BD0:01C6187A]
Hi,
I have a variable called "start_date" and I formatted it as follows:
format start_date DATE9.
I found in my dataset that not all participants filled in this field.
I would like to identifying these missing records. How do i do this?
I've tried reformatting this variable to a character and then putting
if start_date = ' ' then missing=1. And I've even tried to put if
start_date = . then missing=1. But the format DATE 9. is neither
character nor numeric.
Can anyone help?
Thanks.