I would draw your attention to the __LIBREL__ and __TARGET_LIB__ macros (https://www.ibm.com/docs/en/zos/3.1.0?topic=cpm-general-macros) and the __librel() library function (https://www.ibm.com/docs/en/zos/3.1.0?topic=reference-library-functions). It might be better to use one of these, depending on the effect you want to achieve.
I would also note that the ftime() function and timeb structure are deprecated. You are better off using time64(), which has been available since z/OS 2.1 (or possibly earlier), then you wouldn't need to test the operating system/library level. Regards Andrew. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN