xmlservice icon indicating copy to clipboard operation
xmlservice copied to clipboard

Add support for Free Format parameter declaration

Open patrickhrastnik opened this issue 5 years ago • 3 comments

Hi!

In https://github.com/IBM/nodejs-itoolkit/issues/75 I suggested to add support for free format parameter syntax ("char(10)" instead of "10A"). @ThePrez suggested to open an issue here.

This may be something related to #24 - but as far as I've seen, #24 is more about changing this packages' source to total free syntax.

patrickhrastnik avatar Aug 07 '19 05:08 patrickhrastnik

Agreed with what @kadler said in itoolkit#75. Current xmlservice is more than a low level component that is fledged with lots of features. Not sure how many of them are still used.

Anyway supporting new format 'type' can be done in

https://github.com/IBM/xmlservice/blob/e9cfced8a9370f7e206f5e97d50b1452eaca15d4/src/plugile.rpgle#L2408

This procedure might have a if leg ahead to serve the new format to have below vars set up correctly ... https://github.com/IBM/xmlservice/blob/e9cfced8a9370f7e206f5e97d50b1452eaca15d4/src/plugile.rpgle#L2412-L2414

jimoibm avatar Dec 08 '20 08:12 jimoibm

I don't think it makes much sense to invest in the format of the underlying transport format. How many users use XMLSERVICE directly vs using a toolkit which hides all this from the user?

kadler avatar Dec 08 '20 16:12 kadler

Agree with @kadler again :-) FWIW from customer issues, majorities are still in fixed format or mixed format. I will hold this and consider free format in future if this is really necessary.

jimoibm avatar Dec 09 '20 02:12 jimoibm