BookmarkSubscribeRSS Feed
LineMoon
Lapis Lazuli | Level 10

hello expert

please,  I would like To the impact of the logiciel record, or Will incraese the numéro of the bytes.

data _null_;

 

file  "r\fil.txt" lrec=1000;

run;

 

2 REPLIES 2
LinusH
Tourmaline | Level 20

Two ways of exploring this:

RTM:

http://support.sas.com/documentation/cdl/en/hostunx/69602/HTML/default/viewer.htm#p0upngkius4n84n17w...

 

Test yourself, be using different lengths in your program.

Data never sleeps
mnjtrana
Pyrite | Level 9

Hi @LineMoon

 

My 2 cents here:

 

If i understood correclty you want to ask, if there will be a difference in the size of the file created, if you use LRECL and if you don't.

 

Please note that, if you don't use LRECL= in the file ouput statement, then sas by default uses the LRECL=32767 and creates the file.

 

if your data has record length less than 1000 and you use lrecl=1000, then there won't be any difference in size, cause its the logical length and not physical length , which denotes the maximum bytes it can store in a row.

 

Thanks,

Manjeet


Cheers from India!

Manjeet

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 2805 views
  • 0 likes
  • 3 in conversation