Ah ha! Ya know, I asked our C people (who are not mainframe folks) about that and was assured "Oh, it's some big number". I should have insisted we check!
A doc suggestion: while it says it's NL_ARGMAX, it doesn't say where that's defined or anything. Seems like it might give a hint? Thanks for the response, Linda. I feel a lot better about this--it seemed like a very basic bug to not have been caught! ...phsiii -----Original Message----- From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Linda Chui Sent: Thursday, October 2, 2025 10:14 PM To: [email protected] Subject: Re: Anyone using XL C? hi, As was said others, this is a C runtime issue. As seen by the runtime library reference (https://www.ibm.com/docs/en/zos/3.2.0?topic=functions-fprintf-printf-sprintf-format-write-data), the maximum number of positional arguments is NL_ARGMAX. Looking at limits.h, you can see this value is 9 and hence the library is doing what it expected. You can always request this limit be raised through the IBM Idea’s forum, but it doesn’t look like a bug. Hope this helps, z/OS XL C/C++ Compiler Team ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
