Import txt-file in SAS.

Posted on 2011-04-20
Last Modified: 2013-11-16

When i use the code below a txt-file is imported. There is a numeric field (American notation) e.g. 23,000.00 that will be imported and the result is in my table 23.
How can i solve this. I need (European notation) 23.000,00.
	OUT       = certi 
	DATAFILE  = "inp" 
	DELIMITER = ";" ; 
	DATAROW   = 1 ; 

Open in new window

Question by:sonmic
    1 Comment
    LVL 5

    Accepted Solution

    This thread I think answers your question.

    If you cannot access that, then run the import, and look at import code in the SAS log.  Copy that code and change the informat (use commax##. or dollarx##.) for the field that you wish to import (American vs. European) then run that program instead of PROC IMPORT (same results) and now your data should be corrected.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    This article explains all about SQL Server Piecemeal Restore with examples in step by step manner.
    Video by: Steve
    Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now