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

Fix/folding evaluate #2225

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

ap891843
Copy link
Contributor

@ap891843 ap891843 commented Feb 7, 2024

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Folding should work on below code
       IDENTIFICATION DIVISION.
       PROGRAM-ID. COPY-FOLDING.
       DATA DIVISION.
       WORKING-STORAGE SECTION.
       01 CHECK pic x(9).
       01 evaluate-var pic x(9).
       PROCEDURE DIVISION.
           EXEC CICS 
               ABEND abcode ('we')
           END-EXEC.
       sample1.
           display "under sample para".
       test1.
           if check not ZERO
               display "under if condition."
               display "asas"
           END-IF.
       test2.
           EVALUATE evaluate-var
               WHEN 'add'
                   DISPLAY 'ADD'
                   EXEC CICS 
                       ABEND ABCODE('9999') 
                    END-EXEC.
               WHEN 'update'
                   DISPLAY 'UPDATE'
                    if evaluate-var
                        perform XXX 
                        THRU YYYY
                        go to common-return
                    ELSE
                        perform zzz 
                        THRU uuuu
                        go to common-return
                END-IF

               WHEN OTHER
                   PERFORM SAMPLE1
           END-EVALUATE.

       common-return.
           display "exit".
       zzz.
       xxx.
       yyyy.
       uuuu.

Checklist:

  • Each of my commits contains one meaningful change
  • I have performed rebase of my branch on top of the development
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have checked my code and corrected any misspellings

@ap891843 ap891843 marked this pull request as draft February 7, 2024 10:55
Signed-off-by: Aman Prashant <aman.prashant@broadcom.com>
@ap891843 ap891843 marked this pull request as ready for review February 12, 2024 12:57
@ap891843 ap891843 requested a review from ishche February 12, 2024 12:57
@ap891843 ap891843 merged commit 70a752d into eclipse-che4z:development Feb 12, 2024
16 checks passed
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

Successfully merging this pull request may close these issues.

2 participants