FAQ

What is PCML?

Program Call Markup Language: an XML description of a program's parameters, their types and lengths. It was created so that other languages can call IBM i programs without hand-written conversion code.

How do I get the PCML for my program?

Ask the compiler. Add two parameters to your compile command:

CRTBNDRPG PGM(MYLIB/ORDSTATUS)
          SRCFILE(MYLIB/QRPGLESRC)
          PGMINFO(*PCML)
          INFOSTMF('/home/me/ordstatus.pcml')

The file in the IFS is what slay400 reads. To embed the PCML in the program object as well, add this to your source:

ctl-opt pgminfo(*pcml : *module : *dclcase);

*DCLCASE keeps the mixed-case names you used in your declarations, which gives nicer API field names.

Does it work for service programs, SQLRPGLE and COBOL?

Yes. The same keyword works with CRTBNDRPG, CRTRPGMOD and CRTSQLRPGI. The ILE COBOL compiler has an equivalent option.

Do I have to change my program?

No. PCML describes the interface you already have. Declaring read-only parameters as CONST is a good habit and makes the generated PCML more precise, but it is optional.

Most of my parameters come out as inputoutput. Is that a problem?

No, it is normal: parameters passed by reference can go both ways, and the compiler cannot know your intent. In slay400 you state the direction once, in a small overlay file next to the PCML. The PCML itself is never edited.

How is slay400 different from IBM Integrated Web Services (IWS)?

IWS is IBM's own way to expose an ILE program as a web service from its PCML, and it ships with the operating system. The two differ in where they run and how they are operated.

Comparison of IBM Integrated Web Services and slay400
Comparison pointIWSslay400
Where it runsOn the IBM i, in an integrated web services server based on WebSphere LibertyOutside the IBM i, as a container; it calls programs over the network
How an API is definedPer service, through the Web Administration wizard or a deployment scriptFiles in Git: the PCML plus a reviewed overlay
Change processRedeploy the service on each serverPull request with validation, contract diff and tests; versioned bundle loaded without restart
Environments and tenantsOne server configuration per environmentOne bundle for every environment; tenants and environments are configuration
Parameter direction, real types, error fieldsSet during deploymentDeclared in the overlay and versioned
AI agentsNot includedMCP server generated from the same contract (Enterprise and SaaS)

If you already run IWS and it serves you well, keep it. slay400 is for teams that want their RPG APIs managed like the rest of their APIs.