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

if a variable contain dates like "2015/01"---"2015/12" (yymm) ,How to add day to those dates,if them month is jan then 31 if the month is feb then 28 so on ...

0 Answers   Accenture,


what is Business Intelligence?

3 Answers   CitiGroup,


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

0 Answers  


libname deepak 'C:\SAS Files'; proc format; invalue convert 'A+' = 100 'A' = 96 'A-' = 92 'B+' = 88 'B' = 84 'B-' = 80 'C+' = 76 'C' = 72 'F' = 65; data deepak.grades; input ID $3. Grade convert.; *format Grade convert. ; datalines; 001 A- 002 B+ 003 F 004 C+ 005 A ; proc print data = deepak.grades; run; I get the following output Obs ID Grade 1 001 . 2 002 . 3 003 . 4 004 . 5 005 . I don’t understand why Grade shows up as a missing value. Everything seems fine, including ID $3. Now, in case I use ID : $3. Or use column input, I get the desired output. Kindly help Deepak

7 Answers  


If you?re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?

1 Answers  






What is the order of evaluation of the following operators + - * / ** () ???

2 Answers  


explain about various caches available in data integrator? : Sas-di

0 Answers  


What statement do you code to tell SAS that it is to write to an external file? What statement do you code to write the record to the file?

2 Answers   Accenture,


Hi... this is chandu, did MSc Microbiology, trying to get job in SAS tool, PLZ Tell me whether IT industries will give consider my education to gain a job....?

2 Answers  


if you have 365 no of data set and each one having different variable from each other. how will you read by creating macros and create a single data set.

2 Answers  


How would you invoke a macro? : sas-macro

0 Answers  


what is the prob plot in clinical domain

1 Answers   TCS,


Categories