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.
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.
I'm talking about the FILE. Not the printed output or how it looks when opened in WORD.
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:
specifies the record format of the external file.
Interaction | In 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 environment | Values for record-format are dependent on the operating environment. For more information, see the SAS documentation for 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
If I was right, RTF is just a stream file , it doesn't have LRECL , just one row .
I suppose it could be but SAS ODS RTF writes RECFM=V records.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.