Re: PCML Structure length
Pete Helgren <[email protected]> Fri, 5 Aug 2022 14:24:48 -0500
| Newsgroups | gmane.comp.lang.as400.java |
|---|---|
| Message-ID | <[email protected]> |
Thanks Richard, I keep thinking to myself: There has *got* to be an easier way to call C API's from Java....nope! I might have leaned the RPG direction except the core application is a Java Servlet so if I wrapped with RPG it would be Java-->RPG-->C API , too Rube Goldberg for me and too hard to debug. So, I *guessed* at an answer that will probably come back to haunt me and that is to just add up each length of each member of the structure and use that. Turning on tracing in the PCML helped as I could see the variables and the relative lengths. Currently, it's all working. But, at some point I'd love to go back with just the direct API call from Java (which doesn't currently work and is based on code from Jesse Gorzinski). The PCML is OK for now. But, if someone has the *correct* way to get the structure size, chime in. I may have just a "feature" waiting to fail in my current approach.... Pete Helgren www.petesworkshop.com GIAC Secure Software Programmer-Java AWS Certified Cloud Practitioner Microsoft Certified: Azure Fundamentals Twitter - Sys_i_Geek IBM_i_Geek On 8/5/2022 12:09 PM, Richard Schoen wrote: > Just a thought if you don't get PCML to work.... > > You could wrap the call to QYCDRNWC in an RPG program if you can't get it to work and then simplify your parms perhaps. > > Regards, > Richard Schoen > Web:http://www.richardschoen.net > Email:[email protected] -- This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: [email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/java400-l or email: [email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/java400-l. Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com