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 data governance? : Sas-di

619


Are you involved in writing the inferential analysis plan? Tables specfications?

2103


What is the command used to find missing values?

584


What function CATX syntax does?

683


If you use a symput in a data step, when and where can you use the macro variable? : sas-macro

599






Differentiate between sas functions and sas procedures.

635


What would you change about your job?

1918


Differentiate between format and informat? : sas-grid-administration

574


what are some good sas programming practices for processing very large data sets? : Sas programming

507


Describe the function and untility of the most difficult SAS macro that you have written.

1718


What is the difference between the proc sql and data step?

653


What is the difference between one to one merge and match merge? Give an example.

561


How can sas program be validated?

571


what is the difference between unique key and primary key? : Sas-di

587


what is slowly changing dimension? : Sas-di

614