LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (November 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 4 Nov 2005 01:57:14 -0800
Reply-To:     asbjorn.westvik@BROCONSULTING.NO
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         asbjorn.westvik@BROCONSULTING.NO
Organization: http://groups.google.com
Subject:      free format with missing fields
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset="iso-8859-1"

Hi,

Im reading base sas and I see that you can use blank as a delimiter while you at the same time have it in text using the &, to read the following data:

Los Angeles California USA

using this sas command:

length City $ 12 State $ 10; input City $ & State $ Country $;

The only requirement is that you use 2 blanks at the end of each value.

My question is, if you want to use blank as shown above (both as a delimiter and embedded blanks) can you also cope with missing fields or do you have to use another delimiter such as , in this example:

Los Angeles,California,Usa Phoenix,,Usa

(To be honest i dont see the point of using & at all, when you can just use another symbol not in the text as a delimiter, but the information might be useful for the certification exam)

Many thanks, Åsbjørn


Back to: Top of message | Previous page | Main SAS-L page