From f22d246df9c519533bfffc5e250bee2ae4799046 Mon Sep 17 00:00:00 2001 From: Liam Barry Allan Date: Tue, 25 Oct 2022 20:49:37 -0400 Subject: [PATCH 1/4] Initial work for local file tests Signed-off-by: Liam Barry Allan --- tests/parserSetup.ts | 59 ++- tests/tables/emps.ts | 1146 +++++++++++++++++++++++++++++++++++++++++ tests/tables/index.ts | 5 + 3 files changed, 1208 insertions(+), 2 deletions(-) create mode 100644 tests/tables/emps.ts create mode 100644 tests/tables/index.ts diff --git a/tests/parserSetup.ts b/tests/parserSetup.ts index 4f8d5767..4b722599 100644 --- a/tests/parserSetup.ts +++ b/tests/parserSetup.ts @@ -1,8 +1,14 @@ import Parser from '../server/src/language/parser'; +import Declaration from '../server/src/language/models/declaration'; +import { getPrettyType } from '../server/src/language/models/fixed'; + import glob from "glob"; -import { readFile } from 'fs/promises'; import path from 'path'; +import { readFile } from 'fs/promises'; + +import tables from './tables'; + export default function setupParser(): Parser { const parser = new Parser(); @@ -36,7 +42,56 @@ export default function setupParser(): Parser { return { found: false }; - }) + }); + + parser.setTableFetch(async (table: string, aliases = false) => { + let recordFormats: {[name: string]: Declaration} = {}; + + const data = tables[table] ? tables[table] : []; + + data.forEach((row: any) => { + const { + WHNAME: formatName, + WHFLDT: type, + WHFLDB: strLength, + WHFLDD: digits, + WHFLDP: decimals, + WHFTXT: text, + } = row; + + const name = aliases ? row.WHALIS || row.WHFLDE : row.WHFLDE; + + if (name.trim() === ``) return; + if (name.startsWith(`*`)) return; + + let recordFormat; + if (recordFormats[formatName]) { + recordFormat = recordFormats[formatName]; + } else { + recordFormat = new Declaration(`struct`); + recordFormat.name = formatName; + recordFormats[formatName] = recordFormat; + } + + const currentSubfield = new Declaration(`subitem`); + currentSubfield.name = name; + const keywords = []; + + if (row.WHVARL === `Y`) keywords.push(`VARYING`); + + currentSubfield.keywords = [getPrettyType({ + type, + len: digits === 0 ? strLength : digits, + decimals: decimals, + keywords: [], + })]; + currentSubfield.description = text.trim(); + + recordFormat.subItems.push(currentSubfield); + }); + + return Object.values(recordFormats); + }); return parser; } \ No newline at end of file diff --git a/tests/tables/emps.ts b/tests/tables/emps.ts new file mode 100644 index 00000000..a66388c7 --- /dev/null +++ b/tests/tables/emps.ts @@ -0,0 +1,1146 @@ +export default [ + { + "WHFILE": "EMPS", + "WHLIB": "TESTLIB", + "WHCRTD": "1221018", + "WHFTYP": "D", + "WHCNT": 3, + "WHDTTM": "1221025161733", + "WHNAME": "SFLDTA", + "WHSEQ": "18E1A24E271EF", + "WHTEXT": "", + "WHFLDN": 6, + "WHRLEN": 49, + "WHFLDI": "*IN12", + "WHFLDE": "*IN12", + "WHFOBO": 0, + "WHIBO": "- 1", + "WHFLDB": 1, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "I", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 5, + "WHNIND": 1, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 0, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPS", + "WHLIB": "TESTLIB", + "WHCRTD": "1221018", + "WHFTYP": "D", + "WHCNT": 3, + "WHDTTM": "1221025161733", + "WHNAME": "SFLDTA", + "WHSEQ": "18E1A24E271EF", + "WHTEXT": "", + "WHFLDN": 6, + "WHRLEN": 49, + "WHFLDI": "RRN", + "WHFLDE": "RRN", + "WHFOBO": 1, + "WHIBO": 1, + "WHFLDB": 4, + "WHFLDD": 4, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "S", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 5, + "WHNIND": 1, + "WHSHFT": "Y", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 0, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPS", + "WHLIB": "TESTLIB", + "WHCRTD": "1221018", + "WHFTYP": "D", + "WHCNT": 3, + "WHDTTM": "1221025161733", + "WHNAME": "SFLDTA", + "WHSEQ": "18E1A24E271EF", + "WHTEXT": "", + "WHFLDN": 6, + "WHRLEN": 49, + "WHFLDI": "XSEL", + "WHFLDE": "XSEL", + "WHFOBO": 5, + "WHIBO": 5, + "WHFLDB": 1, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 5, + "WHNIND": 1, + "WHSHFT": "A", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 0, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 7, + "WHDCOL": 8, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPS", + "WHLIB": "TESTLIB", + "WHCRTD": "1221018", + "WHFTYP": "D", + "WHCNT": 3, + "WHDTTM": "1221025161733", + "WHNAME": "SFLDTA", + "WHSEQ": "18E1A24E271EF", + "WHTEXT": "", + "WHFLDN": 6, + "WHRLEN": 49, + "WHFLDI": "XID", + "WHFLDE": "XID", + "WHFOBO": 6, + "WHIBO": 6, + "WHFLDB": 6, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "O", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 5, + "WHNIND": 1, + "WHSHFT": "A", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 0, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 7, + "WHDCOL": 12, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPS", + "WHLIB": "TESTLIB", + "WHCRTD": "1221018", + "WHFTYP": "D", + "WHCNT": 3, + "WHDTTM": "1221025161733", + "WHNAME": "SFLDTA", + "WHSEQ": "18E1A24E271EF", + "WHTEXT": "", + "WHFLDN": 6, + "WHRLEN": 49, + "WHFLDI": "XNAME", + "WHFLDE": "XNAME", + "WHFOBO": 12, + "WHIBO": 12, + "WHFLDB": 30, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "O", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 5, + "WHNIND": 1, + "WHSHFT": "A", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 0, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 7, + "WHDCOL": 20, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPS", + "WHLIB": "TESTLIB", + "WHCRTD": "1221018", + "WHFTYP": "D", + "WHCNT": 3, + "WHDTTM": "1221025161733", + "WHNAME": "SFLDTA", + "WHSEQ": "18E1A24E271EF", + "WHTEXT": "", + "WHFLDN": 6, + "WHRLEN": 49, + "WHFLDI": "XJOB", + "WHFLDE": "XJOB", + "WHFOBO": 42, + "WHIBO": 42, + "WHFLDB": 8, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "O", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 5, + "WHNIND": 1, + "WHSHFT": "A", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 0, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 7, + "WHDCOL": 52, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPS", + "WHLIB": "TESTLIB", + "WHCRTD": "1221018", + "WHFTYP": "D", + "WHCNT": 3, + "WHDTTM": "1221025161733", + "WHNAME": "SFLCTL", + "WHSEQ": "12ECBDD9DFA76", + "WHTEXT": "", + "WHFLDN": 4, + "WHRLEN": 4, + "WHFLDI": "*IN12", + "WHFLDE": "*IN12", + "WHFOBO": 0, + "WHIBO": "- 1", + "WHFLDB": 1, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "I", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 1, + "WHNIND": 3, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 0, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPS", + "WHLIB": "TESTLIB", + "WHCRTD": "1221018", + "WHFTYP": "D", + "WHCNT": 3, + "WHDTTM": "1221025161733", + "WHNAME": "SFLCTL", + "WHSEQ": "12ECBDD9DFA76", + "WHTEXT": "", + "WHFLDN": 4, + "WHRLEN": 4, + "WHFLDI": "*IN85", + "WHFLDE": "*IN85", + "WHFOBO": "- 1", + "WHIBO": 0, + "WHFLDB": 1, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "O", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 1, + "WHNIND": 3, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 0, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPS", + "WHLIB": "TESTLIB", + "WHCRTD": "1221018", + "WHFTYP": "D", + "WHCNT": 3, + "WHDTTM": "1221025161733", + "WHNAME": "SFLCTL", + "WHSEQ": "12ECBDD9DFA76", + "WHTEXT": "", + "WHFLDN": 4, + "WHRLEN": 4, + "WHFLDI": "*IN95", + "WHFLDE": "*IN95", + "WHFOBO": "- 1", + "WHIBO": 0, + "WHFLDB": 1, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "O", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 1, + "WHNIND": 3, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 0, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPS", + "WHLIB": "TESTLIB", + "WHCRTD": "1221018", + "WHFTYP": "D", + "WHCNT": 3, + "WHDTTM": "1221025161733", + "WHNAME": "SFLCTL", + "WHSEQ": "12ECBDD9DFA76", + "WHTEXT": "", + "WHFLDN": 4, + "WHRLEN": 4, + "WHFLDI": "SFLRRN", + "WHFLDE": "SFLRRN", + "WHFOBO": 1, + "WHIBO": 1, + "WHFLDB": 4, + "WHFLDD": 4, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "S", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 1, + "WHNIND": 3, + "WHSHFT": "S", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 0, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPS", + "WHLIB": "TESTLIB", + "WHCRTD": "1221018", + "WHFTYP": "D", + "WHCNT": 3, + "WHDTTM": "1221025161733", + "WHNAME": "FOOTER_FMT", + "WHSEQ": "08DABB9E3C647", + "WHTEXT": "", + "WHFLDN": 1, + "WHRLEN": 0, + "WHFLDI": "*IN12", + "WHFLDE": "*IN12", + "WHFOBO": 0, + "WHIBO": "- 1", + "WHFLDB": 1, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "I", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 0, + "WHNIND": 1, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 0, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + } +]; \ No newline at end of file diff --git a/tests/tables/index.ts b/tests/tables/index.ts new file mode 100644 index 00000000..d817a7cd --- /dev/null +++ b/tests/tables/index.ts @@ -0,0 +1,5 @@ +import emps from './emps'; + +export default { + 'EMPS': emps +}; \ No newline at end of file From be15d9e91c6a3eb10ac4f45330ea92ec1cfafaba Mon Sep 17 00:00:00 2001 From: Liam Barry Allan Date: Tue, 25 Oct 2022 22:15:38 -0400 Subject: [PATCH 2/4] Additional file tests Signed-off-by: Liam Barry Allan --- tests/parserSetup.ts | 3 +- tests/suite/files.js | 71 ++ tests/suite/index.js | 1 + tests/tables/employee.ts | 1458 ++++++++++++++++++++++++++++++++++++++ tests/tables/index.ts | 4 +- 5 files changed, 1535 insertions(+), 2 deletions(-) create mode 100644 tests/suite/files.js create mode 100644 tests/tables/employee.ts diff --git a/tests/parserSetup.ts b/tests/parserSetup.ts index 4b722599..260d0d58 100644 --- a/tests/parserSetup.ts +++ b/tests/parserSetup.ts @@ -46,8 +46,9 @@ export default function setupParser(): Parser { parser.setTableFetch(async (table: string, aliases = false) => { let recordFormats: {[name: string]: Declaration} = {}; + const upperName = table.toUpperCase(); - const data = tables[table] ? tables[table] : []; + const data = tables[upperName] ? tables[upperName] : []; data.forEach((row: any) => { const { diff --git a/tests/suite/files.js b/tests/suite/files.js new file mode 100644 index 00000000..940dfdd3 --- /dev/null +++ b/tests/suite/files.js @@ -0,0 +1,71 @@ + +const assert = require(`assert`); + +const {default: parserSetup} = require(`../parserSetup`); + +const uri = `source.rpgle`; + +exports.simple_file = async () => { + const lines = [ + `**free`, + ``, + `dcl-f employee disk usage(*input);`, + ``, + `dsply employee.workdept;`, + ``, + `return;` + ].join(`\n`); + + const parser = parserSetup(); + const cache = await parser.getDocs(uri, lines); + + assert.strictEqual(cache.files.length, 1); + assert.strictEqual(cache.structs.length, 0); + + const fileDef = cache.find(`employee`); + assert.strictEqual(fileDef.name, `employee`); + assert.strictEqual(fileDef.keyword[`DISK`], true); + assert.strictEqual(fileDef.keyword[`USAGE`], `*INPUT`); + + // file record formats should be expanded into the subitems + assert.strictEqual(fileDef.subItems.length, 1); + + const empRdcFmt = fileDef.subItems[0]; + + assert.strictEqual(empRdcFmt.name, `EMPLOYEE`); + + // 14 fields inside of this record format + assert.strictEqual(empRdcFmt.subItems.length, 14); +}; + +exports.many_formats = async () => { + const lines = [ + `**free`, + ``, + `dcl-f emps workstn;`, + ``, + `write SFLDTA;`, + ``, + `return;` + ].join(`\n`); + + const parser = parserSetup(); + const cache = await parser.getDocs(uri, lines); + + assert.strictEqual(cache.files.length, 1); + + const fileDef = cache.find(`emps`); + assert.strictEqual(fileDef.name, `emps`); + assert.strictEqual(fileDef.keyword[`WORKSTN`], true); + + // file record formats should be expanded into the subitems + assert.strictEqual(fileDef.subItems.length, 2); + + const sfldta = fileDef.subItems[0]; + assert.strictEqual(sfldta.name, `SFLDTA`); + assert.strictEqual(sfldta.subItems.length, 5); + + const sflctl = fileDef.subItems[1]; + assert.strictEqual(sflctl.name, `SFLCTL`); + assert.strictEqual(sflctl.subItems.length, 1); +}; \ No newline at end of file diff --git a/tests/suite/index.js b/tests/suite/index.js index a358a52e..b318f88d 100644 --- a/tests/suite/index.js +++ b/tests/suite/index.js @@ -4,4 +4,5 @@ module.exports = { ...require(`./fixed`), ...require(`./keywords`), ...require(`./linter`), + ...require(`./files`) } \ No newline at end of file diff --git a/tests/tables/employee.ts b/tests/tables/employee.ts new file mode 100644 index 00000000..10024a57 --- /dev/null +++ b/tests/tables/employee.ts @@ -0,0 +1,1458 @@ +export default [ + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "EMPNO", + "WHFLDE": "EMPNO", + "WHFOBO": 1, + "WHIBO": 1, + "WHFLDB": 6, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "EMPNO", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "FIRSTNME", + "WHFLDE": "FIRSTNME", + "WHFOBO": 7, + "WHIBO": 7, + "WHFLDB": 14, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "FIRSTNME", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "Y", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "MIDINIT", + "WHFLDE": "MIDINIT", + "WHFOBO": 21, + "WHIBO": 21, + "WHFLDB": 1, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "MIDINIT", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "LASTNAME", + "WHFLDE": "LASTNAME", + "WHFOBO": 22, + "WHIBO": 22, + "WHFLDB": 17, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "LASTNAME", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "Y", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "WORKDEPT", + "WHFLDE": "WORKDEPT", + "WHFOBO": 39, + "WHIBO": 39, + "WHFLDB": 3, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "WORKDEPT", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "Y", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "PHONENO", + "WHFLDE": "PHONENO", + "WHFOBO": 42, + "WHIBO": 42, + "WHFLDB": 4, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "PHONENO", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "Y", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "HIREDATE", + "WHFLDE": "HIREDATE", + "WHFOBO": 46, + "WHIBO": 46, + "WHFLDB": 10, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "HIREDATE", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "L", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "*ISO", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "Y", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "JOB", + "WHFLDE": "JOB", + "WHFOBO": 56, + "WHIBO": 56, + "WHFLDB": 8, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "JOB", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "Y", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "EDLEVEL", + "WHFLDE": "EDLEVEL", + "WHFOBO": 64, + "WHIBO": 64, + "WHFLDB": 2, + "WHFLDD": 4, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "EDLEVEL", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "B", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 65535, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "SEX", + "WHFLDE": "SEX", + "WHFOBO": 66, + "WHIBO": 66, + "WHFLDB": 1, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "SEX", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "Y", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "BIRTHDATE", + "WHFLDE": "BIRTHDATE", + "WHFOBO": 67, + "WHIBO": 67, + "WHFLDB": 10, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "BIRTHDATE", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "L", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "*ISO", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "Y", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "SALARY", + "WHFLDE": "SALARY", + "WHFOBO": 77, + "WHIBO": 77, + "WHFLDB": 5, + "WHFLDD": 9, + "WHFLDP": 2, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "SALARY", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "P", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 65535, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "Y", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "BONUS", + "WHFLDE": "BONUS", + "WHFOBO": 82, + "WHIBO": 82, + "WHFLDB": 5, + "WHFLDD": 9, + "WHFLDP": 2, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "BONUS", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "P", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 65535, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "Y", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "EMPLOYEE", + "WHLIB": "TESTLIB", + "WHCRTD": "1220920", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025204249", + "WHNAME": "EMPLOYEE", + "WHSEQ": "40E4CB0CCAE8D", + "WHTEXT": "", + "WHFLDN": 14, + "WHRLEN": 91, + "WHFLDI": "COMM", + "WHFLDE": "COMM", + "WHFOBO": 87, + "WHIBO": 87, + "WHFLDB": 5, + "WHFLDD": 9, + "WHFLDP": 2, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "COMM", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "P", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 14, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 65535, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "", + "WHALLC": 0, + "WHNULL": "Y", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + } +] \ No newline at end of file diff --git a/tests/tables/index.ts b/tests/tables/index.ts index d817a7cd..47ce6abc 100644 --- a/tests/tables/index.ts +++ b/tests/tables/index.ts @@ -1,5 +1,7 @@ import emps from './emps'; +import employee from './employee'; export default { - 'EMPS': emps + 'EMPS': emps, + 'EMPLOYEE': employee }; \ No newline at end of file From 45dc45615c1181a9bd37283f4fbe28c416b04d66 Mon Sep 17 00:00:00 2001 From: Liam Barry Allan Date: Tue, 25 Oct 2022 22:34:48 -0400 Subject: [PATCH 3/4] DS EXTNAME test Signed-off-by: Liam Barry Allan --- tests/suite/files.js | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/tests/suite/files.js b/tests/suite/files.js index 940dfdd3..ac4ec7e7 100644 --- a/tests/suite/files.js +++ b/tests/suite/files.js @@ -68,4 +68,35 @@ exports.many_formats = async () => { const sflctl = fileDef.subItems[1]; assert.strictEqual(sflctl.name, `SFLCTL`); assert.strictEqual(sflctl.subItems.length, 1); -}; \ No newline at end of file +}; + +exports.ds_extname = async () => { + const lines = [ + `**free`, + ``, + `Dcl-Ds Employee ExtName('EMPLOYEE') Qualified;`, + `end-ds;`, + ``, + `Dsply Employee.empno;`, + ``, + `return;` + ].join(`\n`); + + const parser = parserSetup(); + const cache = await parser.getDocs(uri, lines); + + assert.strictEqual(cache.files.length, 0); + assert.strictEqual(cache.structs.length, 1); + + const structDef = cache.find(`employee`); + assert.strictEqual(structDef.name, `Employee`); + assert.strictEqual(structDef.subItems.length, 14); +}; + +exports.ds_extname_alias = async () => { + //TODO +} + +exports.file_prefix = async () => { + +} \ No newline at end of file From 84d492deed22936a8ff029fab4463b9356db1765 Mon Sep 17 00:00:00 2001 From: Liam Barry Allan Date: Tue, 25 Oct 2022 22:53:17 -0400 Subject: [PATCH 4/4] alias tests Signed-off-by: Liam Barry Allan --- tests/suite/files.js | 53 +++- tests/tables/department.ts | 522 +++++++++++++++++++++++++++++++++++++ tests/tables/index.ts | 4 +- 3 files changed, 574 insertions(+), 5 deletions(-) create mode 100644 tests/tables/department.ts diff --git a/tests/suite/files.js b/tests/suite/files.js index ac4ec7e7..66613723 100644 --- a/tests/suite/files.js +++ b/tests/suite/files.js @@ -93,10 +93,55 @@ exports.ds_extname = async () => { assert.strictEqual(structDef.subItems.length, 14); }; +exports.ds_extname_no_alias = async () => { + const lines = [ + `**free`, + ``, + `Dcl-Ds dept ExtName('department') Qualified;`, + `end-ds;`, + ``, + `Dsply dept.deptname;`, + ``, + `return;` + ].join(`\n`); + + const parser = parserSetup(); + const cache = await parser.getDocs(uri, lines); + + assert.strictEqual(cache.files.length, 0); + assert.strictEqual(cache.structs.length, 1); + + const dept = cache.find(`dept`); + assert.strictEqual(dept.subItems.length, 5); + + assert.strictEqual(dept.subItems[0].name, `DEPTNO`); + assert.strictEqual(dept.subItems[1].name, `DEPTNAME`); +} + exports.ds_extname_alias = async () => { - //TODO + const lines = [ + `**free`, + ``, + `Dcl-Ds dept ExtName('department') alias Qualified;`, + `end-ds;`, + ``, + `Dsply dept.deptname;`, + ``, + `return;` + ].join(`\n`); + + const parser = parserSetup(); + const cache = await parser.getDocs(uri, lines); + + assert.strictEqual(cache.files.length, 0); + assert.strictEqual(cache.structs.length, 1); + + const dept = cache.find(`dept`); + assert.strictEqual(dept.subItems.length, 5); + + assert.strictEqual(dept.subItems[0].name, `DEPTNO`); + assert.strictEqual(dept.subItems[1].name, `DEPT_NAME`); } -exports.file_prefix = async () => { - -} \ No newline at end of file +// exports.file_prefix = async () => { +// } \ No newline at end of file diff --git a/tests/tables/department.ts b/tests/tables/department.ts new file mode 100644 index 00000000..56cfc62c --- /dev/null +++ b/tests/tables/department.ts @@ -0,0 +1,522 @@ +export default [ + { + "WHFILE": "DEPARTMENT", + "WHLIB": "TESTLIB", + "WHCRTD": "1220707", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025213000", + "WHNAME": "DEPARTMENT", + "WHSEQ": "3E34F5148594B", + "WHTEXT": "", + "WHFLDN": 5, + "WHRLEN": 66, + "WHFLDI": "DEPTNO", + "WHFLDE": "DEPTNO", + "WHFOBO": 1, + "WHIBO": 1, + "WHFLDB": 3, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "DEPTNO", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 5, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "DEPARTMENT", + "WHLIB": "TESTLIB", + "WHCRTD": "1220707", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025213000", + "WHNAME": "DEPARTMENT", + "WHSEQ": "3E34F5148594B", + "WHTEXT": "", + "WHFLDN": 5, + "WHRLEN": 66, + "WHFLDI": "DEPTNAME", + "WHFLDE": "DEPTNAME", + "WHFOBO": 4, + "WHIBO": 4, + "WHFLDB": 38, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "DEPTNAME", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 5, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "DEPT_NAME", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "Y", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "DEPT_NAME", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "DEPARTMENT", + "WHLIB": "TESTLIB", + "WHCRTD": "1220707", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025213000", + "WHNAME": "DEPARTMENT", + "WHSEQ": "3E34F5148594B", + "WHTEXT": "", + "WHFLDN": 5, + "WHRLEN": 66, + "WHFLDI": "MGRNO", + "WHFLDE": "MGRNO", + "WHFOBO": 42, + "WHIBO": 42, + "WHFLDB": 6, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "MGRNO", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 5, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 5, + "WHDFT": "*NULL", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "Y", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "DEPARTMENT", + "WHLIB": "TESTLIB", + "WHCRTD": "1220707", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025213000", + "WHNAME": "DEPARTMENT", + "WHSEQ": "3E34F5148594B", + "WHTEXT": "", + "WHFLDN": 5, + "WHRLEN": 66, + "WHFLDI": "ADMRDEPT", + "WHFLDE": "ADMRDEPT", + "WHFOBO": 48, + "WHIBO": 48, + "WHFLDB": 3, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "ADMRDEPT", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 5, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 0, + "WHDFT": "", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "N", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + }, + { + "WHFILE": "DEPARTMENT", + "WHLIB": "TESTLIB", + "WHCRTD": "1220707", + "WHFTYP": "P", + "WHCNT": 1, + "WHDTTM": "1221025213000", + "WHNAME": "DEPARTMENT", + "WHSEQ": "3E34F5148594B", + "WHTEXT": "", + "WHFLDN": 5, + "WHRLEN": 66, + "WHFLDI": "LOCATION", + "WHFLDE": "LOCATION", + "WHFOBO": 51, + "WHIBO": 51, + "WHFLDB": 16, + "WHFLDD": 0, + "WHFLDP": 0, + "WHFTXT": "", + "WHRCDE": 0, + "WHRFIL": "", + "WHRLIB": "", + "WHRFMT": "", + "WHRFLD": "", + "WHCHD1": "LOCATION", + "WHCHD2": "", + "WHCHD3": "", + "WHFLDT": "A", + "WHFIOB": "B", + "WHECDE": "", + "WHEWRD": "", + "WHVCNE": 0, + "WHNFLD": 5, + "WHNIND": 0, + "WHSHFT": "", + "WHALTY": "N", + "WHALIS": "", + "WHJREF": 0, + "WHDFTL": 5, + "WHDFT": "*NULL", + "WHCHRI": "N", + "WHCTNT": "N", + "WHFONT": "", + "WHCSWD": 0, + "WHCSHI": 0, + "WHBCNM": "", + "WHBCHI": 0, + "WHMAP": "N", + "WHMAPS": 0, + "WHMAPL": 0, + "WHSYSN": "UT25BP18", + "WHRES1": "", + "WHSQLT": "T", + "WHHEX": "N", + "WHPNTS": 0, + "WHCSID": 37, + "WHFMT": "", + "WHSEP": "", + "WHVARL": "N", + "WHALLC": 0, + "WHNULL": "Y", + "WHFCSN": "", + "WHFCSL": "", + "WHFCPN": "", + "WHFCPL": "", + "WHCDFN": "", + "WHCDFL": "", + "WHDCDF": "", + "WHDCDL": "", + "WHTXRT": "- 1", + "WHFLDG": 0, + "WHFDSL": 0, + "WHFSPS": 0, + "WHCFPS": 0, + "WHIFPS": 0, + "WHDBLL": 0, + "WHDBUN": "", + "WHDBUL": "", + "WHDBFC": "", + "WHDBFI": "", + "WHDBRP": "", + "WHDBWP": "", + "WHDBRC": "", + "WHDBOU": "", + "WHPSUD": "", + "WHBCUH": 0, + "WHFPSW": 0, + "WHFSPW": 0, + "WHCFPW": 0, + "WHIFPW": 0, + "WHRWID": "N", + "WHIDC": "N", + "WHDROW": 0, + "WHDCOL": 0, + "WHALI2": "", + "WHALCH": "", + "WHNRML": "0", + "WHJRF2": 0, + "WHHDNCOL": "0", + "WHRCTS": "", + "WHFPPN": "", + "WHFPLN": "" + } +] \ No newline at end of file diff --git a/tests/tables/index.ts b/tests/tables/index.ts index 47ce6abc..cec06f3a 100644 --- a/tests/tables/index.ts +++ b/tests/tables/index.ts @@ -1,7 +1,9 @@ import emps from './emps'; import employee from './employee'; +import department from './department'; export default { 'EMPS': emps, - 'EMPLOYEE': employee + 'EMPLOYEE': employee, + 'DEPARTMENT': department }; \ No newline at end of file