cobol cics db2 compiling



cobol cics db2 compiling

Postby sidcobo » Fri Apr 15, 2011 9:17 pm

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.
sidcobo
 
Posts: 5
Joined: Fri Apr 15, 2011 8:48 pm
Has thanked: 0 time
Been thanked: 0 time

Re: cobol cics db2 compiling

Postby Akatsukami » Fri Apr 15, 2011 10:28 pm

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.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1058
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: cobol cics db2 compiling

Postby enrico-sorichetti » Fri Apr 15, 2011 10:39 pm

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!
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3003
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Re: cobol cics db2 compiling

Postby Robert Sample » Fri Apr 15, 2011 10:56 pm

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: cobol cics db2 compiling

Postby sidcobo » Fri Apr 15, 2011 11:50 pm

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.
sidcobo
 
Posts: 5
Joined: Fri Apr 15, 2011 8:48 pm
Has thanked: 0 time
Been thanked: 0 time

Re: cobol cics db2 compiling

Postby sidcobo » Sat Apr 16, 2011 12:09 am

testando
sidcobo
 
Posts: 5
Joined: Fri Apr 15, 2011 8:48 pm
Has thanked: 0 time
Been thanked: 0 time

Re: cobol cics db2 compiling

Postby sidcobo » Sat Apr 16, 2011 12:12 am

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.
sidcobo
 
Posts: 5
Joined: Fri Apr 15, 2011 8:48 pm
Has thanked: 0 time
Been thanked: 0 time

Re: cobol cics db2 compiling

Postby Robert Sample » Sat Apr 16, 2011 12:24 am

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: cobol cics db2 compiling

Postby sidcobo » Sat Apr 16, 2011 12:28 am

Robert, thank you very much. Now I have a point to start from :)
sidcobo
 
Posts: 5
Joined: Fri Apr 15, 2011 8:48 pm
Has thanked: 0 time
Been thanked: 0 time

Re: cobol cics db2 compiling

Postby enrico-sorichetti » Sat Apr 16, 2011 12:47 am

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3003
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 164 times

Next

Return to Stupid Questions

 


  • Related topics
    Replies
    Views
    Last post