<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Import the varaible with a line break in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671393#M201614</link>
    <description>Thank you very much!&lt;BR /&gt;I understood &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Wed, 22 Jul 2020 14:22:08 GMT</pubDate>
    <dc:creator>SASdevAnneMarie</dc:creator>
    <dc:date>2020-07-22T14:22:08Z</dc:date>
    <item>
      <title>Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668379#M200339</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to import the csv file, my second variable (start and end in yellow) has a line break :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarieT_0-1594390661295.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47052iFA267B07B00CD4AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarieT_0-1594390661295.png" alt="MarieT_0-1594390661295.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I use the option:&amp;nbsp; dlm='","'||',"';&lt;BR /&gt;infile "XXX\tweet_archives_fr.csv" delimiter=dlm&lt;BR /&gt;missover lrecl=250 firstobs=2 ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With this options my second variable is truncated.&lt;/P&gt;
&lt;P&gt;Do you know please the option to read correctly this variable ?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Marie&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 14:24:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668379#M200339</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-10T14:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668392#M200346</link>
      <description>&lt;P&gt;Hard to tell from a photograph of your text, but in general embedded end of line characters in a field is a problem for SAS.&amp;nbsp; There are some work arounds.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest is if the characters in your field are not exactly the same as those used to mark the real end of lines.&amp;nbsp; &amp;nbsp;So if the characters are either CR or LF and the end of line if CR and LF then you can just add TERMSTR=CRLF to your INFILE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise you will either need to make a more complex solution.&lt;/P&gt;
&lt;P&gt;For example if the fields that have end of line characters in them are quoted you can use that fact to find them and change them into some other character.&amp;nbsp; For safety I would do this by making a copy of the file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename fixed temp;
data _null_;
   infile "XXX\tweet_archives_fr.csv";
   file fixed;
   input;
   q+countc(_infile_,'"');
   q=mod(q,2);
   if _n_&amp;gt;1 and not q then put;
   put _infile_ @;
run;
....
infile fixed dsd dlm=',' truncover firstobs=2;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2020 15:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668392#M200346</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-10T15:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668399#M200352</link>
      <description>&lt;P&gt;The data is attached.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 15:24:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668399#M200352</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-10T15:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668403#M200353</link>
      <description>&lt;P&gt;I don't really see a pattern in that file.&amp;nbsp; It does appear to have way too many quotes.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is summary and dump of the first 20 records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to get the data from before someone tried to create a CSV file out of it?&lt;/P&gt;
&lt;PRE&gt;144   data _null_;
145     infile "&amp;amp;path/&amp;amp;fname" obs=20;
146     input;
147     q=countc(_infile_,'"');
148     len=lengthn(_infile_);
149     put (_n_ q len) (=) ;
150   run;

NOTE: The infile "C:\Downloads/tweet_archives - Marie.csv" is:
      Filename=C:\Downloads\tweet_archives - Marie.csv,
      RECFM=V,LRECL=32767,File Size (bytes)=12275,
      Last Modified=10Jul2020:11:26:23,
      Create Time=10Jul2020:11:26:22

_N_=1 q=158 len=1132
_N_=2 q=8 len=195
_N_=3 q=0 len=61
_N_=4 q=152 len=336
_N_=5 q=8 len=247
_N_=6 q=152 len=364
_N_=7 q=158 len=616
_N_=8 q=8 len=168
_N_=9 q=0 len=29
_N_=10 q=0 len=50
_N_=11 q=0 len=39
_N_=12 q=152 len=387
_N_=13 q=166 len=651
_N_=14 q=166 len=565
_N_=15 q=158 len=680
_N_=16 q=8 len=253
_N_=17 q=152 len=335
_N_=18 q=166 len=573
_N_=19 q=8 len=216
_N_=20 q=152 len=333
NOTE: 20 records were read from the infile "C:\Downloads/tweet_archives - Marie.csv".
      The minimum record length was 29.
      The maximum record length was 1132.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


151   data _null_;
152     infile "&amp;amp;path/&amp;amp;fname" obs=20;
153     input;
154     list;
155   run;

NOTE: The infile "C:\Downloads/tweet_archives - Marie.csv" is:
      Filename=C:\Downloads\tweet_archives - Marie.csv,
      RECFM=V,LRECL=32767,File Size (bytes)=12275,
      Last Modified=10Jul2020:11:26:23,
      Create Time=10Jul2020:11:26:22

RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+--
1         "Identifiant du Tweet,""Permalien du Tweet"",""Texte du Tweet"",""heure"",""impressions"",""engag
      98  ements"",""taux dâ€™engagement"",""Retweets"",""rÃ©ponses"",""J'aime"",""clics sur le profil de l
     195  'utilisateur"",""clics sur l'URL"",""clics sur le hashtag"",""ouvertures des dÃ©tails"",""clics s
     292  ur le permalien"",""ouvertures d'application"",""installations de l'application"",""abonnements "
     389  ",""envoyer le Tweet par email"",""composer le numÃ©ro"",""vues du mÃ©dia"",""engagements avec le
     486   mÃ©dia"",""impressions sponsorisÃ©"",""engagements sponsorisÃ©"",""taux dâ€™engagement sponsoris
     583  Ã©"",""Retweets sponsorisÃ©"",""rÃ©ponses sponsorisÃ©"",""J'aime sponsorisÃ©"",""clics sur le pro
     680  fil de l'utilisateur sponsorisÃ©"",""clics sur l'URL sponsorisÃ©"",""clics sur le hashtag sponsor
     777  isÃ©"",""ouvertures des dÃ©tails sponsorisÃ©"",""clics sur le permalien sponsorisÃ©"",""ouverture
     874  s d'application sponsorisÃ©"",""installations de l'application sponsorisÃ©"",""abonnements  spons
     971  orisÃ©"",""envoyer le Tweet par email sponsorisÃ©"",""composer le numÃ©ro sponsorisÃ©"",""vues du
    1068   mÃ©dia sponsorisÃ©"",""engagements avec le mÃ©dia sponsorisÃ©""" 1132
2         "1266244129173893121,""https://twitter.com/ACPPLMP/status/1266244129173893121"",""ðŸ’°ðŸŒ‚Option
      98  Capital ProtÃ©gÃ© DÃ©cembre 2024 III : ðŸ”› J-8 avant la fin de la commercialisation de cette OCP
     195  " 195
3          #UCprotÃ©gÃ©e #investissement #assurancevie #diversification 61
4         "https://t.co/dbBiwVNaYw https://t.co/lCbVXrlG3o"",""2020-05-29 05:45 +0000"",""608.0"",""12.0"",
      98  ""0.019736842105263157"",""2.0"",""0.0"",""2.0"",""0.0"",""1.0"",""0.0"",""6.0"",""0.0"",""0"",""
     195  0"",""0"",""0"",""0"",""1"",""1"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-
     292  "",""-"",""-"",""-"",""-"",""-"",""-"",""-""" 336
5         "1265912925774131200,""https://twitter.com/ACPPLMP/status/1265912925774131200"",""ðŸ’¡@phcrevel d
      98  u @twittcercle nous Ã©claire dans ce dossier  consacrÃ© Ã&amp;nbsp; Â« Lâ€™Ã©pargne des FranÃ§ais en temps
     195   de crise Â» rÃ©alisÃ© avec le support d'@amphitea_ " 247
6         "ðŸ‘‰ #Epargne #AssuranceVie https://t.co/Q8oNOJtxFP https://t.co/yP6VAdOdya"",""2020-05-28 07:48
      98   +0000"",""820.0"",""19.0"",""0.023170731707317073"",""2.0"",""0.0"",""4.0"",""0.0"",""6.0"",""0.
     195  0"",""3.0"",""0.0"",""0"",""0"",""0"",""0"",""0"",""4"",""4"",""-"",""-"",""-"",""-"",""-"",""-""
     292  ,""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-""" 364
7         "1265573207765114880,""https://twitter.com/ACPPLMP/status/1265573207765114880"",""...Ceci, dans l
      98  'intÃ©rÃªt des clients et pour rÃ©pondre aux demandes de nos partenaires, dans des conditions de


RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+--

     195  travail spÃ©cifiques et surtout respectueuses de la sÃ©curitÃ© pour tous.ðŸ‘©â€.âš•ï¸. #Covid_19
    ZONE  7767666277CA66667767267277776772767766776776726626627CA67767CA27677276772F99AE88E99EB822467665332
    NUMR  421619C030393969155305403524F54025305345553530450C10339352943900F5204F53E0F1920D2A5F8F033F694F190
     292  #tÃ©lÃ©travail #santÃ© #dÃ©confinement"",""2020-05-27 09:19 +0000"",""667.0"",""6.0"",""0.0089955
     389  02248875561"",""1.0"",""0.0"",""3.0"",""0.0"",""0.0"",""0.0"",""2.0"",""0.0"",""0"",""0"",""0"","
     486  "0"",""0"",""0"",""0"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""
     583  -"",""-"",""-"",""-"",""-"",""-""" 616
8         "1265573206028685313,""https://twitter.com/ACPPLMP/status/1265573206028685313"",""...Ã&amp;nbsp; tous les

      98  collaborateurs venus sur site depuis le dÃ©but du confinement.ðŸ™.ðŸ™." 168
    ZONE  66666667676777276677277727676266776726626CA6772672666666666672F998F9982
    NUMR  3FCC12F2145523065E5303520394504505930C5043925404503FE69E5D5E4E0F9F0F9F2
9         GrÃ¢ce Ã&amp;nbsp; eux les opÃ©rations 29

10  CHAR  â˜‘ï¸. essentielles Ã&amp;nbsp; la poursuite de l'activitÃ© 50
    ZONE  E99EB826776676666672CA26627677776762662626676767CA
    NUMR  281F8F05335E495CC530300C100F52359450450C7134969439

11  CHAR  â˜‘ï¸. rÃ©alisables uniquement sur site 39
    ZONE  E99EB827CA66676666727667766667277727676
    NUMR  281F8F02391C9312C5305E9155D5E4035203945
12        "ont pu Ãªtre traitÃ©es.  #Covid_19 #tÃ©lÃ©travail #santÃ© #dÃ©confinement https://t.co/YfhUNYTK9
      98  l"",""2020-05-27 09:19 +0000"",""1167.0"",""23.0"",""0.01970865467009426"",""3.0"",""1.0"",""11.0
     195  "",""1.0"",""0.0"",""0.0"",""6.0"",""0.0"",""0"",""0"",""0"",""0"",""0"",""1"",""1"",""-"",""-"",
     292  ""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-""" 387
13        "1265226495749959681,""https://twitter.com/ACPPLMP/status/1265226495749959681"",""""""Il faudra c
      98  ependant regarder si les Ã©pargnants ont plutÃ´t prÃ©fÃ©rÃ© gonfler leur fonds euros, par sÃ©curi
     195  tÃ©, ou plutÃ´t investi sur des unitÃ©s de compte ou des mandats de gestion pour profiter des opp
     292  ortunitÃ©s liÃ©es Ã&amp;nbsp; la fluctuations des marchÃ©s.""""#UnitÃ©sdecompte ðŸ’°"",""2020-05-26 10:21
     389  +0000"",""638.0"",""7.0"",""0.0109717868338558"",""1.0"",""0.0"",""2.0"",""0.0"",""0.0"",""2.0"",
     486  ""2.0"",""0.0"",""0"",""0"",""0"",""0"",""0"",""0"",""0"",""-"",""-"",""-"",""-"",""-"",""-"",""-
RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+--
     583  "",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-""" 651
14        "1265226494357442561,""https://twitter.com/ACPPLMP/status/1265226494357442561"",""""""La collecte
      98   nette sur les contrats dâ€™assurance vie devrait Ãªtre abondante pour le mois dâ€™avril 2020."""
     195  " @phcrevel @gestionfortune #assurancevie #Ã©pargne ðŸª™ðŸ’°https://t.co/jY4nW5CS1V"",""2020-05-2
     292  6 10:21 +0000"",""725.0"",""11.0"",""0.015172413793103448"",""2.0"",""1.0"",""2.0"",""0.0"",""1.0
     389  "",""0.0"",""5.0"",""0.0"",""0"",""0"",""0"",""0"",""0"",""0"",""0"",""-"",""-"",""-"",""-"",""-"
     486  ",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-""" 565
15        "1264794578751758337,""https://twitter.com/ACPPLMP/status/1264794578751758337"",""ðŸ–Œ #ACPPLAMON

      98  DIALE #Story 1ï¸.âƒ£ Depuis plus de 30 ans, nous accompagnons nos partenaires dans la distributio
    ZONE  44444225767723EB8E8A24677672767726623326672266772666667666667266727677666676726667266266777667766
    NUMR  491C50334F2901F8F233045059300C5304503001E3C0EF530133FD017EFE30EF3001245E19253041E30C104934292549F
     195  n de solutions patrimoniales adaptÃ©es aux besoins de leurs clients. (Re) dÃ©couvrez notre histoi
     292  re ðŸ‘‰https://t.co/sOePG4dTBs #PrendreLaMainSurDemain #AssuranceVie #Epargne https://t.co/rVuYGL
     389  ZSZv"",""2020-05-25 05:45 +0000"",""938.0"",""39.0"",""0.04157782515991471"",""5.0"",""0.0"",""6.
     486  0"",""0.0"",""5.0"",""1.0"",""21.0"",""0.0"",""0"",""0"",""0"",""0"",""0"",""1"",""1"",""-"",""-"
     583  ",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-""
     680  " 680

16  CHAR  "1263007345791172608,""https://twitter.com/ACPPLMP/status/1263007345791172608"",""ðŸ.†L'Alpha Lea
    ZONE  2333333333333333333322267777322776776726662445544527767772333333333333333333322222F98842467662466
    NUMR  21263007345791172608C2284403AFF4794452E3FDF1300CD0F341453F126300734579117260822C220FF6C71C0810C51

      98  gue Table 2020 positionne ACPP LA MONDIALE Gestion d'actifs dans le ðŸ”.10 des 330 sociÃ©tÃ©s de
    ZONE  67625666623333276767666662445524424444444424677666262667667266672662F999332667233327666CA7CA72662
    NUMR  7550412C50202000F3949FEE5013000C10DFE491C5075349FE047134963041E30C500F4D100453033003F393943930450
     195  gestion intervenant sur les marchÃ©s dâ€™actions en France" 253
17        "https://t.co/1HibRbsocs https://t.co/VR8kGoiUv8"",""2020-05-20 07:23 +0000"",""1017.0"",""7.0"",
      98  ""0.00688298918387414"",""1.0"",""0.0"",""2.0"",""0.0"",""1.0"",""0.0"",""3.0"",""0.0"",""0"",""0
     195  "",""0"",""0"",""0"",""0"",""0"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"
     292  ",""-"",""-"",""-"",""-"",""-"",""-"",""-""" 335
18        "1262620248580263936,""https://twitter.com/ACPPLMP/status/1262620248580263936"",""""""L'un des ef
RULE:     ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+--
      98  fets induits du #Covid-19 a Ã©tÃ© l'intensification spectaculaire de l'utilisation du digital dan

     195  s les entreprises."""" #TransfoNum #Digital ðŸ‘¨â€.ðŸ’»ðŸ‘©â€.ðŸ’» https://t.co/mIdJFmPf5m"",""20
    ZONE  72667266776776767222222257667664762246667662F99AE88F99BF99AE88F99B2677773227266264644656362222233
    NUMR  30C5305E425029353E222203421E36FE5D03497941C00F1820D0F2B0F1920D0F2B084403AFF4E3FFD94A6D065D22C2220
     292  20-05-19 05:45 +0000"",""1255.0"",""12.0"",""0.009561752988047808"",""2.0"",""0.0"",""5.0"",""0.0
     389  "",""2.0"",""0.0"",""3.0"",""0.0"",""0"",""0"",""0"",""0"",""0"",""0"",""0"",""-"",""-"",""-"",""
     486  -"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-""" 573
19        "1262292543426965505,""https://twitter.com/ACPPLMP/status/1262292543426965505"",""Tout concourt Ã
      98  &amp;nbsp; la digitalisation dâ€™une profession qui continue Ã&amp;nbsp; sâ€™appuyer sur les compÃ©tences de ses co

     195  nseillers.ðŸ‘¨â€.ðŸ’»" 216
    ZONE  6766666772F99AE88F99B2
    NUMR  E359CC523E0F1820D0F2B2
