Date: Wed, 17 Dec 2008 08:26:42 -0500
Reply-To: Nathaniel.Wooding@DOM.COM
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Nat Wooding <Nathaniel.Wooding@DOM.COM>
Subject: Re: Cards
In-Reply-To: <187d74b7-a2f0-44e0-8038-4e8ba02c53ed@n33g2000pri.googlegroups.com>
Content-Type: text/plain; charset="ISO-8859-1"
Ash
The following is essentially what Roland has already posted but with
explanations added which explain why the additions were needed.
data ref_produit;
infile cards missover;** missover is needed if you have records
shorter than
100 which is the combined lengths that you are trying to read;
INPUT CODE $2. LIBELLE & $100. ; * the ampersand (&) is needed
since you have embedded
* blanks in your data;
CARDS;
AA Capital Décès/PTIA CNP Conjoint 9536Q
AB Capital Décès/PTIA CNP MP 9536Q
AC Garanties Prévoyance
AD Garanties Santés
AE Garantie Accueil
AF Allocation Frais d'obsèques
AG Garantie Bien-être
AH Garantie Confort
AI Capital Décès PTIA CNP MP
AJ Capital Décès IPA Statutaire
AK Capital Décès IPA Statutaire (a)
AL Capital Décès PTIA CNP MP (a)
run;
* you may have simply not copied it when you posted your code but at the
end of your data, you
* need either
1) a semicolon. 4 semicolons are needed if there are semicolons in your
data
2) run followed by a semicolon
3) a data step
4) a proc step
One of these is needed in order to close and run your data step that reads
the cards;
Nat Wooding
Environmental Specialist III
Dominion, Environmental Biology
4111 Castlewood Rd
Richmond, VA 23234
Phone:804-271-5313, Fax: 804-271-2977
ash007
<RamsamyAshley@GM
AIL.COM> To
Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU
Discussion" cc
<SAS-L@LISTSERV.U
GA.EDU> Subject
Cards
12/17/2008 05:34
AM
Please respond to
ash007
<RamsamyAshley@GM
AIL.COM>
Hello,
Why my programm doesn't work ?
Thanks.
Ash007.
data ref_produit;
INPUT CODE $2. LIBELLE $100.; CARDS;
AA Capital Décès/PTIA CNP Conjoint 9536Q
AB Capital Décès/PTIA CNP MP 9536Q
AC Garanties Prévoyance
AD Garanties Santés
AE Garantie Accueil
AF Allocation Frais d'obsèques
AG Garantie Bien-être
AH Garantie Confort
AI Capital Décès PTIA CNP MP
AJ Capital Décès IPA Statutaire
AK Capital Décès IPA Statutaire (a)
AL Capital Décès PTIA CNP MP (a)
CONFIDENTIALITY NOTICE: This electronic message contains
information which may be legally confidential and/or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect. The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful. If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it. Thank you.