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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.