Page 1 of 2

cobol cics db2 compiling

PostPosted: Fri Apr 15, 2011 9:17 pm
by sidcobo
perhaps someone can help me.
I need Jobs for compiling cobol, cobol + cics, cobol + cics +DB2 programs.
Also need to know which PDS i should create for puting on them thes source, load and "executable" modules.
I'm a COBOL programmer , but never payed attention to these JOBs, now i'm trying to work using HERCULES but don't know really what i should create.

Re: cobol cics db2 compiling

PostPosted: Fri Apr 15, 2011 10:28 pm
by Akatsukami
sidcobo wrote:I need Jobs for compiling cobol, cobol + cics, cobol + cics +DB2 programs.

The Enterprise COBOL for z/OS Programming Guide contains sample JCL for vanilla COBOL compiles. You'll probably find JCL for COBOL/CICS and COBOL/CICS/DB2 programs in the appropriate CICS manual, although as I'm not a CICS developer and therefore don't know the CICS documents I can't say exactly where.
Also need to know which PDS i should create for puting on them thes source, load and "executable" modules.

Your source and object libraries will be RECFM=FB, LRECL=80. your load library will be RECFM=U; you'll probably want to make the block size equal to a half-track on your virtual DASD. Programs using DB2 will also need a DBRM library with RECFM=FB and LRECL=80; again, not being a CICS developer I don't know what, if any, additional libraries you'll need for programs using CICS.

Re: cobol cics db2 compiling

PostPosted: Fri Apr 15, 2011 10:39 pm
by enrico-sorichetti
it would be nice to know which operating system the TS is running!
hercules is just the bare iron emulator, no operating system is provided!

Re: cobol cics db2 compiling

PostPosted: Fri Apr 15, 2011 10:56 pm
by Robert Sample
sidcobo, I think you need to clarify what you're wanting a bit.

If you are talking about COBOL - CICS - DB2 compiles at your work site, there should be standard compile processes in place already that you should follow. You should not invent your own way to compile programs as site standards are developed for specific reasons.

If you are talking about COBOL - CICS - DB2 compiles on your Hercules emulator, you have at least 2 problems I can see.:
(1) As mentioned in another post, Hercules requires an operating system (such as MVS 3.8) running on top of it to make a usable system; just running Hercules gets you the architectural emulation only.
(2) IBM does not license CICS or DB2 for Hercules (and I'm not sure if COBOL is available for Hercules, either). In order to install CICS and DB2 on Hercules (which you have to do in order to use the precompilers), you have to violate IBM license terms and subject the company from which the software came to (potentially quite severe) penalties. Personally, even if I had done so, I would not let anybody know (especially a public forum like this) since you're just begging IBM to investigate your situation.

Re: cobol cics db2 compiling

PostPosted: Fri Apr 15, 2011 11:50 pm
by sidcobo
Thank you all for the reply.
I'm using now Fan DeZhi Mainframe System Z/OS

I can't get into their forum, there's a problem. I try to register but it says i'm banned.
That's why i fortuetly found this forum.

Re: cobol cics db2 compiling

PostPosted: Sat Apr 16, 2011 12:09 am
by sidcobo
testando

Re: cobol cics db2 compiling

PostPosted: Sat Apr 16, 2011 12:12 am
by sidcobo
Thank you, Robert.
I think i've made a mistake. I'm using Fan DeZhi Mainframe System, which i suppose have all needed license.
My problem is that i can't get into their forum.

Re: cobol cics db2 compiling

PostPosted: Sat Apr 16, 2011 12:24 am
by Robert Sample
Library names tend to be site specific, so you may have to do some searching to find the exact names.

COBOL is usually installed as IGY.V?R?M?.SIGYPROC -- this library contains the procedures for basic COBOL compile, compile and link, compile and go, compile link and go, and so forth. The Programming Guide manual section 2.1.1.1 discusses the various compile procedures.

CICS is often (but not always) installed as CICSTS??.CICS.SDFHPROC -- this library contains various compile procedures (for BMS maps, assembler progams, COBOL programs, and so forth). Sections 2.1 and 2.2 of the CICS Application Programming Guide manual discuss the various procedures.

I don't use DB2 at this site so you'll have to get someone else to find the DB2 installation procedure library for you.

Re: cobol cics db2 compiling

PostPosted: Sat Apr 16, 2011 12:28 am
by sidcobo
Robert, thank you very much. Now I have a point to start from :)

Re: cobol cics db2 compiling

PostPosted: Sat Apr 16, 2011 12:47 am
by enrico-sorichetti
which i suppose have all needed license.

You suppose wrong !

see here why
operating-systems/topic3074.html?hilit=adcd

the current IPLINFO gives

Central Processing Complex (CPC) Information:
CPC SI = 2187.EMUL.HRC.ZZ.000000000008A09F

they run a zOS which is quite outdated 1.6
and they did not even care to hid the ADCD origin