what is the use of LRECL option.

Answer Posted / solasa

LRECL= option—Specifies the logical record length, in bytes.

This option is used when the records in a file are
longer than 256 bytes (on ASCII platforms). The default
input buffer is 256 bytes.

Records that exceed this length are truncated when they are
read.

Setting the LRECL= option to a greater length ensures that
the input buffer is long enough for the entire record to be
read. This is usually not an issue on EBCDIC platforms
because the data control block specifies the logical record
length for SAS.

As shown in the following example, the LRECL=
statement option in an INFILE statement overrides the LRECL=
system option, if it is used.


infile 'C:\mydata\test.dat' dsd truncover lrecl=4096;

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of trailing @ and @@? How do you use them?

777


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

809


For what purposes have you used sas macros? : sas-macro

750


What are the implications?

1384


what is SAS OPTIMIZATION?

2029


what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming

874


How to specify variables to be processed by the freq procedure?

827


Mention sas system options to debug sas macros.

896


how to do user inputs and command line arguments in sas?

2654


Explain why double trailing @@ is used in input statement?

786


What is the difference between match merge and one to one merge?

901


Can you execute macro within another macro? : sas-macro

736


describe about metadata object? : Sas-di

811


Describe what are the different levels of administrative users in sas? : sas-grid-administration

785


In ARRAY processing, what does the DIM function do?

904