[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-03 (世界標準時間)。"],[],[],null,["# Define the copybook parser\n\nMainframe Connector supports two versions of the copybook parser:\n\n- **Native copybook parser:** The Native copybook parser is the latest version of the parser. The Native copybook parser implements an ANTLR4 based parser and supports COBOL copybooks. For more information on the features supported by the Native copybook parser and the restrictions of its use, see [Native copybook parser](/mainframe-connector/docs/copybook-reference#native-copybook-parser).\n- **Legacy copybook parser:** The legacy copybook parser is an older version of\n the parser that supports non-COBOL features. If you are using Domain-Specific\n Language (DSL) based-copybook the legacy parser might be more suitable as the\n Native copybook parser might cause errors. For\n more information on the features supported by the legacy copybook parser and\n the restrictions of its use, see [Legacy copybook parser](/mainframe-connector/docs/copybook-reference#legacy-copybook-parser).\n\n | **Note:** The Legacy parser is being deprecated. We recommend that you switch to the Native copybook parser.\n\nYou can define which parser you want to use based on your copybook by using the\n`parser_type=legacy|copybook` flag. The default value is\n`auto` which is the auto-detect mode. The auto-detect mode\nprioritizes using the Native copybook parser, which is suitable for parsing\nCOBOL-based copybooks. However, if you are using a non-COBOL-based copybook with\nthe old format, the `parser_type=legacy` flag offers backward\ncompatibility helping you use the Legacy copybook parser.\n| **Note:** You cannot explicitly set `parser_type` to `auto` from the command line.\n\nThe following table defines the behavior of Mainframe Connector based\non the flag."]]