The SAS Output Delivery System and reporting techniques

ODS RTF FILE attribute LRECL

Reply
Respected Advisor
Posts: 3,777

ODS RTF FILE attribute LRECL

What is the MAXIMUM LRECL that ODS RTF will use when it writes to the file?

Other than "measuring" is there a way to determine the LRECL of a RTF file.

My limited testing shows that assigning a FILEREF with LRECL and using ODS FILE=fileref ...; LRECL is ignored.  My test may be flawed.

Super User
Posts: 10,484

Re: ODS RTF FILE attribute LRECL

I don't believe LRECL has any effect on any of the ODS printer or markup destinations. Line display size is handled by the RTF specification and considers fontsize and destination width (page dimension) and margin settings as far as I can tell.

The ODS tagsets.rtf gives a little more control for appearance but may not suit your specific need.

Respected Advisor
Posts: 3,777

Re: ODS RTF FILE attribute LRECL

I'm talking about the FILE.  Not the printed output or how it looks when opened in WORD.

SAS Super FREQ
Posts: 8,742

Re: ODS RTF FILE attribute LRECL

Hi:

  I believe that the FILE= option for ODS RTF writes to the operating system based on the OS settings. In the FILENAME doc, SAS(R) 9.4 Statements: Reference, Fourth Edition it says that LRECL is based on the RECFM:

Options 

RECFM=record-format

specifies the record format of the external file. 

InteractionIn SAS 9.4, the default value for the global LRECL system option is 32767. If you are using fixed-length records (RECFM=F), the default value for LRECL is 256. 
Operating environmentValues for record-format are dependent on the operating environment. For more information, see the SAS documentation for your operating environment. 

Operating Environment Options 

Operating environment options specify details, such as file attributes and processing attributes, that are specific to your operating environment. 

Operating Environment Information: For a list of valid specifications, see the SAS documentation for your operating environment.

So this may be a question to ask of Tech Support. On page 2 of this document: http://support.sas.com/rnd/base/ods/templateFAQ/MVSODS3.pdf it explains that

"The recommended DCB information for creating files on Z/OS is RECFM=VB, LRECL=8196 and BLKSIZE=27998 for non-PDF files." (page 2). Of course, that is specific to Z/OS, so Tech Support would be your best bet if you are not asking about Z/OS or you want to find out whether those limits still apply.

cynthia

Super User
Posts: 9,676

Re: ODS RTF FILE attribute LRECL

If I was right, RTF is just a stream file , it doesn't have LRECL , just one row .

Respected Advisor
Posts: 3,777

Re: ODS RTF FILE attribute LRECL

I suppose it could be but SAS ODS RTF writes RECFM=V records.

Ask a Question
Discussion stats
  • 5 replies
  • 512 views
  • 0 likes
  • 4 in conversation