GithubHelp home page GithubHelp logo

Comments (4)

sergiuilie avatar sergiuilie commented on May 29, 2024

Hello!



We are actively looking into the issues you open! Investigating to understand better what you tried to achieve and adding some DISPLAY commands in the code, using our mainframe compiler I see that the flow is correctly generated and 2000-TEST is performed from 0000-MAIN SECTION. Could you please run the following code and reply with the output? Also, please let us know what compiler are you using.

   IDENTIFICATION DIVISION.
   PROGRAM-ID. HLLOWRLD
   DATA DIVISION. 

   WORKING-STORAGE SECTION. 
   01  USRNAME           PIC X(10).

   PROCEDURE DIVISION.
   0000-MAIN SECTION.
       PERFORM 1000-GET-NAME
       PERFORM 2000-TEST
       DISPLAY 'HELLO 'USRNAME
       GOBACK
       .
   1000-GET-NAME SECTION.
       ACCEPT USRNAME.
       PERFORM 1000-EXIT.
       DISPLAY 'FROM 1000-GET_NAME'.
       PERFORM 2000-TEST.
   1000-EXIT.
       EXIT.
   2000-TEST SECTION.
       DISPLAY 'FROM 2000-TEST-SECTION'.
       PERFORM 2000-EXIT.
   2000-EXIT.
       EXIT.

from cobol-control-flow.

ekuether avatar ekuether commented on May 29, 2024

The output is:
FROM 1000-GET_NAME
FROM 2000-TEST-SECTION
FROM 2000-TEST-SECTION
HELLO USRNAME

Note: USRNAME was replaced by the input from the Accept
We are using IBM Enterprise COBOL Version 6.1

from cobol-control-flow.

ekuether avatar ekuether commented on May 29, 2024

Thus, this was a mistake on my part, and the graph above is actually correct. I was under the assumption an exit was supposed to exit from the section.

from cobol-control-flow.

sergiuilie avatar sergiuilie commented on May 29, 2024

Thank you for your reply! I will proceed and close this issue, please feel free to reopen another issue if encountered.

from cobol-control-flow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.