PATH_MAX on z/OS is 1023. This is documented in lots of error messages and BPX 
assembler services. 

> On 3 Dec 2020, at 7:16 am, Charles Mills <charl...@mcn.org> wrote:
> 
> I have some code that compiles both under Windows Visual Studio and z/OS
> XLC.
> 
> In Windows the maximum length of a file path is defined by _MAX_PATH and
> __MAX_PATH (I guess MS thinks two macros are better than one).
> 
> What is the equivalent macro for XLC? Failing that, what *is* the maximum
> path length so I can define my own macro?
> 
> Posix defines PATH_MAX and I see references to it in the z/OS doc but it
> does not seem to be defined for my compile. How do I pick that up? And yes,
> I have
> 
> #define _XOPEN_SOURCE_EXTENDED 1
> #include <stdlib.h>
> 
> z/OS V2R4
> 
> Thanks,
> 
> Charles 
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to