20        " #coconstruction #digitalbydesign #formation"",""2020-05-18 08:02 +0000"",""1180.0"",""4.0"",""0
      98  .003389830508474576"",""1.0"",""0.0"",""1.0"",""0.0"",""0.0"",""0.0"",""2.0"",""0.0"",""0"",""0""
     195  ,""0"",""0"",""0"",""0"",""0"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",""-"",
     292  ""-"",""-"",""-"",""-"",""-"",""-"",""-""" 333
NOTE: 20 records were read from the infile "C:\Downloads/tweet_archives - Marie.csv".
      The minimum record length was 29.
      The maximum record length was 1132.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds
&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jul 2020 15:46:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668403#M200353</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-10T15:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668404#M200354</link>
      <description>Thank you Tom! I can't have the data, I must use this file &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Fri, 10 Jul 2020 15:55:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668404#M200354</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-10T15:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668522#M200412</link>
      <description>Hello!&lt;BR /&gt;Do you know some options to import this csv file with Libname XLSX? &lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Sat, 11 Jul 2020 07:16:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668522#M200412</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-11T07:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668556#M200433</link>
      <description>&lt;P&gt;A CSV file is not an XLSX file.&amp;nbsp; If they can send you an XLSX file it would be easier to deal with.&lt;/P&gt;
&lt;P&gt;You could try seeing if Excel could do a better job of loading the file, but it does not look like a valid CSV file at all, so I doubt that Excel will have any better luck with it.&amp;nbsp; But if you could get it loaded into a XLSX file then you could read that file with the XLSX engine.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 13:10:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668556#M200433</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-11T13:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668562#M200438</link>
      <description>Thank you Tom!&lt;BR /&gt;Unfortunately I can’t have the data in xlsx format.  &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Sat, 11 Jul 2020 14:08:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668562#M200438</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-11T14:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668566#M200439</link>
      <description>&lt;P&gt;So it looks like something in your process took your original CSV (with the line breaks in it) and added quotes around every line.&amp;nbsp; Those can be removed by either using DEQUOTE() function or reading the lines using DSD option.&lt;/P&gt;
&lt;P&gt;But some of the embedded line breaks make lines without any commas and that is making figuring out which line breaks are the real end of line difficult.&lt;/P&gt;
&lt;P&gt;Fortunately the first value on each row is a long number, so you can use that fact to do a better job of finding where the real lines start.&lt;/P&gt;
&lt;P&gt;So here is a data step to convert your original file into a readable file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename fixed temp;
data _null_;
   infile original dsd truncover lrecl=32767;
   file fixed lrecl=1000000;
   input line :$char32767. ;
   if notdigit(scan(line,1,','))
      and length(scan(line,1,','))&amp;gt;12 then put '|' @;
   else put;
   len=lengthn(line);
   put line $varying32767. len @;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now you can read the file.&amp;nbsp; You could even use PROC IMPORT to read the file, although the column headers do not make good variable names and PROC IMPORT will make its normal mistakes like treating the first column as a number instead of string.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile=fixed dbms=csv out=want replace ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47065i7B6F70BD0958A812/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 14:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668566#M200439</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-12T14:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668571#M200441</link>
      <description>Thank you very much Tom!&lt;BR /&gt;Yes, some application add the quote to my CSV file.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 11 Jul 2020 15:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/668571#M200441</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-11T15:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671306#M201564</link>
      <description>Hello Tom,&lt;BR /&gt;I have a little question: how SAS interpret the symbol 'I' while proc import.&lt;BR /&gt;If I understood correctly the data are not truncated because of 'I', but I can't understand the choice of 'I'.&lt;BR /&gt;&lt;BR /&gt;Thank you very much!</description>
      <pubDate>Wed, 22 Jul 2020 08:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671306#M201564</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-22T08:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671357#M201587</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286185"&gt;@SASdevAnneMarie&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hello Tom,&lt;BR /&gt;I have a little question: how SAS interpret the symbol 'I' while proc import.&lt;BR /&gt;If I understood correctly the data are not truncated because of 'I', but I can't understand the choice of 'I'.&lt;BR /&gt;&lt;BR /&gt;Thank you very much!&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It is not there for SAS to understand, just for humans.&amp;nbsp; I choose that character to replace the end of line characters just in case there was some need to know where they used to be. I picked the pipe character as it is unlikely to be in your actual data. You could use a space or not write anything at all to replace the end of line characters that are being removed.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 12:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671357#M201587</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-22T12:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671393#M201614</link>
      <description>Thank you very much!&lt;BR /&gt;I understood &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 22 Jul 2020 14:22:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671393#M201614</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-22T14:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671409#M201619</link>
      <description>Sorry, I still can't understand &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; why using filename fixed temp (after put the data to this file), proc import works correctly. :), but it doesn't works with csv. &lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Wed, 22 Jul 2020 14:41:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671409#M201619</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-22T14:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671414#M201623</link>
      <description>&lt;P&gt;The issue is you have corrupted file.&amp;nbsp; It has both extra end of line characters embedded in the middle of some of the lines and extra quotes (for some unexplained reason).&amp;nbsp; The purpose of the data step is to create a version of the file that has both issues corrected.&amp;nbsp; Once that is done then the corrected file can be read.&amp;nbsp; One way to read the file is to use PROC IMPORT.&amp;nbsp; But you could also just write your own data step to read the file.&amp;nbsp; You don't have to make a temporary file.&amp;nbsp; You could instead create a permanent file somewhere.&amp;nbsp; One simple way would be to change the FILENAME statement to point to an actual filename that you could write to instead of using the TEMP engine to generate a temporary file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data step itself if pretty simple.&amp;nbsp; It reads one line (removing the extra quotes because it is using the DSD option).&amp;nbsp; Then it decides whether it is the start of a new line of data based on the first value on that line.&amp;nbsp; When it is a new record it writes the end of line for the previous record.&amp;nbsp; Otherwise it writes a pipe character to replace the end of line that is going to be removed.&amp;nbsp; Then it writes the line (removing any trailing blanks).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have specific questions about the data step please ask.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 14:57:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671414#M201623</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-22T14:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671536#M201675</link>
      <description>Thank you very much for your quick answer.&lt;BR /&gt;I can’t understand just how «&amp;nbsp;&amp;nbsp;Otherwise it writes a pipe character to replace the end of line that is going to be removed.&amp;nbsp;» : ) For other points it’s OK, I understood.&lt;BR /&gt;Thank you very much!</description>
      <pubDate>Wed, 22 Jul 2020 18:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671536#M201675</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-22T18:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671654#M201718</link>
      <description>&lt;P&gt;Here is the step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   infile original dsd truncover lrecl=32767;
   file fixed lrecl=1000000;
   input line :$char32767. ;
   if notdigit(scan(line,1,','))
      and length(scan(line,1,','))&amp;gt;12 then put '|' @;
   else put;
   len=lengthn(line);
   put line $varying32767. len @;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The IF/THEN/ELSE is what is deciding whether or not to write an end of line.&amp;nbsp; When the condition is true it writes the | without writing an end of line.&amp;nbsp; Otherwise it writes just the end of line.&amp;nbsp; Then it writes the current line it just read, but without an end of line.&amp;nbsp; The trailing at sign on the PUT statement is what stops it from writing the end of line.&amp;nbsp;Note that the last line written by a data step will automatically get an end of line added.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The test in the IF statement is checking whether the beginning of the current line (up to the first comma) does NOT look like a valid value for your first column.&amp;nbsp; This is the most likely place where you might need to adjust the logic for a different version of the file.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 02:45:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671654#M201718</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-23T02:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Import the varaible with a line break</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671737#M201749</link>
      <description>Thank you for your quick answer, Tom!&lt;BR /&gt;This what I supposed: with the null put I continue writing on the line that is being held by a previous PUT statement with a trailing @ (in case of nodigit values on the beginnig of line).&lt;BR /&gt;&lt;BR /&gt;Yes, thank you, I see, I'm going to replace length(scan(line,1,','))&amp;gt;12 by length(scan(line,1,','))&amp;gt;3, beacause I have a shorter words in other files.&lt;BR /&gt;Sorry for disturbing with all my questions :slightly_smiling_face:&lt;BR /&gt;Have a nice day!&lt;BR /&gt;Marie</description>
      <pubDate>Thu, 23 Jul 2020 09:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-the-varaible-with-a-line-break/m-p/671737#M201749</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2020-07-23T09:59:55Z</dc:date>
    </item>
  </channel>
</rss>

