From the course: Migrating COBOL Apps

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Navigate code visually with Visual Studio

Navigate code visually with Visual Studio - COBOL Tutorial

From the course: Migrating COBOL Apps

Start my 1-month free trial

Navigate code visually with Visual Studio

- COBOL editors can also provide visual support for program analysis. I'm in visual studio code with my desr.com file open and I've selected the extensions panel at the left. As we can see, I've got the basic COBOL extension for highlighting and also the COBOL control flow extension installed. Let's close that, and right click on the code panel and select view COBOL control flow. I'll pull this across and we can see if we look closely that the program has been analyzed to show the control structure with loops and jump shown. We can expand this view with the mouse wheel. If we look at dser-calc, we can see there's a label loop-calc-b. If we hover over it, the first few lines of code are shown. If we click on it, the execution flow is highlighted and the program code moves to line four nine one where loop-calc-b is in the code. We can also close sections of code by clicking on the circle with the minus sign. For example, at…

Contents