BookmarkSubscribeRSS Feed
alepage
Barite | Level 11

Hello, 

 

I have tried this piece of code

 filename EBCDIC "&SrcPath./&ebcdicfname." lrecl=3000 recfm=f encoding='EBCDIC';

 

and in the log file  I have the following message

 

FATAL: Wide character FILE/INFILE/FILENAME options have been specified. Wide character support is not currently enabled.
FATAL: Unrecoverable I/O error detected in the execution of the DATA step program. Aborted during the INITIALIZE EXECUTION phase.

 

Wide character support is not currently enabled.

How do we enabled wide character

Tom
Super User Tom
Super User

I have no idea what WIDE character support is.

But don't tell SAS the file is EBCDIC.  Just read the file.  You can use your own code to convert EBCDIC to ASCII if you have to. 

If you have to tell it anything then tell it to IGNORE whatever encoding it thinks the file has.

 

I wouldn't bother adding the options on the FILENAME statement. Add them on the INFILE statement instead. Or just skip the FILENAME statement completely.  I don't know how large the file is, why start small and just check the first 30,000 bytes.

data _null_;
  infile "&SrcPath./&ebcdicfname." lrecl=3000 recfm=f encoding='ANY' obs=10 ;
  input;
  list;
run;

 

 

alepage
Barite | Level 11

I have test you code except with two observations:

 

1                                                          The SAS System                           14:05 Monday, September 13, 2021

 

1          ;*';*";*/;quit;run;

2          OPTIONS PAGENO=MIN;

3          %LET _CLIENTTASKLABEL='Programme 1';

4          %LET _CLIENTPROCESSFLOWNAME='Flux de processus';

5          %LET _CLIENTPROJECTPATH='';

6          %LET _CLIENTPROJECTPATHHOST='';

7          %LET _CLIENTPROJECTNAME='';

8          %LET _SASPROGRAMFILE='';

9          %LET _SASPROGRAMFILEHOST='';

10        

11         ODS _ALL_ CLOSE;

12         OPTIONS DEV=SVG;

13         GOPTIONS XPIXELS=0 YPIXELS=0;

14         %macro HTML5AccessibleGraphSupported;

15             %if %_SAS_VERCOMP_FV(9,4,4, 0,0,0) >= 0 %then ACCESSIBLE_GRAPH;

16         %mend;

17         FILENAME EGHTML TEMP;

18         ODS HTML5(ID=EGHTML) FILE=EGHTML

19             OPTIONS(BITMAP_MODE='INLINE')

20             %HTML5AccessibleGraphSupported

21             ENCODING='utf-8'

22             STYLE=HTMLBlue

23             NOGTITLE

24             NOGFOOTNOTE

25             GPATH=&sasworklocation

26         ;

NOTE: Writing HTML5(EGHTML) Body file: EGHTML

27        

28         data _null_;

29           infile "&SrcPath./&ebcdicfname." lrecl=3000 recfm=f encoding='ANY' obs=2 ;

30           input;

31           list;

32         run;

 

 

RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                     

1         Øç÷÷÷äÄõæÆ÷ÒÒù@@@@@@@óðõÀðóòðñòòóøòððùøð@@@@@÷òóññò@õ@ñð@òö@Õ@@ðöððñòò÷ðÀðøùõ÷ó@@ðððððöÁðóÖããèæÉÓÓk@

     101  ÒÙÉâãÉÁÕ@ù÷Ôóöòñðø@ðððñ@õ@ñùñòññ@@@@@@@@@@@@@ðð@@×@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ð

 

     201  ððððöñóÅ..."<ððððñòò÷ðÀðððòöñÆ@@@@@@@@â@@@@@@@@@@@@@@@@@@@@ÒÒùôÄéóùò....<.!.Lù××ÁØ@@...@ñÓõÈñÁøðñâñô

    ZONE  FFFFFFFC00923FFFFFFFFFCFFFFFFC44444444E44444444444444444444DDFFCEFFF001830214FDDCD440014FDFCFCFFFEFF

    NUMR  000061352112C00001227000002616000000002000000000000000000002294493922200C114C977180000C0135811801214

 

     301  Õ................@ð@ó@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@@ð@@ð..........××ååñÖÕãÄ@@ô@ñõ........@Õ

    ZONE  D00000000000000004F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F44F44F0009100000DDEEFDDEC44F4FF010000004D

    NUMR  50000C00C0000C00C0003000000000000000000000000000000000000000000002201C0000C775516534004015020C000C05

 

     401  ÕÕÕððÀ...............èÕ...Õðôô@@@@@@@@@@@@@@ðñ@@@óÃ@ÕÁÕ...|............÷÷Á÷ôõõðñ@äðøø@@....ðññùóòñùñ

    ZONE  DDDFFC000000000000000ED000DFFF44444444444444FF444FC4DCD0007000000000000FFCFFFFFF4EFFF440000FFFFFFFFF

    NUMR  5550000000C0000C0000C8500C50440000000000000001000330515000C000C000C000C7717455010408800000C011932191

2                                                          The SAS System                           14:05 Monday, September 13, 2021

 

RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                     

 

     501  öç....@@@@@@....@@@@@@....@@@@@@....@@@@@@....@@@@@@....@@@@@@....@@@@@@....@@@@@@....@@@@@@....@@@@

    ZONE  FE00004444440000444444000044444400004444440000444444000044444400004444440000444444000044444400004444

    NUMR  67000C000000000C000000000C000000000C000000000C000000000C000000000C000000000C000000000C000000000C0000

 

     601  @@....@@@@.....æÉÕã@@@@@@@@@@@@........................................................@@Á@@....Õððð

    ZONE  440000444400000ECDE4444444444440000000000000000000000000000000000000000000000000000000044C440000DFFF

    NUMR  00000C00000000C6953000000000000000C000C000C000C000C000C000C000C000C000C000C0000C00C050C00100000C5000

 

     701  ÀðÀ@@ððÀ............ÕÕ......................@ððÀððÀ.....ðððÀ@@@@@@@@@@@@@@@...è...........@@@.......

    ZONE  CFC44FFC000000000000DD00000000000000000000004FFCFFC00000FFFC444444444444444000E000000000004440000000

    NUMR  00000000000C000C000C5500C00C00C00C00C00C000C00000000000C000000000000000000000C800C00C0000C00000C0000

 

     801  .@@@.............@@@..........................@@@ðððÀ...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    ZONE  0444000000000000044400000000000000000000000000444FFFC00044444444444444444444444444444444444444444444

    NUMR  C00000C0000C0000C00000C0000C0000C00C0000C0000C000000000C00000000000000000000000000000000000000000000

 

     901  @@@@@@@@........................ðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀ

    ZONE  44444444000000000000000000000000FFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFC

    NUMR  00000000000C000C000C000C000C000C00000000000000000000000000000000000000000000000000000000000000000000

    1001  ðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀ@@@@@@@@@@@@@@@@ÃÅÙãÁòð@@@@@@@@@@@@@@@@òùòùððó@@

 

    1101  @.....@@@@@@@òðñùñòòó@........................@ñùù÷ñòòõÃ÷ðñòôòõù@@@...@...@.........@@@@@@@@@@@@@@@@

    ZONE  4000004444444FFFFFFFF40000000000000000000000004FFFFFFFFCFFFFFFFF444000400040000000004444444444444444

    NUMR  00000C0000000201912230000C000C000C000C000C000C01997122537012425900000C000C0000C0000C0000000000000000

 

    1201  @@@@@@@@@@@@@@@@@ð@ð@ð@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ðñ@@@@@@@@ððÀÂ..."<...

    ZONE  44444444444444444F4F4F44444444444444444444444444444444444444444444444444444444FF44444444FFCC00923009

    NUMR  000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000022112C211

 

    1301  ".@@@Õ@@@@ÕÕÕ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    ZONE  20444D4444DDD444444444444444444444444444444444444444444444444444444444444444444444444444444444444444

    NUMR  2C00050000555000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

    1401  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

 

    1501  @@@@@@@@@@Ô......."<................................................................................

    ZONE  4444444444D09090092300000000000000000000000000000000000000000000000000000000000000000000000000000000

    NUMR  000000000049D9D2112C0000C0C0C0000C0000C0C0C0C0C0C0C0000C0000C0000C0000C0000C0000C000C000C000C000C000

 

    1601  .............................................................................NðððNðððÕ...!..........

    ZONE  000000000000000000000000000000000000000000000000000000000000000000000000000004FFF4FFFD00929000000000

    NUMR  C000C000C000C000C000C000C000C000C000C000C000C000C000C000C000C000C000C000C000CE000E00052111C0000C0000

 

    1701  ...........@÷ñõ@ð@ð@ð@ð@ð@ð@ð@ð..."<ð@@è..q"\÷ñó@ÕÁäãÁÓÁäç@ÃÙã@@@@@@@@@@@@@ÔÉââÉââÁäÇÁk@ÖÕ@@@@@@@@@@

    ZONE  000000000004FFF4F4F4F4F4F4F4F4F00923F44E09725FFF4DCEECDCEE4CDE4444444444444DCEECEECECC64DD4444444444

    NUMR  C0000C0000C071500000000000000002112C00081912C71305143131470393000000000000049229221471B0650000000000

 

    1801  @@@@@@@@@@@@@@@@@@@@@@@@@ÓõÈñÁø..."<èçÅ÷óôõ÷ô@@@@@@@@@@@@ãÄ@@@@@@@@@@@@@@@ð@@@@@@@@@ð@@@@@@@@@ðÕ@@@@

    ZONE  4444444444444444444444444DFCFCF00923EECFFFFFF444444444444EC444444444444444F444444444F444444444FD4444

    NUMR  00000000000000000000000003581182112C8757345740000000000003400000000000000000000000000000000000050000

    1901  @@@@@@@@ð@@@@@@@@@ð@@@@@@@@@ð@@@@@@@@@@@@@ð@@@@@@@@@ð@@@@@@@@@ð@@@@@@òðñùðõòø@@@@@@@ð@@@@@@@@@@@@@@@

 

    2001  @@@@@@@@@@@.....@@@@@ðð@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    ZONE  444444444440100044444FF44444444444444444444444444444444444444444444444444444444444444444444444444444

    NUMR  000000000000000C000000000000000000000000000000000000000000000000000000000000000000000000000000000000

3                                                          The SAS System                           14:05 Monday, September 13, 2021

 

RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                     

 

    2101  @@@@@@@@@@@@Öøóùö`ôó÷õù`÷ñòòõÕ@@@@@@@@@@@@@@@@@@@@@@@@@@@@ð@@ð@@@@@@@ðÁ@@@@@@@@@ð@ð@ð@ð.............

    ZONE  444444444444DFFFF6FFFFF6FFFFFD4444444444444444444444444444F44F4444444FC444444444F4F4F4F0000000000000

    NUMR  000000000000683960437590712255000000000000000000000000000000000000000010000000000000000000C000C000C0

 

    2201  ..................................................\æÁäÄÆ÷øÅçøÁñöøð÷ö...@Ç@@@@@@@@@@@@@@@@@Õ@@@@@@@@@

    ZONE  000000000000000000000000000000000000000000000000005ECECCFFCEFCFFFFFF0004C44444444444444444D444444444

    NUMR  00C000C000C000C000C000C000C000C000C000C000C000C001C6144678578116807600C07000000000000000005000000000

    2301  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    2401  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    2501  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    2601  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    2701  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    2801  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    2901  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

2         Øç÷÷÷äÄõæÆ÷ÒÒù@@@@@@@óðõÀðóòðñòòóøòððùøð@@@@@÷òóññò@õ@ññ@òö@Õ@@ðöðððôôõðÀðøùõ÷ó@@ðððððòÂðóÖããèæÉÓÓk@

     101  ÒÙÉâãÉÁÕ@ù÷Ôóöòñðø@ðððñ@õ@ñùñòññ@@@@@@@@@@@@@ðð@@×@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ð

 

     201  ððððòòòÅ..."<ðððððôôõðÀððððùõÀ@@@@@@@@â@@@@@@@@@@@@@@@@@@@@ÒÒùôÄéóùò....<.!.Lù××ÁØ@@...@ñÓõÈñÁøðñâñô

    ZONE  FFFFFFFC00923FFFFFFFFFCFFFFFFC44444444E44444444444444444444DDFFCEFFF001830214FDDCD440014FDFCFCFFFEFF

    NUMR  000022252112C00000445000000950000000002000000000000000000002294493922200C114C977180000C0135811801214

 

     301  Õ................@ð@ó@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@ð@@ð@@ð..........××ååñÖÕãÄ@@ô@ñõ........@Õ

    ZONE  D00000000000000004F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F4F44F44F0009100000DDEEFDDEC44F4FF010000004D

    NUMR  50000C00C0000C00C0003000000000000000000000000000000000000000000002201C0000C775516534004015020C000C05

 

     401  ÕÕÕððÀ...............èÕ...Õðôô@@@@@@@@@@@@@@ðñ@@@óÃ@ÕÁÕ...|............÷÷Á÷ôõõðñ@äðøø@@....ðññùóòñùñ

    ZONE  DDDFFC000000000000000ED000DFFF44444444444444FF444FC4DCD0007000000000000FFCFFFFFF4EFFF440000FFFFFFFFF

    NUMR  5550000000C0000C0000C8500C50440000000000000001000330515000C000C000C000C7717455010408800000C011932191

 

     501  öç....@@@@@@....@@@@@@....@@@@@@....@@@@@@....@@@@@@....@@@@@@....@@@@@@....@@@@@@....@@@@@@....@@@@

    ZONE  FE00004444440000444444000044444400004444440000444444000044444400004444440000444444000044444400004444

    NUMR  67000C000000000C000000000C000000000C000000000C000000000C000000000C000000000C000000000C000000000C0000

 

     601  @@....@@@@.....æÉÕã@@@@@@@@@@@@........................................................@@Á@@....Õððð

    ZONE  440000444400000ECDE4444444444440000000000000000000000000000000000000000000000000000000044C440000DFFF

    NUMR  00000C00000000C6953000000000000000C000C000C000C000C000C000C000C000C000C000C0000C00C050C00100000C5000

 

     701  ÀðÀ@@ððÀ............ÕÕ......................@ððÀððÀ.....ðððÀ@@@@@@@@@@@@@@@...è...........@@@.......

    ZONE  CFC44FFC000000000000DD00000000000000000000004FFCFFC00000FFFC444444444444444000E000000000004440000000

    NUMR  00000000000C000C000C5500C00C00C00C00C00C000C00000000000C000000000000000000000C800C00C0000C00000C0000

 

     801  .@@@.............@@@..........................@@@ðððÀ...@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    ZONE  0444000000000000044400000000000000000000000000444FFFC00044444444444444444444444444444444444444444444

    NUMR  C00000C0000C0000C00000C0000C0000C00C0000C0000C000000000C00000000000000000000000000000000000000000000

 

     901  @@@@@@@@........................ðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀ

    ZONE  44444444000000000000000000000000FFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFCFFFC

    NUMR  00000000000C000C000C000C000C000C00000000000000000000000000000000000000000000000000000000000000000000

    1001  ðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀðððÀ@@@@@@@@@@@@@@@@ÃÅÙãÁòð@@@@@@@@@@@@@@@@òùòùððó@@

 

    1101  @.....@@@@@@@òðñùñòòó@........................@ñùù÷ñòòõÃ÷ðñòôòõù@@@...@...@.........@@@@@@@@@@@@@@@@

    ZONE  4000004444444FFFFFFFF40000000000000000000000004FFFFFFFFCFFFFFFFF444000400040000000004444444444444444

    NUMR  00000C0000000201912230000C000C000C000C000C000C01997122537012425900000C000C0000C0000C0000000000000000

