Using the Log File

By browsing the log file, you can see the results of your conversions. The log file is updated after each conversion operation. It tracks:

For example, if no errors are found, the conversion status is set to 0. If severe errors are found, the status is set to 30.

If you try to convert a member with an unsupported member type or a member that already exists, then the conversion will not take place, as this is a severe error (severity 40 or higher). A record will be added to the log file with the conversion status set to 40. The TOFILE, TOMBR, and TO LIBRARY will be set to blank to indicate that a TOMBR was not generated (as the conversion did not take place).

The log file is an externally described, physical database file. A "model" of this file is provided in library QRPGLE in file QARNCVTLG. It has one record format called QRNCVTLG. All field names are six characters in length and follow the naming convention LGxxxx, where xxxx describes the fields. Figure 227 shows the DDS for this file.

Use the following CPYF command to create a copy of this model in your own library, referred to here as MYLIB. You may want to name your log file QRNCVTLG, as this is the default log file name for the Conversion Aid.

CPYF FROMFILE(QRPGLE/QARNCVTLG) TOFILE(MYLIB/QRNCVTLG)
     CRTFILE(*YES)
Figure 227. DDS for model log file QARNCVTLG in library QRPGLE
     A          R QRNCVTFM
     A            LGCENT         1A         COLHDG('CVT' 'CENT')
     A                                      TEXT('Conversion Century: 0-20th 1-+
     A                                      21st')
     A            LGDATE         6A         COLHDG('CVT' 'DATE')
     A                                      TEXT('Conversion Date : format is Y+
     A                                      YMMDD')
     A            LGTIME         6A         COLHDG('CVT' 'TIME')
     A                                      TEXT('Conversion Time : format is H+
     A                                      HMMSS')
     A            LGSYST         8A         COLHDG('CVT' 'SYST')
     A                                      TEXT('Name of the system running co+
     A                                      nversion')
     A            LGUSER        10A         COLHDG('CVT' 'USER')
     A                                      TEXT('User Profile name of the user+
     A                                      running conversion')
     A            LGFRFL        10A         COLHDG('FROM' 'FILE')
     A                                      TEXT('From File')
     A            LGFRLB        10A         COLHDG('FROM' 'LIB')
     A                                      TEXT('From Library')
     A            LGFRMR        10A         COLHDG('FROM' 'MBR')
     A                                      TEXT('From Member')
     A            LGFRMT        10A         COLHDG('FMBR' 'TYPE')
     A                                      TEXT('From Member Type')
     A            LGTOFL        10A         COLHDG('TO' 'FILE')
     A                                      TEXT('To File')
     A            LGTOLB        10A         COLHDG('TO' 'LIB')
     A                                      TEXT('To Library')
     A            LGTOMR        10A         COLHDG('TO' 'MBR')
     A                                      TEXT('To Member')
     A            LGTOMT        10A         COLHDG('TMBR' 'TYPE')
     A                                      TEXT('To Member Type')
     A            LGLGFL        10A         COLHDG('LOG' 'FILE')
     A                                      TEXT('Log File')
     A            LGLGLB        10A         COLHDG('LOG' 'LIB')
     A                                      TEXT('Log Library')
     A            LGLGMR        10A         COLHDG('LOG' 'MBR')
     A                                      TEXT('Log Member')
     A            LGCEXP         1A         COLHDG('CPY' 'EXP')
     A                                      TEXT('Copy Member Expanded: Y=Yes, +
     A                                      N=No')
     A            LGERRL         1A         COLHDG('CVT' 'RPT')
     A                                      TEXT('Conversion Report Printed: Y=+
     A                                      Yes, N=No')
     A            LGSECL         1A         COLHDG('SEC' 'LVL')
     A                                      TEXT('Second Level Text Printed: Y=+
     A                                      Yes, N=No')
     A            LGINSR         1A         COLHDG('INSR' 'TPL')
     A                                      TEXT('Template Inserted: Y=Yes, N=N+
     A                                      o')
     A            LGSTAT         2A         COLHDG('CVT' 'STAT')
     A                                      TEXT('Conversion Status')
     A            LGMRDS        50A         COLHDG('MBR' 'DESC')
     A                                      TEXT('Member Description')


[ Top of Page | Previous Page | Next Page | Contents | Index ]