Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SECTIONS don't work with PERFORM THRU #88

Open
jfletaso opened this issue May 25, 2021 · 0 comments
Open

SECTIONS don't work with PERFORM THRU #88

jfletaso opened this issue May 25, 2021 · 0 comments

Comments

@jfletaso
Copy link

jfletaso commented May 25, 2021

In this cobol program example:

       PROCEDURE DIVISION.
       
       DISPLAY 'Procedure division'.
       PERFORM FIRST-PARAGRAPH.
       PERFORM FIRST-PARAGRAPH THRU FIFTH-PARAGRAPH.
       PERFORM A0000-FIRST-SEC.
       PERFORM A0000-FIRST-SEC THRU A2000-THIRD-SEC.
       STOP RUN.

       FIRST-PARAGRAPH.
                DISPLAY '1st Paragraph'.
           
       SECOND-PARAGRAPH.
                DISPLAY '2nd Paragraph'.

       A0000-FIRST-SEC SECTION.
                DISPLAY 'A0000 Section'.
       
       THIRD-PARAGRAPH.
       		DISPLAY '3rd Paragraph'.
       		
       A1000-SECOND-SEC SECTION.
                DISPLAY 'A1000 Section'.
       
       FOURTH-PARAGRAPH.
       		DISPLAY '4th Paragraph'.
       		
       A2000-THIRD-SEC SECTION.
	        DISPLAY 'A2000 Section'.
       
       FIFTH-PARAGRAPH.
       		DISPLAY '5th Paragraph'.

In the "PERFORM FIRST-PARAGRAPH THRU FIFTH-PARAGRAPH." sentence, the SECTIONs (A0000-FIRST-SEC, A1000-SECOND-SEC, A2000-THIRD-SEC) are not processed by the parser.

Also, in the "PERFORM A0000-FIRST-SEC THRU A2000-THIRD-SEC." sentence, intermediate section "A1000-SECOND-SEC SECTION" is not processed.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant