IBM / xmlservice

XML-based interface for accessing IBM i resources
https://xmlservice.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
35 stars 18 forks source link

[feature] job name will always be XMLSERVICE #59

Open NattyNarwhal opened 2 years ago

NattyNarwhal commented 2 years ago

https://github.com/IBM/xmlservice/blob/20800d6be4aa4748b6eb226896c899c9c7e752ab/src/plugipc.rpgle#L1496

Because dir+pgm will always expand to /libname.LIB/XMLSERVICE.PGM, and SPAWN_SETJOBNAMEARGV_NP gets set, this will always make a job of the name XMLSERVICE when spawning. A user asks if this could be customizeable. My guess is to set argv0 to whatever, but still pass what is currently argv0 as the first parameter to spawn.

jimoibm commented 2 years ago

Those were defined in src\plugconf.rpgle.in

     D PLUGSPNPGM      c                   const('XMLSERVICE.PGM')
     D PLUGSPNDIR      c                   const('/QSYS.LIB/@LIBRARY@.LIB/')

Change to what you want and rebuild.

kadler commented 2 years ago

Personally, I think XMLSERVICE is too oriented around compile-time customization. This may have made sense long ago before IBM started shipping it. Since we did start shipping it, we've encouraged users to use that version of XMLSERVICE (all the toolkits default to this version and the Node.js doesn't even let you change it IIRC). This means that options which are compile-time only may as well not even be there.