Date: Fri, 28 Mar 2003 13:39:33 -0500
Reply-To: Robert Virgile <virgile@RCN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Robert Virgile <virgile@RCN.COM>
Subject: Re: End of file with cards4 statement
In-Reply-To: <8074EEC09294A247A25F4D9C622E11F4FFF866@PDAWB05C.ad.sprint.com>
Content-Type: text/plain; charset="us-ascii"
Joe,
A couple of ways. You could put the data into a separate file, instead
of imbedding it into the program. But actually, that is not necessary.
When you use a cards statement, you are permitted to use an infile
statement:
infile cards end=whatever;
Good luck.
Bob V.
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@listserv.uga.edu] On Behalf Of
Deshon, Joe A [PCS]
Sent: Friday, March 28, 2003 1:30 PM
To: SAS-L@listserv.uga.edu
Subject: End of file with cards4 statement
Is there a way to detect the end of file while using a cards4 statement?
There is no infile statement to put an end= option. I need to use a
cards4
because my data has embedded semi-colons.
I guess I could use a dummy stopper-records, like all 9's or something
like
that. But I was looking for something a little more elegant.
Joe DeShon
Manager, Advanced Applications Development
PCS Marketing & Sales Analysis Group
Sprint PCS
6130 Sprint Parkway
Mailstop: KSOPHJ0114-1A504
Overland Park KS 66251
Work: (913) 762-6172
PCS: (816) 210-0950
Fax: (913) 762-0804
email: jdesho01@sprintspectrum.com