Go Back   Rhinocerus > Newsgroup > Newsgroup comp.soft-sys.sas



Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 11-26-2009, 04:12 AM
Arthur Tabachneck
Guest
 
Posts: n/a
Default Re: proc import - how to define char or numeric as char

A couple of possible solutions that individually, or combined, might
solve your problem.

First is to ensure that guessingrows is set to a high enough value to
capture the unreadable cells. Second is to ensure that mixed=yes is
set. Third, if you're on windows, check out the macro that data_null_
posted last year: http://www.listserv.uga.edu/cgi-bin/...s-l&D=1&O=A&P=...
or, in short form: http://xrl.us/bfa8qi

It provides a way to temporarily change the window's registry guessing
rows setting which, if not set high enough, makes the sas guessingrows
statement useless.

HTH,
Art
-------------
On Nov 25, 8:28 pm, zespri <stej...@gmail.com> wrote:
> Hi
>
> a few columns in Excel include both char and numeric, eg.
> variable date includes 10022009 (most of them in this format) and
> 10/02/2009 and 10.02.2009
> variable language includes English, Japanese, and 14, 19 (their code)
>
> list are very long, and I have a few Excel file to import into SAS.
>
> when I use proc import, it can't input these variables properly. May I
> ask how can I define them as character in the proc import process?
> then, I can handle them in SAS (as I have a lot of variables, using
> input variable name takes too much time)
>
> Thank you

Reply With Quote
Alt Today
Advertising
Google Adsense
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 11-26-2009, 10:55 AM
John Hendrickx
Guest
 
Posts: n/a
Default Re: proc import - how to define char or numeric as char

Interesting macro but are you sure it only temporarily changes the
registry settings? It seems to create an execute a Windows script that
changes the registry settings but that would be permanent, wouldn't
it?

On 26 nov, 05:12, art...@NETSCAPE.NET (Arthur Tabachneck) wrote:
> A couple of possible solutions that individually, or combined, might
> solve your problem.
>
> First is to ensure that guessingrows is set to a high enough value to
> capture the unreadable cells. *Second is to ensure that mixed=yes is
> set. *Third, if you're on windows, check out the macro that data_null_
> posted last year:http://www.listserv.uga.edu/cgi-bin/...s-l&D=1&O=A&P=...
> or, in short form:http://xrl.us/bfa8qi
>
> It provides a way to temporarily change the window's registry guessing
> rows setting which, if not set high enough, makes the sas guessingrows
> statement useless.
>
> HTH,
> Art
> -------------
> On Nov 25, 8:28 pm, zespri <stej...@gmail.com> wrote:
>
> > Hi

>
> > a few columns in Excel include both char and numeric, eg.
> > variable date includes 10022009 (most of them in this format) and
> > 10/02/2009 and 10.02.2009
> > variable language includes English, Japanese, and 14, 19 (their code)

>
> > list are very long, and I have a few Excel file to import into SAS.

>
> > when I use proc import, it can't input these variables properly. May I
> > ask how can I define them as character in the proc import process?
> > then, I can handle them in SAS (as I have a lot of variables, using
> > input variable name takes too much time)

>
> > Thank you

Reply With Quote
 
Reply

Popular Tags in the Forum
char, define, import, numeric, proc

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
preprocessor arithmetic Andrey Vul Newsgroup comp.lang.c 42 11-03-2009 03:55 PM
Re: SAS Formats w/ proc means Andre Wielki Newsgroup comp.soft-sys.sas 0 10-07-2008 03:18 PM
Re: Proc means - Now proc report doubt Adriano Rodrigues - Instituto GPP Newsgroup comp.soft-sys.sas 0 08-20-2007 07:08 PM
Number of Records Mathew Chandler Newsgroup comp.soft-sys.sas 0 10-29-2004 09:05 PM
Re: Right justifying computed character output in PROC REPORT Scott Newsgroup comp.soft-sys.sas 1 10-28-2004 12:17 PM



Language 1 | C | C++ | Php | Python | Lisp | Perl | Ruby | Java | Pascal | Basic | Language 2 | Databases | Oracle | Mysql | Access | Drupal
All times are GMT. The time now is 04:04 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.