BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Ronein
Meteorite | Level 14

Hello
I am creating a data set that has long characters.
It is in Hebrew language.
I don't  know why in the output data set I have only 3 rows while I entered 6 rows

 


Data tbl;
informat x $200.;
input x $200.;
cards;
אאאאא אאאאא
הההההה דדדדד דד בב
כככככ ררררר ייי ככ
ייייי סססס ככ
ייי עעע כככ+גגגג  גג
כככעי גגגג
;
run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
novinosrin
Tourmaline | Level 20

Hi @Ronein  That's happening bcoz of automative FLOWOVER default in reading variable length records that makes SAS to read the next dataline into the input buffer to read until the specified length defined in the informat. To override that, you need TRUNCOVER

 


Data tbl;
infile cards truncover;
informat x $200.;
input x $200.;
cards;
אאאאא אאאאא
הההההה דדדדד דד בב
כככככ ררררר ייי ככ
ייייי סססס ככ
ייי עעע כככ+גגגג  גג
כככעי גגגג
;
run;

BTW, Shalom!  I love Hebrew!

View solution in original post

2 REPLIES 2
novinosrin
Tourmaline | Level 20

Hi @Ronein  That's happening bcoz of automative FLOWOVER default in reading variable length records that makes SAS to read the next dataline into the input buffer to read until the specified length defined in the informat. To override that, you need TRUNCOVER

 


Data tbl;
infile cards truncover;
informat x $200.;
input x $200.;
cards;
אאאאא אאאאא
הההההה דדדדד דד בב
כככככ ררררר ייי ככ
ייייי סססס ככ
ייי עעע כככ+גגגג  גג
כככעי גגגג
;
run;

BTW, Shalom!  I love Hebrew!

Ronein
Meteorite | Level 14

Thank you so much! Let's start learn Hebrew...lol

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 489 views
  • 1 like
  • 2 in conversation