Generating, Compiling COBOL

Generating, Compiling COBOL

Articles in this series are showing us how to develop bridge applications. In the previous article we created a web service in Jazz. Now we need to turn this into COBOL. It takes one click!

With the Jazz workbench displaying a valid program (no S-level messages), click [Process]. When the next button turns green, you can click this to see your COBOL. Here it is. Over 2600 lines of COBOL including comments: the ENVIRONMENT DIVISION lists the Jazz program as comments (61 lines), DATA DIVISION is 491 lines, and PROCEDURE division is 2041 lines. It compiles cleanly.

2041 lines may seem a lot of logic but consider what is being done. An important part of JSPG2's job is to ensure that invalid data is not let through to the database. This statement from the Update logic: -

must check that each of the 16 fields named in message #207 is correct for its data definition. Look at the code of paragraph JZ-58-ACCEPT where this is implemented. This alone is 494 lines, and it's only part of JSPG2's job.

If you have configured MANASYS Jazz to work with z/OS the next button will be labelled [Job Results]. The COBOL is generated locally and uploaded to z/OS, and a job is submitted to compile this. What you'll see will be the output of this job. If it takes longer than 30 seconds for the results to be returned and the button to turn green, check if the job queue has been paused. If you just want to see the COBOL, right-click [Process], click [Generate COBOL] from the Process form, and then [Review COBOL]. This will only take a few seconds, and nothing is sent to z/OS.

If you have configured MANASYS Jazz to work with Micro Focus, the button will be labelled with the name of your COBOL project - in my case [TstSQL] - and it will only take a few seconds for the button to turn green. When you click it, you'll open your COBOL project, where you can compile your program if it's shown in Solution Explorer. If not, you need to add it to the COBOL project first. Right-click cbl, select Add/Existing item:

This opens Windows Explorer. Navigate to your COBOL program (/cbl/JSPG2) and click [Add]. It now appears in Solution Explorer. Right-click the program, and select Compile from the drop-down menu.

This is the 6th article in this series about developing bridge applications. The next article will deal with "Binding": how we generate the JSON that we need to allow our web services to communicate.

See our web page if you want more information about MANASYS Jazz and to see what it can do. Contact us if you have any questions, or connect with us on LinkedIn. Download a free evaluation copy to try out MANASYS Jazz yourself. And if you haven't done so already, please repost the link to this series of articles to your colleagues and contacts.



Abdelatif E.

Consultant senior & Referent technique

1 年

Thank you for this interesting article

回复

要查看或添加评论,请登录

Robert Barnes的更多文章

  • New Licensing Rules for MANASYS Jazz

    New Licensing Rules for MANASYS Jazz

    DXC Technology have started another Easytrieve Conversion project using MANASYS Jazz. There are two good reasons to use…

    3 条评论
  • The Many Charms of COBOL

    The Many Charms of COBOL

    Our development software MANASYS Jazz functions by generating COBOL, so I always notice publications about COBOL and…

  • MANASYS Jazz now supports DL/I

    MANASYS Jazz now supports DL/I

    EasiRun, our German reseller, has customers that are interested in Easytrieve Conversion with MANASYS Jazz, but have…

  • EasiRun to be a MANASYS Jazz Reseller

    EasiRun to be a MANASYS Jazz Reseller

    Jazz Software Ltd is delighted to announce the appointment of EasiRun Europa GmbH as a reseller of its software…

    6 条评论
  • MANASYS Jazz Build #308 Now Released

    MANASYS Jazz Build #308 Now Released

    Build 3.17.

    2 条评论
  • References

    References

    Over 14 articles, this series has shown you how easy it is to write bridge applications in which your COBOL Web Service…

  • Where Next with Bridge Apps?

    Where Next with Bridge Apps?

    This is article 14 of this series. By the previous article we'd seen that our bridge technology is already very…

  • Review

    Review

    This is the 13th article in this series, and we've covered all parts of developing bridge applications. What have we…

  • Debugging Bridge Applications

    Debugging Bridge Applications

    This is the 12th article in this series. Errors can occur in any software, but the way bridge architecture separates…

  • Changing Bridge Applications

    Changing Bridge Applications

    These articles have shown you how to develop all three components of a bridge application. Most of the logic has been…

社区洞察

其他会员也浏览了