OpenTP1 Version 7 Programming Guide

[Contents][Index][Back][Next]

2.8 Journal data editing

A file to which the execution result of the jnlrput command is redirected can be edited from a UAP by using a function. Only an API in COBOL language can support journal data editing. There is no API in C language for this facility.

To call the function from a UAP:

  1. Open the jnlrput output file with CBLDCJUP ('OPENRPT').
  2. Enter journal data with CBLDCJUP ('RDGETRPT'). Enter journal data one for each journal data type. Call CBLDCJUP ('RDGETRPT') repeatedly until required journal data is entered completely.
  3. Edit data in UAP processing.
  4. Close the jnlrput output result file with CBLDCJUP ('CLOSERPT').

Only the UAP that handles offline work can access the output file of the jnlrput command. Other UAPs are not permitted to access the jnlrput output file.

The journal data editing facility can be used only with TP1/Server Base. APIs for journal data editing cannot be used with TP1/LiNK.

The figure below shows journal data editing.

Figure 2-54 Journal data editing

[Figure]