PRX provides a convenient method for modularizing logic by outsourcing it into separate members. With the INCLUDE
-statement, developers can seamlessly integrate the content of external members into their rule set, enhancing code organization and reusability. Included members are accessed from the PRXINCL DD
, which must be at runtime to ensure proper integration.
First and foremost, we need to define the library where our include members are located. This is typically located within the JCL.SKELS
data set, as ProcMan utilizes it to generate the job for the process.
Then, we can create an include member in that library.
In our main rule set, we can then use the variable of our include member.
The only limitation of INCLUDE
-statements is that opened blocks have to be closed in their respective members. It is not possible to e.g. open an IF
-statement in one member and close it in the parent or another member.