ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Get Journal Activity in "Real Time"

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Get Journal Activity in "Real Time"

    Does anyone know of a method to get file Inserts & Updates in "Real Time" so they can be sent to a system outside the IBMi, like to a REST API ?

  • #2
    I worked 5 years back on this kind of requirement.. There were PFs/DDL tables from ibm i which needed data copy to MS SQL server in realtime..
    what was done, as required by client is to have a separate library in ibm i with the set of file structures which required data migration and triggers were applied to the production library files which called one program. The behavior of that program was to write all generated data set along with the file name into a staging table.
    another program was there which ran as NEP batch job, which read the data in staging file, segregated the data set based on columns from the mentioned table using syscolumns, and inserted/updated in the separate library files. And MS SQL job just processed that data from the separate library files into their DB.

    Segregation of data was done through the sample logic that you can find in this repository in github.

    to push field set data in structured format. Contribute to AdarshPradhan03/DynamicTriggerData development by creating an account on GitHub.


    you can also find code samples here -

    creating dynamic sql statements in runtime in a variable - AdarshPradhan03/dynamic-query-builder


    I hope you find this helpful..

    Comment


    • MFisher
      MFisher commented
      Editing a comment
      Thank you !!!
Working...
X