IE job controls


Import via temporary database tables has been realised as a third way to transfer data to IDL Konsis besides the "classic" way via files ("txt" files, ASCII files) and direct import via program to program interfaces. This is particularly interesting for interfaces realised with IDL Importer, since this tool is sepcialised for reading data from database tables, converting them and writing into other database tables. Other tools may be used for this purpose, too, when observing the following rules.

For this purpose a special import table per data stock was defined in IDL Konsis. Besides the attributes of the data to be imported this table contains a prefix, that mainly consists of a job number. This job number specifies data belonging together. In some cases the attributes are longer than in the original table providing the facility of transformation from external keys into internal keys. The following fields (emphasized are required) are included in the import tables beside the attributes defined in the '#DB' format:

AttributeShort DescriptionMeaning
I1XX_JOBIDNumber of the joballocated job id in I001
I1XX_RECORD_NRConsecutive numbersequential number of the data record within the job
I1XX_IMP_ERRORError at import? (Y/N)Flag designating, whether this record has been imported
I1XX_MODIFIERUser id of the last modification
I1XX_DATETIMETimestamp of the last modification
I1XX_LOCKUSERLOCK user identification
I1XX_LOCKDATELOCK timestamp

The list application "IE job control" (short word IEJOB or via action menu of the calling application IMPORT) displays all jobs contained in the special import tables. You have to define a new job directly in the database table I001, before you can write data into the import table. The attributes of I001 have to be set as follows (emphasized are required):

AttributeShort DescriptionMeaning
I001_JOBIDNumber of the jobThe next subsequent job id has to be entered. The user is responsible for determination of this unique number. It is recommended to use the prepared table I000 for this purpose. An entry for the sequence name (I000_SEQ_NAME) with the value "NEXT_JOBID" is to be entered once. The corresponding consecutive value (I000_ACT_VAL) can be used in a database sequence manner. Means: First increment the number in I000_ACT_VAL inside of a transaction and then use this number as the next job number.
I001_USERIDUser idUser id in IDL Konsis that is to be used for execution of this job in IDL Konsis
I001_ENABLEDRelease (Y/N)The release of a job for execution can be controlled here. The execution is only allowed, if its value is 'Y'.
I001_FOLLOW_JOBIDConsecutive number of a aubsequent jobnot yet implemented
I001_WITH_DELETEImport with previous deletion (Y/N)Flag, whether existing data are to be deleted before import
I001_START_FROMEarliest import timestampTimestamp for the first possible execution of import
I001_JOB_STARTBeginningStart timestamp of the job
I001_JOB_ENDEndEnd timestamp of the job
I001_JOB_SUCCESSSuccess status of the job (Y/N)Flag, whether success or failure
I001_IEF_PROJIDProject idProject id of the job. You always have to enter the value 'KON' here.
I001_IEF_OBJIDObject typeObject type of the job. For import the value 'IEO' has to be entered here.
I001_IEF_OBJIDObject idData type of the job. You have to enter the name of the corresponding import/export format data type here, e.g. 'KTOSAL' for account balances.
I001_MODIFIERUser id of the last modification
I001_DATETIMETimestamp of the last modification
I001_LOCKUSERLOCK user identification
I001_LOCKDATELOCK timestamp
I001_JOB_CREATORData providerText for identification of the origin of the data of this job
I001_JOB_CREATEDTimestamp of data deliveryWhen were the data inserted into the import table?

The job number of the generated job has to be used for subsequent writing of data into the import table. The import into IDL Konsis can be started via application "IE job control" (IEJOB). Start and end of this processing as well as a processing status are recorded in the IE job control.

The import/export format '#DB' is used for this type of import. It is designated with the new format type 'TABLE' in the table for import/export formats (IEF). The IEF definition contains the name of the import table in the attribute "Default filename / table".

According to the fields in IEFFEL the names of attributes of database tables are given. For technical reasons the character "-" is replaced by "_". As with format KTOSAL the field FAC for fact with ID I100-FAC corresponds to the attribut I100_FAC.

Messages at loading of data into the temporary table as well as messages at the actual import are written into a database table, too, instead of a protocol file. This protocol can be viewed by the new list application "Import protocol", which can be called via object menu of "IE job control" (IEJOB). This protocol distinguishes betweeen messages from data delivery and messages from data import via parameter "Job step".

An import job can be deleted completely via action "Delete" in "IE job control" (IEJOB). Then the job control record itself is deleted as well as all corresponding records in the import table and the allocated protocol.

Via action "Copy IE jobs" in "IE job control" (IEJOB) it is possible to copy data records of an existing job into a new generated job. If a job has records with errors, the option to copy only these exists.

With these release this new feature supports the following data stocks (object types):

object typetable
KTOSALI100
ICKTOSALI101
CNTSALI102
KSTI103
ANLBEWI104
KTOI105
POSI106
POSKTOI107
KAPBEWI108
RUEBEWI108
SPIBEWI108

Letzte Änderung: POST 04.08.2009 09:55