4                                                          The SAS System                           14:05 Monday, September 13, 2021

 

RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                     

 

    1201  @@@@@@@@@@@@@@@@@ð@ð@ð@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ðñ@@@@@@@@ððÀÂ..."<...

    ZONE  44444444444444444F4F4F44444444444444444444444444444444444444444444444444444444FF44444444FFCC00923009

    NUMR  000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000022112C211

 

    1301  ".@@@Õ@@@@ÕÕÕ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    ZONE  20444D4444DDD444444444444444444444444444444444444444444444444444444444444444444444444444444444444444

    NUMR  2C00050000555000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

    1401  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

 

    1501  @@@@@@@@@@Ô......."<................................................................................

    ZONE  4444444444D09090092300000000000000000000000000000000000000000000000000000000000000000000000000000000

    NUMR  000000000049D9D2112C0000C0C0C0000C0000C0C0C0C0C0C0C0000C0000C0000C0000C0000C0000C000C000C000C000C000

 

    1601  .............................................................................NðððNðððÕ...!..........

    ZONE  000000000000000000000000000000000000000000000000000000000000000000000000000004FFF4FFFD00929000000000

    NUMR  C000C000C000C000C000C000C000C000C000C000C000C000C000C000C000C000C000C000C000CE000E00052111C0000C0000

 

    1701  ...........@÷ñõ@ð@ð@ð@ð@ð@ð@ð@ð..."<ð@@è..q"\÷ñó@ÕÁäãÁÓÁäç@ÃÙã@@@@@@@@@@@@@ÔÉââÉââÁäÇÁk@ÖÕ@@@@@@@@@@

    ZONE  000000000004FFF4F4F4F4F4F4F4F4F00923F44E09725FFF4DCEECDCEE4CDE4444444444444DCEECEECECC64DD4444444444

    NUMR  C0000C0000C071500000000000000002112C00081912C71305143131470393000000000000049229221471B0650000000000

 

    1801  @@@@@@@@@@@@@@@@@@@@@@@@@ÓõÈñÁø..."<èçÅ÷óôõ÷ô@@@@@@@@@@@@ãÄ@@@@@@@@@@@@@@@ð@@@@@@@@@ð@@@@@@@@@ðÕ@@@@

    ZONE  4444444444444444444444444DFCFCF00923EECFFFFFF444444444444EC444444444444444F444444444F444444444FD4444

    NUMR  00000000000000000000000003581182112C8757345740000000000003400000000000000000000000000000000000050000

    1901  @@@@@@@@ð@@@@@@@@@ð@@@@@@@@@ð@@@@@@@@@@@@@ð@@@@@@@@@ð@@@@@@@@@ð@@@@@@òðñùðõòø@@@@@@@ð@@@@@@@@@@@@@@@

 

    2001  @@@@@@@@@@@.....@@@@@ðð@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    ZONE  444444444440100044444FF44444444444444444444444444444444444444444444444444444444444444444444444444444

    NUMR  000000000000000C000000000000000000000000000000000000000000000000000000000000000000000000000000000000

 

    2101  @@@@@@@@@@@@Öøóùö`ôó÷õù`÷ñòòõÕ@@@@@@@@@@@@@@@@@@@@@@@@@@@@ð@@ð@@@@@@@ðÁ@@@@@@@@@ð@ð@ð@ð.............

    ZONE  444444444444DFFFF6FFFFF6FFFFFD4444444444444444444444444444F44F4444444FC444444444F4F4F4F0000000000000

    NUMR  000000000000683960437590712255000000000000000000000000000000000000000010000000000000000000C000C000C0

 

    2201  ..................................................\æÁäÄÆ÷øÅçøÁñöøð÷ö...@Ç@@@@@@@@@@@@@@@@@Õ@@@@@@@@@

    ZONE  000000000000000000000000000000000000000000000000005ECECCFFCEFCFFFFFF0004C44444444444444444D444444444

    NUMR  00C000C000C000C000C000C000C000C000C000C000C000C001C6144678578116807600C07000000000000000005000000000

    2301  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    2401  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    2501  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    2601  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    2701  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    2801  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    2901  @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

NOTE: 2 records were read from the infile

      

NOTE: DATA statement used (Total process time):

      real time           0.00 seconds

      cpu time            0.00 seconds

     

 

33        

34         %LET _CLIENTTASKLABEL=;

35         %LET _CLIENTPROCESSFLOWNAME=;

36         %LET _CLIENTPROJECTPATH=;

37         %LET _CLIENTPROJECTPATHHOST=;

5                                                          The SAS System                           14:05 Monday, September 13, 2021

 

38         %LET _CLIENTPROJECTNAME=;

39         %LET _SASPROGRAMFILE=;

40         %LET _SASPROGRAMFILEHOST=;

41        

42         ;*';*";*/;quit;run;

43         ODS _ALL_ CLOSE;

44        

45        

46         QUIT; RUN;

47        

 

Tom
Super User Tom
Super User

Where in those 3,000 characters to you expect the email address to be?

