xmlservice icon indicating copy to clipboard operation
xmlservice copied to clipboard

[feature] job name will always be XMLSERVICE

Open NattyNarwhal opened this issue 2 years ago • 2 comments

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.

NattyNarwhal avatar Apr 01 '22 19:04 NattyNarwhal

Those were defined in src\plugconf.rpgle.in

     D PLUGSPNPGM      c                   const('XMLSERVICE.PGM')
     D PLUGSPNDIR      c                   const('/QSYS.LIB/@[email protected]/')

Change to what you want and rebuild.

jimoibm avatar Jun 28 '22 07:06 jimoibm

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.

kadler avatar Jun 28 '22 13:06 kadler