DATA Step, Macro, Functions and more

Importing text data - Circumflex "^"

Accepted Solution Solved
Reply
Contributor
Posts: 46
Accepted Solution

Importing text data - Circumflex "^"

Hi all,

I'm from Brazil and Portuguese language has some features like Circumflex and importing a Text Data SAS doens't recognize them.

Is there anyway to fix that ?


Accepted Solutions
Solution
‎08-05-2013 02:28 PM
Super Contributor
Posts: 543

Re: Importing text data - Circumflex "^"

I tried this,

    data WORK.temp    ;

    %let _EFIERR_ = 0; /* set the ERROR detection macro variable */

       informat VAR1 $1. ;

       informat VAR2 $1. ;

       format VAR1 $1. ;

       format VAR2 $1. ;

    input

                VAR1 $

                VAR2 $

    ;

    if _ERROR_ then call symputx('_EFIERR_',1);  /* set ERROR detection macro variable */

cards;

â î

â î

â î

â î

â î

â î

â î

â î

â î

â î

;

Is it feasible to read in your data like this?;

View solution in original post


All Replies
Solution
‎08-05-2013 02:28 PM
Super Contributor
Posts: 543

Re: Importing text data - Circumflex "^"

I tried this,

    data WORK.temp    ;

    %let _EFIERR_ = 0; /* set the ERROR detection macro variable */

       informat VAR1 $1. ;

       informat VAR2 $1. ;

       format VAR1 $1. ;

       format VAR2 $1. ;

    input

                VAR1 $

                VAR2 $

    ;

    if _ERROR_ then call symputx('_EFIERR_',1);  /* set ERROR detection macro variable */

cards;

â î

â î

â î

â î

â î

â î

â î

â î

â î

â î

;

Is it feasible to read in your data like this?;

Contributor
Posts: 46

Re: Importing text data - Circumflex "^"

Hi, yes! it's perfect ! tk's!

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 288 views
  • 0 likes
  • 2 in conversation