Please Please Please when posting text make sure to use the pop-up window that appears when you click on the Insert Code button (looks like < / > ) so that the forum editor does not think your are trying to type a paragraph.

Tom
Super User Tom
Super User

Looks like you are expecting the email address here:

 

@2042 CLIENT_EMAIL_ADDRESS $EBCDIC71.

Both of those records have all spaces at that location.  '40'x in EBCDIC is a space.  It is showing as @ because that is what '40'x in ASCII means.

 

Try this code to see some examples of what is in those columns.

data emails;
  infile "&SrcPath./&ebcdicfname." lrecl=3000 recfm=f encoding='ANY' ;
  input @2042 email $char71.;
run;

proc sql ;
  create table email2 as
  select email,put(email,$hex142.) email_hex,count(*) as count
    from emails
    group by email,email_hex
    order by count desc 
  ;
quit;

proc print data=email2 (obs=10);
run;
alepage
Barite | Level 11

I am trying to find a solution to avoid in order to get a normal email address such as firstname.name@server.com instead of 

firstname.nameàserver.com.

 

I have tried your code but I don't understand were we are going

Do you think that the original file is corrupted, i.e. that the @ has already been replace by à and if so why?

 

Also, I have tried the code below, in order to get only the client_email_address and it show a à instead of an at sign.

data emails;
  infile "&SrcPath./&ebcdicfname." lrecl=3000 recfm=f encoding='any' ;
/*  input @2042 email $char71.;*/
  input @2042 email2 $EBCDIC71.;
run;
Tom
Super User Tom
Super User

The goal is to see what is actually in the file you are reading.  This will help you figure out if the file has what you expected it to have.  If it does not then you need to figure out how the file got to the Unix machine and perhaps you can fix the issue by fixing the transfer.

Even if the file is not 100% correct it might still be usable, at least for the email address, as long as the hexcode that is used is distinct from the other hexcodes in the email address.

 

