Dear community,
How could I get the values of RECFM and LRECL of an arbitrary file on Unix.
I know that on Windows I could simply use foptname function but on Unix these options are not available.
Thank you in advance!
UNIX (like Windows) does not have the concept of file organization, this is strictly a feature of older mainframe systems like z/OS (MVS, previously OS/360). To UNIX and Windows, a file is simply a stream of bytes.
Therefore the FINFO function cannot give you this information, as it does not exist.
For the purpose of reading a specially formatted file, the programmer needs to supply these parameters, and for this he/she needs the documentation of the fiie.
UNIX (like Windows) does not have the concept of file organization, this is strictly a feature of older mainframe systems like z/OS (MVS, previously OS/360). To UNIX and Windows, a file is simply a stream of bytes.
Therefore the FINFO function cannot give you this information, as it does not exist.
For the purpose of reading a specially formatted file, the programmer needs to supply these parameters, and for this he/she needs the documentation of the fiie.
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
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.
Ready to level-up your skills? Choose your own adventure.