uwol / proleap-cobol-parser

ProLeap ANTLR4-based parser for COBOL
MIT License
137 stars 76 forks source link

How to get substring index (from, to) from cobol file #105

Open akashchavda opened 4 months ago

akashchavda commented 4 months ago

How to get substring index (from, to) from cobol file Exa.

WORKING-STORAGE SECTION.  
01 ALP-NUM PIC X(10) VALUE 'ABC123'. 
LINKAGE SECTION.
PROCEDURE DIVISION.
MAIN.
    MOVE ALP-NUM(1:3) TO ALP-NUM. <-- how to get index (1:3)

please suggest me