To create a schema for a file described by a COBOL Copybook,
you use the Import COBOL copybook Wizard in the Schema
Editor.
- Select Schemas/COBOL Copybook from the menu. The Generate Schema for a Cobol CopyBook dialog
appears.
- Enter a unique Service Name and enter the name of the COBOL Copybook, for example: MtrUpld.cbl. (Clicking
the ... button displays a file selection dialog box.)
- Click Generate to generate the XML schema.
- A schema is generated in the schema editor. You may now
use the Schema Editor to edit the schema as with any other
type of schema.
- Save the Schema with an appropriate name, e.g., CustomerContactsUploadSchema.xml
Example:
If the Cobol copybook looks like:
06
ACCT-ID
PIC X(10)
06
MTR_ID
PIC X(08)
06
MTR_READ
PIC 9(10)
06 MTR_READ_DT
PIC 9(8)
Then the generated Schema looks like this:
Copyright © 2000, 2015, Oracle and/or its affiliates. All rights reserved. Documentation build: 2.19.2015 16:18:51 [F1_1424305131000]