Message services
PASE for i signals and ILE signals are independent, so it is not possible to directly call a handler for one signal type by raising the other type of signal.
You can use the PASE for i Qp2SignalPase() API to post corresponding PASE for i signals for any ILE signal that you receive. The QP2SHELL() program and the PASE for i fork() function always set up handlers to map every ILE signal to a corresponding PASE for i signal.
The system automatically converts any IBM® i exception message sent to the program message queue of a call running the Qp2RunPase(), Qp2CallPase(), or Qp2CallPase2() API to a corresponding PASE for i signal. An PASE for i application can therefore handle any IBM i exception by handling the PASE for i signal that the system converts it to.
PASE for i provides the following runtime functions that give you direct control over IBM i message handling:
- QMHSNDM
- QMHSNDM1
- QMHSNDPM
- QMHSNDPM1
- QMHSNDPM2
- QMHRCVM
- QMHRCVM1
- QMHRCVPM
- QMHRCVPM1
- QMHRCVPM2
IBM i message support
IBM i provides message support in a variety of contexts:
- Job logs
- Your job log contains any messages issued by the IBM i operating system or your application while the job is running or being compiled. To look at a job log, type DSPJOBLOG on a command line. When the Display Job Log display screen appears, press F10 (Include detailed messages from the Command Entry display), followed by Shift + F6. The Display All Messages display appears and shows the most recent messages. To view the details of any particular message, move the cursor to the message and press F1 (Help).
- Work with active jobs (WRKACTJOB) command
- The Work with Active Jobs (WRKACTJOB) command is useful for examining jobs and job stacks on the IBM i operating system.