Hi, I am running SAS 9.4 on z/OS 2.1. SAS INFILE statement has constructs to read RAW data in fixed or variable length records. If I want to read a fixed length record, I just code - INFILE ddname ; If I want to read a variable length record, I have to code - INFILE ddname LRECL=maxlength MISSOVER PAD ; I am wondering whether it would be possible to determine at runtime - a) What attributes a dataset has (the ddname) - whether it is fixed, or variable (RECFM=FB or VB), and the LRECL of the file b) And using the attributes to determine which INFILE statement to be executed? I know from assembly programming (I have 40+ years of z/OS systems programming knowledge) - it is possible to get these information from RDJFCB macro or after you open the file, the fields are in the DCB of that file. I wonder whether it is possible to get these information back to a SAS program. If this is a traditional programming language (PL/1, COBOL, Assembler, etc) - the programming code to handle a Fixed or Variable records is the same. The OS takes care of that (we merely have to tell the DCB what the RECFM is - FB or VB). Unfortunately - I can't say the same thing for SAS. Thank you.
... View more