what is the use of LRECL option.



what is the use of LRECL option...

Answer / 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

More SAS Interview Questions

how does sas handle missing values in a merge? : Sas programming

0 Answers  


name few built in sas transformation in DI studio ?

4 Answers   SAS,


how we can create optional or required parameters in SAS macro...

5 Answers   TCS,


Differences between where and if statement?

0 Answers  


Which are the statements whose placement in the data step is critical?

0 Answers  






Tell e how how dealt with..

0 Answers   Wipro,


what are the three main credit bureau names

1 Answers   Synchrony Financial,


There is a field containing a date. It needs to be displayed in the format "ddmonyy" if it's before 1975, "dd mon ccyy" if it's after 1985, and as 'Disco Years' if it's between 1975 and 1985. How would you accomplish this in data step code? Using only PROC FORMAT

8 Answers   D&B,


What is the difference between order and group variable in proc report?

0 Answers  


What are the table names in oracle database...?

0 Answers   HSBC,


Have you ever linked SAS code, If so, describe the link and any required statements used to either process the code or the step itself?

4 Answers  


how to import XTP files into SAS datasets?

1 Answers   Barclays, Institute For Plasma Research,


Categories