|
File migration |
|
|
VSAM and sequential files coming from the mainframe may be converted using procedure described hereafter. The conversion of each file always follows this flow:
Basically, you may distinguish four different categories of files:
Critical redefines are such data redefinition that lead to an uncompatible conversion, like shown in the following table:
Single record structures without critical redefines The file contains only one record structure without critical redefines. I.e. 01 FILE-REC. This is the simplest file type to convert: XCONV toolkit is able to generate everything is required for the conversion. Multiple record structure without critical redefines The file contains more than one well-defined record structure each one without critical redefines. Programs accessing the file, recognize the proper structure according to information contained in the record itself. I.e. 01 FILE-REC.
In this case the record structure should be divided in different record structures, one for each sub-type (3 in the example above). The generated converter will contain the code to convert each different record structure. You have to code a copybook containing the rules to recognize, for each record processed, the correct structure to convert it. Single record structures with critical redefines The file contains only one record structure with critical redefines. I.e. 01 FILE-REC.
In this situation, the record contains one single record structure, but contains one or more redefines clauses that lead to a critical situation. The record may be left as is: the converter program will contain the code to handle all the different branches (caused by redefines clauses)of the record. You have to provide a copybook with the rules to recognized, for each record processes, the correct conversion branch to use. Multiple record structures with critical redefines The file contains only more than one record structures with critical redefines. I.e. 01 FILE-REC.
The record structure should be divided in different record structures, one for each sub-type (3 in the example above). The generated converter will contain the code to convert each different record structure and, for each one of these, it will contain the code to handle the different branches of the structures. You have to code a copybook containing the rules to recognize, for each record processed, both the correct structure and the correct branches to convert it. |