UOA:IMPEXPOMS
Import Export TD/OMS API (IMPEXPOMS) - Help
Import Export TD/OMS API (IMPEXPOMS)
This Application Program Interface command facilitates the export and import of TD/OMS file data in JSON format. It can be executed from a command line or integrated into your programs for seamless operation.
The 'IMPEXPOMS' command provides two key functions:
- *Export extracts TD/OMS file data and saves it in a structured JSON format.
- *Import reads the JSON file and updates the TD/OMS files with the provided data.
The export funtion can be used with a default export definition or with a user defined export definition.
User can provide the export definition by pressing F9 key and fill in the details. The default definition points to the source library *LIBL, source file QUSRSRC and the member IMPEXPOMS.
The export function is particularly useful for backing up TD/OMS file data, or integrating with external systems. The import function allows you to efficiently load data into TD/OMS files based on the JSON file contents, streamlining the data management process.
Action code (ACTC)
Specify the action to be performed. The possible values are:
- *IMPORT
- Use this action code to import the extracted json data into TD/OMS files.
- *EXPORT
- Use this action code to export the TD/OMS files into a json file.
Target json file
Specify the target file path for the JSON file to be used for both import and export operations.
During export, the JSON file containing the extracted data is created at this specified path.
During import, this path is used to locate and read the JSON file to complete the import process.
Source file
Specify the name of the source file and library that contains the source member.
- *DEFAULT
- The default export definition is used i.e. the source library *LIBL, the source file QUSRSRC.
- source-file-name
- Specify the source file of your choice that you want to use to export the definitions.
- *LIBL
- The source library is picked from the library list.
- library-name
- Specify the source library of your choice.
Source member
Specify the name of the source member that contains the TD/OMS file names to be exported.
- *MEMBER
- The default member is used i.e. IMPEXPOMS.
- member-name
- Specify the member of your choice.
Confirm import
Specify whether an inquiry message should be sent to QSYSOPR before proceeding with the import action.
- *YES
- An inquiry message will be sent to QSYSOPR. The user can respond with 'G' to proceed with the action or 'N' to cancel the operation.
- *NO
- No inquiry message will be sent, and the action will proceed immediately without confirmation.