Skip to content

feat: Support DS as a return type for program calls #138

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
abmusse opened this issue Mar 7, 2020 · 0 comments · Fixed by #217
Closed

feat: Support DS as a return type for program calls #138

abmusse opened this issue Mar 7, 2020 · 0 comments · Fixed by #217
Labels
enhancement New feature or request
Milestone

Comments

@abmusse
Copy link
Member

abmusse commented Mar 7, 2020

Is your feature request related to a problem? Please describe.

Yes original issue was #74

Hey there,
I'm still looking for a solution to this issue, or for some help or documentation.
I know, this issue has now been automatically closed. Maybe someone can have a new look on it anyway?

Originally posted by @patrickhrastnik in #74 (comment)

From what I can tell, this is not currently supported. addReturn always uses a <data> element, not a <ds>: https://github.com/IBM/nodejs-itoolkit/blob/master/lib/ProgramCall.js#L107

That is correct looks like it only expects a simple data type.

According to xml service docs

return tag does support returning a DS.

      * ---
      * pgm return
      * <return>values (see <ds> and <data>)</return>
      * ---
      * return      - return tag
      *  values     - (see ds or data)
      * options
      *  na         - no options
      *
      * ---

Add return should be able to return DS though.

We should have feature request issue for this.

Originally posted by @abmusse in #74 (comment)

Describe the solution you'd like

Support DS as a return type for program calls

@abmusse abmusse added the enhancement New feature or request label Mar 7, 2020
@kadler kadler added this to the Version 1.0 milestone Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
2 participants