Thank you all for your answers, they really were of great value to achieve the goal. I was able to compile using the CARMA tool in IDZ, for now I can only compile online because if I try to do a "submit job in batch" it returns a security violation error, so I'm afraid I need some configurations with the JCL card, but the problem can now be considered as solved.
And again, thanks to everyone.
Original Message:
Sent: Sun March 26, 2023 02:32 PM
From: Gerald Mitchell
Subject: How to compile a cobol program using IDZ
Hello @Yonder Gomez
The source code management may be set up independently of the build processes, so it is possible that you may need to compile and build yourself for personal builds.
The option you mention you use, Broadcom Endevor, is a non-IBM vendor product, as Scott Fagen and Tom Ross mention. As you mentioned, IDz ability to use CARMA interact with that product is described in https://www.ibm.com/docs/en/developer-for-zos/16.0?topic=releases-accessing-ca-endevor-software-change-manager-scm) or you may have IDE plugins from the third-party product to supply that functionality.
As it is operating as the SCM / library, you would be interact to the SCM chain to do actions on the COBOL files checked in to the SCM/library directly, which may vary on capability depending on installation. If you have a DevOps CICD pipeline with the SCM, you may have specific actions or triggers currently ( Check-in, time, specific commands to issue) or not setup for user or personal builds directly. If there is not a pipeline option available to you currently, you may need to use the JCL, or create your own pipeline: you can setup a user build with the correct permissions and DBB with zAppBuild that would allow you to have consistent user builds to compile and link as well as chaining in any testing that you would want. If you want to familiarize yourself with other options for source code management (SCM), DevOps, and CICD pipelines on the mainframe that may be familiar tools if you have worked or learned with outside of the mainframe, there is some excellent information about using git as a source code management for your mainframe development at https://www.ibm.com/training/collection/zdevopstransformationcicdpipelineswithdbbgit
I am happy to discuss the pipeline with you, if you would like.
It is also possible that just the JCL compile and go is enough for now if you are in your learning journey. If you are referencing the SCM but have checked out the file or accessing the project and are doing an independent action to compile, then you can use a JCL to drive the compile step.
With IBM Developer for z/OS, you have an option to assemble, compile, link, and by generating from the COBOL program itself using the tooling for generating the JCL Mary Irby sent references for. I would encourage you learn about how the COBOL language achieves the steps from source code to running with JCL as you are learning, so that you can be aware of the language behavior and how to do the steps this way. In this case what you are looking for is the "compile" step and possibly the "link" step if needed. ( You will also be likely interested in the "go" to se it in action). There is a step by step example that you can use, by doing the Global Auto Mart example, which will show how to assemble, compile, link, and run with IBM Developer for z/OS.
IBM Developer for z/OS option for Generate JCL by right click on the COBOL member/ file will give the generate the JCL to either link, link and compile, or link and compile and go; you can examine the JCL for each in order to see exactly what is going to happen for the step. See https://www.ibm.com/docs/en/developer-for-zos/16.0?topic=jcl-generating-submitting-tracking-viewing-output
I would also point you to the remote syntax check if you are using the compile as a check for validity ass that can be done without generating the object, see https://www.ibm.com/docs/en/developer-for-zos/16.0?topic=syntax-checking-remotely and https://www.ibm.com/docs/en/developer-for-zos/16.0?topic=dependencies-checking-syntax
In case you were unaware, there is free training for IBM Developer for z/OS.
Check out https://ibm.github.io/mainframe-downloads/Training/Training.html which has free self paced online learning with a badge (see https://ibm.github.io/mainframe-downloads/DevOps_Acceleration_Program/idz-self-paced-learning.html ) as well as a free instructor led set of workshops: https://ibm.github.io/mainframe-downloads/Training/idzrdz-remote-training.html and for the badge see https://ibm.github.io/mainframe-downloads/Training/adfz-instructor-led-learning.html .
All of the training materials are also already available in case you want to sneak a peak at any particular section or can't make a session.
------------------------------
Gerald Mitchell
Gerald.Mitchell@ibm.com
Original Message:
Sent: Tue March 21, 2023 03:04 PM
From: Yonder Gomez
Subject: How to compile a cobol program using IDZ
Hello everyone, good day.
I'm starting to learn IBM developer for z/OS, is like eclipse ide but for mainframe. I've been practicing COBOL programs there and I like it. The thing is that I don't know how to compile these programs. When I am in TSO/ISPF I do it from ENDEVOR option.
I already know how to create a cobol member in the library, even add it to endevor through IDZ using deposits CARMA, but I was not be able to find documentation about compilation.
Excuse my english, and thanks for the help
------------------------------
Yonder Gomez
------------------------------