From 04695f0279ce8add1b87511a4f019e910f0546c1 Mon Sep 17 00:00:00 2001 From: sergiosa61 Date: Sat, 11 May 2024 05:36:29 +0200 Subject: [PATCH] Resolve issue #175 --- libgixpp/gix_esql_parser.yy | 3 ++- libgixpp/gix_esql_scanner.ll | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libgixpp/gix_esql_parser.yy b/libgixpp/gix_esql_parser.yy index 3c182a9..e9f8e01 100644 --- a/libgixpp/gix_esql_parser.yy +++ b/libgixpp/gix_esql_parser.yy @@ -115,7 +115,8 @@ static std::string to_std_string(connect_to_info_t *i) { if (i) { char buffer [3 %token LINKAGEEND %token LOCALSTORAGEBEGIN "Begin of LOCAL-STORAGE SECTION" %token LOCALSTORAGEEND "End of LOCAL-STORAGE SECTION" -%token FD +%token FD "FILE description (FD)" +%token SD "SORT description (SD)" %token FILEBEGIN "Begin of FILE SECTION" %token FILEEND "End of FILE SECTION" %token PROCEDURE_DIVISION "PROCEDURE DIVISION" diff --git a/libgixpp/gix_esql_scanner.ll b/libgixpp/gix_esql_scanner.ll index c447624..b389439 100644 --- a/libgixpp/gix_esql_scanner.ll +++ b/libgixpp/gix_esql_scanner.ll @@ -1245,7 +1245,8 @@ SUBSYSTEM "SQL"|"CICS"|"DLI" return yy::gix_esql_parser::make_WORKINGEND(loc); } - "FD" { + "FD" | + "SD" { if (driver->data_division_section == DD_SECTION_FS) { __yy_push_state(FD_STATE); }