Skip to content

Add PGMINFO option to command strings in package.jso - #3442

Closed
anandsha20 wants to merge 3 commits into
codefori:masterfrom
anandsha20:master
Closed

Add PGMINFO option to command strings in package.jso#3442
anandsha20 wants to merge 3 commits into
codefori:masterfrom
anandsha20:master

Conversation

@anandsha20

@anandsha20 anandsha20 commented Sep 10, 2026

Copy link
Copy Markdown

Changes

Why Needed:
When adding a service program or RPG program to an IWS server, a PCML file is required. Currently, generating the PCML file is not included by default in the compile commands, which makes it harder to add newly compiled or updated programs to IWS.

Additonal Info:
According to IBM documentation, specifying PGMINFO(*PCML *MODULE) causes the compiler to generate an XML (PCML) description of the program's parameter interface and embed it inside the compiled module object (*MODULE). When that module is later bound into a *PGM or *SRVPGM, the PCML travels with it into that object too.

This change will not cause any issue with non-IWS programs

How to test this PR

Checklist

  • have tested my change
  • have created one or more test cases
  • updated relevant documentation
  • Remove any/all console.logs I added
  • have added myself to the contributors' list in CONTRIBUTING.md

Why Needed:
When adding a service program or RPG program to an IWS  server, a PCML file is required. Currently, generating the PCML file is not included by default in the compile commands, which makes it harder to add newly compiled or updated programs to IWS.

Additonal Info:
According to IBM documentation, specifying PGMINFO(*PCML *MODULE) causes the compiler to generate an XML (PCML) description of the program's parameter interface and embed it inside the compiled module object (*MODULE). When that module is later bound into a *PGM or *SRVPGM, the PCML travels with it into that object too.

This change will not cause any issue with non-IWS programs
…thPgminfo

Add PGMINFO option to command strings in package.json
@SanjulaGanepola

Copy link
Copy Markdown
Member

This is not a parameter which I have used before, but given the description this sounds like it is applicable for specific use cases as you mention for IWS. Thus, this to me looks like it should be configured by the user if needed in their actions rather than in the defaults shipped with the extension.

@sebjulliand

Copy link
Copy Markdown
Member

Sorry @anandsha20 but @SanjulaGanepola is right. Actions are meant to be customized by the users to fit their needs.
PGMINFO is only used when needing the PCML to deploy in IWS, which is not the default use case for a majority of users.
This is typically something users will add if needed in their actions. It doesn't belong in the actions shipped by default with the extension.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants