TypeCobol icon indicating copy to clipboard operation
TypeCobol copied to clipboard

Capture file name or table in SORT statement

Open fm-117 opened this issue 1 year ago • 1 comments

In current code the StorageArea associated with the file name or table name used as a SORT target is not captured correctly. Change code so as to add the storage area in read dictionary and check how the area is then used in the CrossChecker.

SORT statement operates on tables so the subscript checking is different than the default one:

  • in case of a file SORT, no subscript should appear
  • in case of a table SORT, number of subscripts should leave at least one dimension to sort onto
    • check Cobol specs on that

fm-117 avatar Nov 02 '23 08:11 fm-117

#2592 added the storage area capture but subscript checking is still missing.

fm-117 avatar Nov 06 '23 08:11 fm-117