## Zusätzliche Protokollfunktionalität (package_spec)

Zusätzlich zu Einträgen in der Protokolldatei des Loader (loader.prt) finden Sie detaillierte Informationen zu den Aktionen, die während der Ausführung eines Kommandos ablaufen, in der Systemtabelle SYSLOADER.TRANSFORMATIONMODEL.

Sie können für viele Loader-Kommandos die Werte der Systemtabelle SYSLOADER.TRANSFORMATIONMODEL, die zu einem Kommando gehören, mit Hilfe des Syntaxelements package_spec in einen Datenstrom exportieren. In diesem Datenstrom finden Sie alle Angaben, die das durchgeführte Loader-Kommando vollständig beschreiben, sowohl Angaben zum Entwurf des Kommandos als auch die Laufzeitdaten des ausgeführten Kommandos.

### Syntax

<package_spec> ::= PACKAGE <outstream_csv_spec>

<outstream_csv_spec> ::= Datenstrom

### Verwendung

Das Syntaxelement package_spec kann in folgenden Kommandos verwendet werden:

EXPORT DB | IMPORT DB
EXPORT USER | IMPORT USER
EXPORT SCHEMA | IMPORT SCHEMA
EXPORT TABLE | IMPORT TABLE

### Erläuterung

● Durch die Angabe eines Datenstroms mittels PACKAGE <outstream_csv_spec> werden die dem Kommando zugehörigen Einträge in der Tabelle SYSLOADER.TRANSFORMATIONMODEL in diesen Datenstrom exportiert.

● Ohne Angabe eines Datenstroms mittels PACKAGE <outstream_csv_spec> werden die Einträge der Systemtabelle SYSLOADER.TRANSFORMATIONMODEL nicht exportiert.

Der PACKAGE-Datenstrom outstream_csv_spec wird im Format CSV erzeugt.

Die Spaltenwerte der Systemtabelle SYSLOADER.TRANSFORMATIONMODEL sind in der folgenden Reihenfolge im PACKAGE-Datenstrom outstream_csv_spec abgelegt:

OWNER
SCHEMANAME
TABLENAME
DATASTREAMNAME
DATASTREAMHEADERBLOCK
DATASTREAMHEADERPOS
DATASTREAMTRAILERBLOCK
DATASTREAMTRAILERPOS
DATASTREAMDATABLOCK
DATASTREAMDATAPOS
EXCLUDE
PACKAGEGUID
TASKID
STEPID
SERVERNODE
SERVERDB
USERNAME
CODETYPE
CODEPAGEID
STORAGEDEVICE
TRANSACTIONSIZE
TRANSFORMATION
PART
TABLETYPE
CATALOGSTREAMNAME
CATALOGSTREAMTYPE
CATALOGSTREAMEBID
CATALOGSTREAMFORMAT
DATASTREAMTYPE
DATASTREAMEBID
DATASTREAMFORMAT
RESTART
RESTORE
PAGECOUNT
ROWCOUNT
STARTTIME
ENDTIME
REQUESTTIME
RECEIVETIME
IOTIME
LOGTIME

Die dem Kommando zugehörigen Werte werden aus der Systemtabelle SYSLOADER.TRANSFORMATIONMODEL gelöscht, wenn sich alle Werte im gewünschten Datenstrom befinden.

### Beispiel

EXPORT USER
DATA OUTSTREAM 'mona_pages.data' PAGES
PACKAGE OUTSTREAM 'mona_csv.package'

Die Anwendungsdaten des Datenbankbenutzers MONA werden exportiert. Im Datenstrom mona_csv.package finden Sie alle Angaben, die das durchgeführte Loader-Kommando vollständig beschreiben

#### Inhalt des PACKAGE-Datenstroms mona_csv.package

"MONA","HOTEL","CITY","mona.data0001","0","1024","0","0","0","66560","FALSE","010000003A29DCF9200F0000B0450000A6B717DE7CE1BF84","1","1","GENUA","TESTDB","MONA","ASCII","?","NONE","0","EXPORT","USER","TABLE","?","?","?","?","FILE","?","PAGES","FALSE","FALSE","0","0","20060116135730309000","20060116135730339000","0.000","0.000","0.000","0.000"

"MONA","HOTEL","CUSTOMER","mona.data0001","0","66560","0","0","0","132096","FALSE","010000003A29DCF9200F0000B0450000A6B717DE7CE1BF84","1","2","GENUA","TESTDB","MONA","ASCII","?","NONE","0","EXPORT","USER","TABLE","?","?","?","?","FILE","?","PAGES","FALSE","FALSE","0","0","20060116135730349000","20060116135730359000","0.000","0.000","0.000","0.000"

"MONA","HOTEL","HOTEL","mona.data0001","0","132096","0","0","0","214016","FALSE","010000003A29DCF9200F0000B0450000A6B717DE7CE1BF84","1","3","GENUA","TESTDB","MONA","ASCII","?","NONE","0","EXPORT","USER","TABLE","?","?","?","?","FILE","?","PAGES","FALSE","FALSE","0","0","20060116135730359000","20060116135730389000","0.000","0.000","0.000","0.000"

"MONA","HOTEL","ROOM","mona.data0001","0","214016","0","0","0","279552","FALSE","010000003A29DCF9200F0000B0450000A6B717DE7CE1BF84","1","4","GENUA","TESTDB","MONA","ASCII","?","NONE","0","EXPORT","USER","TABLE","?","?","?","?","FILE","?","PAGES","FALSE","FALSE","0","0","20060116135730389000","20060116135730399000","0.000","0.000","0.000","0.000"

"MONA","HOTEL","EMPLOYEE","mona.data0001","0","279552","0","0","0","345088","FALSE","010000003A29DCF9200F0000B0450000A6B717DE7CE1BF84","1","5","GENUA","TESTDB","MONA","ASCII","?","NONE","0","EXPORT","USER","TABLE","?","?","?","?","FILE","?","PAGES","FALSE","FALSE","0","0","20060116135730409000","20060116135730419000","0.000","0.000","0.000","0.000"

"MONA","HOTEL","RESERVATION","mona.data0001","0","345088","0","0","0","410624","FALSE","010000003A29DCF9200F0000B0450000A6B717DE7CE1BF84","1","6","GENUA","TESTDB","MONA","ASCII","?","NONE","0","EXPORT","USER","TABLE","?","?","?","?","FILE","?","PAGES","FALSE","FALSE","0","0","20060116135730429000","20060116135730439000","0.000","0.000","0.000","0.000"