So what is the HEX code for the location where you expected to see an @ ?  Is the code 'E0'x which is the ASCII code for the character you typed into your post?  (At least on my version of SAS using WLATIN1 encoding.

185   data _null_;
186     x='à';
187     put x $hex2. ;
188   run;

E0
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


189   %put &=sysencoding;
SYSENCODING=wlatin1

Note that according to https://en.wikipedia.org/wiki/EBCDIC the hex code 'E0'x is a \ character in EBCDIC.  So you could try converting the \ back to an @ , which is '7C'x , and then try converting from EBCDIC to ASCII.

data email3 ;
  set email2;
  ebcdic = translate(email,'7C'x,'E0'x);
  ascii = input(ebcdic,$ebcdic71.);
run;

 

alepage
Barite | Level 11
this conversion gave me the same result i.e., firstname.nameàservername
alepage
Barite | Level 11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@	4040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040	840
ÔÙÉãÁÃÃÖ|ÈÖãÔÁÉÓKÃÖÔ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@	D4D9C9E3C1C3C3D67CC8D6E3D4C1C9D34BC3D6D4404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040	48
ÒåÄöùö|ÈÖãÔÁÉÓKÃÖÔ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@	D2E5C4F6F9F67CC8D6E3D4C1C9D34BC3D6D44040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040	36
ÓÅÂÓÁÕÃÕÅÉÓ|ÈÖãÔÁÉÓKÃÖÔ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@	D3C5C2D3C1D5C3D5C5C9D37CC8D6E3D4C1C9D34BC3D6D4404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040	30
ÇãÙÅÔÂÓÁèKö|ÈÖãÔÁÉÓKÃÖÔ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@	C7E3D9C5D4C2D3C1E84BF67CC8D6E3D4C1C9D34BC3D6D4404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040	28
ãÙÅåÖÙÒÉÕâÔÁÕ|ÓÉåÅKÃÁ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@	E3D9C5E5D6D9D2C9D5E2D4C1D57CD3C9E5C54BC3C14040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040	24
ÄÁÙÉÁÁÉãÖÕ|ÇÔÁÉÓKÃÖÔ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@	C4C1D9C9C1C1C9E3D6D57CC7D4C1C9D34BC3D6D4404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040	24
ÔÉÕÉÂÅÁÙñùôø|ÈÖãÔÁÉÓKÃÖÔ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@	D4C9D5C9C2C5C1D9F1F9F4F87CC8D6E3D4C1C9D34BC3D6D44040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040	24
ÃÁÙÓÖâKÕÖåÅÓÓÖñ|ÖäãÓÖÖÒKÃÖÔ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@	C3C1D9D3D6E24BD5D6E5C5D3D3D6F17CD6E4E3D3D6D6D24BC3D6D44040404040404040404040404040404040404040404040404040404040404040404040404040404040404040	22
âäÅKæÁÙÄôøñ|ÇÔÁÉÓKÃÖÔ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@	E2E4C54BE6C1D9C4F4F8F17CC7D4C1C9D34BC3D6D44040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040	20
Tom
Super User Tom
Super User

So the most popular values are reading fine from the file.  That HEX code of 7C is the @ sign.

data have;
  input email $hex54.;
  ascii = input(email,$ebcdic54.);
cards;
404040404040404040404040404040404040404040404040404040
D4D9C9E3C1C3C3D67CC8D6E3D4C1C9D34BC3D6D440404040404040
D2E5C4F6F9F67CC8D6E3D4C1C9D34BC3D6D4404040404040404040
D3C5C2D3C1D5C3D5C5C9D37CC8D6E3D4C1C9D34BC3D6D440404040
C7E3D9C5D4C2D3C1E84BF67CC8D6E3D4C1C9D34BC3D6D440404040
E3D9C5E5D6D9D2C9D5E2D4C1D57CD3C9E5C54BC3C1404040404040
C4C1D9C9C1C1C9E3D6D57CC7D4C1C9D34BC3D6D440404040404040
D4C9D5C9C2C5C1D9F1F9F4F87CC8D6E3D4C1C9D34BC3D6D4404040
C3C1D9D3D6E24BD5D6E5C5D3D3D6F17CD6E4E3D3D6D6D24BC3D6D4
E2E4C54BE6C1D9C4F4F8F17CC7D4C1C9D34BC3D6D4404040404040
;

proc print ;
  var ascii email ;
  format email $hex54. ;
run;

Did that job find any that did not have the right code for the @ in them?

 

Try going back to your original program that is reading the variable using the $EBCDIC. informat and make sure that you have ENCODING='ANY' on the INFILE statement.

Tom
Super User Tom
Super User

For whatever reason (perhaps you should ask SAS support) it looks like your system is using some French specific EBCDIC version for the $EBCDIC encoding.

 

SAS have a function called KCVT() you can use to convert strings between two different encodings.  They even have a page that lists all of them.  https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/nlsref/n1r7pnb91iybs9n1hgvsj7q09srd.htm

 

So I took that list of encodings and tested every single-byte encoding to see which one generates that strange character you are seeing.

2385  data check;
2386    from='7C'x;
2387    length to $1;
2388    set encodings;
2389    where max=1;
2390    to = kcvt(from,long,'wlatin1');
2391    if to ='E0'x then put (_all_) (=);
2392  run;

from=| to=à long=ebcdic1147 short=e147 description=France EBCDIC max=1
from=| to=à long=open_ed-1147 short=eo47 description=France OpenEdition max=1

So your system is using either E147 or EO47 as the encoding to reading from EBCDIC to ASCII.

 

In that case read the string from the file using the $CHAR informat and then call KCVT convert it to ASCII using some other EBCDIC version. Like the US version.

....
input .... @2042 email $char71. .... ;
email = kcvt(email,'e037','wlatin1');
....
alepage
Barite | Level 11
proc options option=encoding;
run;

/*** log file ****/

proc options option=encoding;
29         run;

    SAS (r) Proprietary Software Release 9.4  TS1M7

 ENCODING=LATIN1   Specifies the default character-set encoding for the SAS session.
NOTE: PROCEDURE OPTIONS used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 secondsT

Thanks a lot for your help, it is very appreciated.  Hum! were is the encoding dataset  (set encoding)? so I can test your code

Tom
Super User Tom
Super User

I just copied the strings from the help page.

data encodings;
   infile cards dsd dlm='|' truncover;
   input long :$20. short $ description :$40. max ;
cards4;
aarabic|aara|Arabic Macintosh|1
acroatian|acro|MacOS 36 Croatian|1
acyrillic|acyr|MacOS 7 Cyrillic|1
agreek|agrk|Greek Macintosh|1
ahebrew|aheb|Hebrew Macintosh|1
aiceland|aice|Icelandic Macintosh|1
any|anye|no transcoding is specified|1
arabic|arab|Arabic ISO|1
aroman|arom|Roman Macintosh|1
aromania|arma|MacOS 38 Romania|1
athai|atha|MacOS 21-Thai|1
aturkish|atur|Turkish Macintosh|1
aukrainian|aukr|Ukrainian Macintosh|1
big5|big5|Traditional Chinese Big5|2
cyrillic|cyrl|Cyrillic ISO|1
dec-cn|zvms|Simplified Chinese DEC|4
dec-jp|jvms|Japanese DEC|2
dec-tw|yvms|Traditional Chinese DEC|4
ebcdic037|e037|North American EBCDIC|1
ebcdic275|e275|Brazil EBCDIC|1
ebcdic424|e424|Hebrew EBCDIC|1
ebcdic425|e425|Arabic EBCDIC|1
ebcdic500|e500|International EBCDIC|1
ebcdic838|e838|Thai EBCDIC|1
ebcdic870|e870|Central European EBCDIC|1
ebcdic875|e875|Greek EBCDIC|1
ebcdic905|e905|Latin 3 EBCDIC|1
ebcdic924|e924|European EBCDIC|1
ebcdic1025|ecyr|Cyrillic EBCDIC|1
ebcdic1026|etur|Turkish EBCDIC|1
ebcdic1047|elat|Western EBCDIC|1
ebcdic1097|e097|Farsi Bilingual EBCDIC|1
ebcdic1112|ebal|Baltic EBCDIC|1
ebcdic1122|eest|Estonian EBCDIC|1
ebcdic1130|evie|Vietnamese EBCDIC|1
ebcdic1137|e137|Devanagari EBCDIC|1
ebcdic1140|e140|North American EBCDIC|1
ebcdic1141|e141|Austria/Germany EBCDIC|1
ebcdic1142|e142|Denmark/Norway EBCDIC|1
ebcdic1143|e143|Finland/Sweden EBCDIC|1
ebcdic1144|e144|Italy EBCDIC|1
ebcdic1145|e145|Spain EBCDIC|1
ebcdic1146|e146|United Kingdom EBCDIC|1
ebcdic1147|e147|France EBCDIC|1
ebcdic1148|e148|International EBCDIC|1
ebcdic1149|e149|Iceland EBCDIC|1
ebcdic1153|e153|Latin 2 Euro EBCDIC|1
ebcdic1154|e154|Cyrillic Euro EBCDIC|1
ebcdic1155|e155|Turkey Euro EBCDIC|1
ebcdic1156|e156|Baltic Euro EBCDIC|1
ebcdic1157|e157|Estonia Euro EBCDIC|1
ebcdic1158|e158|Cryillic Ukraine Euro EBCDIC|1
ebcdic1160|e160|cp1160 EBCDIC|1
ebcdic1164|e164|cp1164 EBCDIC|1
ebcdicany|eany|enables you to create a data set that is|1
euc-cn|zeuc|Simplified Chinese EUC|2
euc-jp|jeuc|Japanese EUC|4
euc-kr|keuc|Korean EUC|4
euc-tw|yeuc|Traditional Chinese EUC|4
fujitsu-cn|zfuj|Simplified Chinese FACOM|4
fujitsu-jp|jfuj|Japanese FACOM|4
fujitsu-ko|kfuj|Korean FACOM|4
fujitsu-tw|yfuj|Traditional Chinese FACOM|4
gb18030|gbke|Simplified Chinese GB18030|4
greek|grek|Greek ISO|1
hebrew|hebr|Hebrew ISO|1
hitachi-cn|zhit|Simplified Chinese HITAC|6
hitachi-jp|jhit|Japanese HITAC|6
hitachi-ko|khit|Korean HITAC|6
hitachi-tw|yhit|Traditional Chinese HITAC|4
hitsas-jp|jhts|Japanese XHITAC|4
hitsas-ko|khts|Korean XHITAC|4
hitsas-tw|yhts|Traditional Chinese XHITAC|4
hp15-tw|yhpx|Traditional Chinese HP15|2
ibm-1381|zpce|Simplified Chinese PCIBM|2
ibm-930|j930|Japanese katakana|4
ibm-933|kibm|Korean IBM|4
ibm-935|zibm|Simplified Chinese IBM|4
ibm-937|yibm|Traditional Chinese IBM|4
ibm-939|jibm|Japanese IBM|4
ibm-942|j942|Japanese PCIBM|2
ibm-949|kpce|Korean PCIBM|2
iso2022cncns|zist|Traditional Chinese ISO-2022|4
iso2022cngb|ziso|Simplified Chinese ISO-2022|4
iso2022jp|jiso|Japanese ISO-2022|8
iso2022kr|kiso|Korean ISO-2022|4
kz1048|kz48|Kazakh cp1048 Cyrillic|1
latin1|lat1|Western ISO|1
latin2|lat2|Central European ISO|1
latin3|lat3|Latin 3 ISO 8859/3|1
latin4|lat4|Latin 4 ISO 8859/4|1
latin5|lat5|Turkish ISO|1
latin6|lat6|Baltic ISO|1
latin7|lat7|Baltic Rim|1
latin8|lat8|Latin 8 ISO 8859/14|1
latin9|lat9|European ISO|1
latin10|lat10|South-eastern Europe|1
macos-1|jmac|Japanese PCMAC|2
macos-2|ymac|Traditional Chinese PCMAC|2
macos-3|kmac|Korean PCMAC|2
macos-25|zmac|Simplified Chinese PCMAC|2
ms-932|j932|Japanese PCMS|2
ms-936|zwin|Simplified Chinese PCMS|2
ms-949|kwin|Korean PCMS|2
ms-950|ywin|Traditional Chinese PCMS|2
msdos720|p720|Arabic MS-DOS|1
msdos737|p737|Greek MS-DOS|1
msdos775|p775|Baltic MS-DOS|1
open_ed-037|eous|USA Open Edition|1
open_ed-275|eobr|Brazil OpenEdition|1
open_ed-424|eoiw|Hebrew OpenEdition|1
open_ed-425|eoa2|Arabic OpenEdition|1
open_ed-838|eoth|Thai OpenEdition|1
open_ed-870|eol2|Central European OpenEdition|1
open_ed-875|eoel|Greek OpenEdition|1
open_ed-905|eol3|Latin 3 Open Edition EBCDIC|1
open_ed-924|eolt|European OpenEdition|1
open_ed-930|oe30|Katakana OpenEdition|4
open_ed-933|oe33|Korean OpenEdition|4
open_ed-935|oe35|Simplified Chinese OpenEdition|4
open_ed-937|oe37|Traditional Chinese OpenEdition|4
open_ed-939|oe39|Japanese IBM|4
open_ed-939E|oe9e|Japanese IBM Extended’|4
open_ed-1025|eocy|Cyrillic OpenEdition|1
open_ed-1026|eotr|Turkish OpenEdition|1
open_ed-1047|eol1|Western OpenEdition|1
open_ed-1097|eofa|Farsi Bilingual OpenEdition EBCDIC|1
open_ed-1112|eobl|Baltic OpenEdition|1
open_ed-1122|eoet|Estonian OpenEdition|1
open_ed-1130|eovi|Vietnamese OpenEdition|1
open_ed-1140|eo40|North American OpenEdition|1
open_ed-1141|eo41|Austria/Germany OpenEdition|1
open_ed-1142|eo42|Denmark/Norway OpenEdition|1
open_ed-1143|eo43|Finland/Sweden OpenEdition|1
open_ed-1144|eo44|Italy OpenEdition|1
open_ed-1145|eo45|Spain OpenEdition|1
open_ed-1146|eo46|United Kingdom OpenEdition|1
open_ed-1147|eo47|France OpenEdition|1
open_ed-1148|eo48|International OpenEdition|1
open_ed-1149|eoIS|Iceland OpenEdition EBCDIC|1
open_ed-1153|eo53|Latin 2 Euro OpenEdition EBCDIC|1
open_ed-1154|eo54|Cyrillic Euro OpenEdition EBCDIC|1
open_ed-1155|eo55|Turkey Euro OpenEdition EBCDIC|1
open_ed-1156|eo56|Baltic Euro OpenEdition EBCDIC|1
open_ed-1157|eo57|Estonia Euro OpenEdition EBCDIC|1
open_ed-1158|eo58|Cryrillic Ukraine Euro 1158 OpenEdition|1
open_ed-1160|eo60|1160 OpenEdition EBCDIC|1
open_ed-1164|eo64|1164 OpenEdition EBCDIC|1
open_ed-1166|eo66|1166 OpenEdition kz-cyr|1
pciscii806|p806|Indian PC|1
pcoem437|p437|USA IBM-PC|1
pcoem850|p850|Western IBM-PC|1
pcoem852|p852|Central European IBM-PC|1
pcoem857|p857|Turkish IBM-PC|1
pcoem858|p858|European IBM-PC|1
pcoem860|p860|Portuguese MS-DOS|1
pcoem862|p862|Hebrew IBM-PC|1
pcoem863|p863|French Canadian IBM-PC|1
pcoem864|p864|Arabic IBM-PC|1
pcoem865|p865|Nordic IBM-PC|1
pcoem866|p866|Cyrillic IBM-PC|1
pcoem869|p869|Greek IBM-PC|1
pcoem874|p874|Thai IBM-PC|1
pcoem921|p921|Baltic IBM-PC|1
pcoem922|p922|Estonia IBM-PC|1
pcoem1129|pvie|Vietnamese IBM-PC|1
pc1098|po98|Farsi PC|1
roman8|rom8|HP Roman 8|1
shift-jis|sjis|Japanese SJIS|2
shift-jis04|sjs4|Shift_JIS-2004 surrogate pair support|2
thai|thai|Thai ISO|1
us-ascii|ansi|enables you to create a data set that is|1
utf-8|utf8|Unicode (UTF-8)|4
utf-16be|u16b|Unicode (UTF-16BE)|2
utf-16le|u16l|Unicode (UTF-16LE)|2
utf-32be|u32b|Unicode (UTF-32BE)|4
utf-32le|u32l|Unicode (UTF-32LE)|4
warabic|wara|Arabic Windows|1
wbaltic|wbal|Baltic Windows|1
wcyrillic|wcyr|Cyrillic Windows|1
wgreek|wgrk|Greek Windows|1
whebrew|wheb|Hebrew Windows|1
wlatin1|wlt1|Western Windows|1
wlatin2|wlt2|Central European Windows|1
wturkish|wtur|Turkish Windows|1
wvietnamese|wvie|Vietnamese Windows|1
;;;;
alepage
Barite | Level 11
28           data check;
29             from='7C'x;
30             length to $1;
31             set encodings;
32             where max=1;
33             to = kcvt(from,long,'wlatin1');
34             if to ='E0'x then put (_all_) (=);
35          run;

from=| to=à long=ebcdic1147 short=e147 description=France EBCDIC max=1
from=| to=à long=open_ed-1147 short=eo47 description=France OpenEdition max=1
NOTE: There were 132 observations read from the data set WORK.ENCODINGS.
      WHERE max=1;
NOTE: The data set WORK.CHECK has 132 observations and 6 variables.
NOTE: Compressing data set WORK.CHECK increased size by 100.00 percent. 
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds

It seems that your are right.  So is there an encoding option I can use to correct this issue, how does the only solution to this issue is: 

input .... @2042 email $char71. .... ;
email = kcvt(email,'e037','wlatin1');
Tom
Super User Tom
Super User

You probably need to do some more research into which encoding/codepage was actually used by the system that created the file to understand which of many different encodings in that list from SAS is appropriate for your file.

 

To see if you can get the $EBCIDC informat to do what you want try changing with the LOCALE option.

If that does not help you might ask SAS support http://sas.com/support about how the difference in meaning of $EBCDIC informat can be controlled.

 

2840  proc options option=locale;
2841  run;

    SAS (r) Proprietary Software Release 9.4  TS1M5

 LOCALE=EN_US      Specifies a set of attributes in a SAS session that reflect the language, local conventions, and culture for a
                   geographical region.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 37 replies
  • 1215 views
  • 5 likes
  • 6 in conversation