How widespread is C/C++ on z/OS???



Help for C/C++ for MVS, OS/390 C/C++, z/OS C/C++ and C/C++ Productivity Tools for OS/390

How widespread is C/C++ on z/OS???

Postby Duffy » Sun Aug 15, 2010 12:30 am

Greetings,

We are a software developer for IBM Mainframe. Thinking of writing some new code in C/C++. Looked on our devlopment machine which is Z/OS 1.4 and can find no sample compile JCL etc. Asked a customer if he had C/C++ runtime support and he asked me where to look! (not a good sign).

Does anyone know is C/C++ is available on most mainframes?? If so is there a certain release foward that it can be found on?? Where is compile sample, link, etc??

Thanks!

Duffy
Duffy
 
Posts: 2
Joined: Sat Aug 14, 2010 12:54 am
Has thanked: 0 time
Been thanked: 0 time

Re: How widespread is C/C++ on z/OS???

Postby steve-myers » Sun Aug 15, 2010 1:50 am

C/C++ is provided with z/OS, as is the run time. I'm not as comfortable with the stability of the C++ runtime; IBM appears to keep changing the feature set, but the C runtime should be extremely stable.

FWIW, your z/OS development environment is ancient history. The current z/OS is 1.11, with 1.12 shipping in September. You really should upgrade.

The other mainframe issue is there are really 2, possibly 3, environments you should think about.
  • Regular batch / TSO. This environment is EBCDIC character set based, and the I/O runtime is mapped, generally pretty will, into z/OS data set structures.
  • UNIX System Services environment. This environment is also EBCDIC, but it has a file system very much like the UNIX environment you're probably familiar with.
  • Mainframe LINUX. This is an ASCII environment, but it sits off in its little corner with very limited access to z/OS data, both UNIX System Services data as well as regular z/OS data. This means very limited access to z/OS DB2 or IMS type data, and you can't use the extremely effective z/OS tools like sort.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: How widespread is C/C++ on z/OS???

Postby NicC » Sun Aug 15, 2010 1:53 am

Back about 1997 or so I was interviewed by IBM for a position as a C programmer coding updates to MQ - I should have tried to get the job! Anyway, at least some of the middleware is written in C. Do not know about applications. IBM might be able to give you some pointers.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How widespread is C/C++ on z/OS???

Postby MrSpock » Sun Aug 15, 2010 3:02 am

Isn't all of the new stuff pretty much done exclusively with Java or J2EE these days? I don't recall that C/C++ ever really took off outside of the Unix world ...
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: How widespread is C/C++ on z/OS???

Postby steve-myers » Sun Aug 15, 2010 5:25 am

IBM has done quite a lot in mainframe C, though it's hard to spot unless you check the load modules. I think much of mainframe DB2 is C, and i wouldn't be surprised if much of the Binder is C.

C is (or at least it used to be) popular in PC applications, so I wouldn't say its use is restricted to Unix.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: How widespread is C/C++ on z/OS???

Postby dick scherrer » Sun Aug 15, 2010 5:47 am

Hello,

As C begat C++, C++ begat C# (c-sharp). Several win-based developers i've worked with greatly prefer Visual C# to other C implementations as well as over Visual Basic. Visual Studio supports them both quite well.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: How widespread is C/C++ on z/OS???

Postby Robert Sample » Sun Aug 15, 2010 7:31 am

The IBM link is http://www-01.ibm.com/software/awdtools/czos/
which says
z/OS XL C/C++ compiler is an optional priced feature of the z/OS operating system
so it is not free -- but definitely available. I don't think it is widely used but I'm sure there are some applications using it.
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: How widespread is C/C++ on z/OS???

Postby Greenhouse » Sun Aug 15, 2010 11:57 am

Robert Sample wrote:The IBM link is http://www-01.ibm.com/software/awdtools/czos/
which says
z/OS XL C/C++ compiler is an optional priced feature of the z/OS operating system
so it is not free -- but definitely available. I don't think it is widely used but I'm sure there are some applications using it.


The topic is not about C/C++ compiler but about C/C++ runtime support
Greenhouse
 
Posts: 25
Joined: Tue Sep 02, 2008 1:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How widespread is C/C++ on z/OS???

Postby NicC » Sun Aug 15, 2010 2:07 pm

It is indeed about C/C++ compiler as the OP is considering developing in C or C++ for which he needs a compiler. Once compiled and linked you still need runtime support so that is relevant as well.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: How widespread is C/C++ on z/OS???

Postby Greenhouse » Sun Aug 15, 2010 2:46 pm

Duffy wrote:Greetings,
Asked a customer if he had C/C++ runtime support and he asked me where to look! (not a good sign).
Duffy


To run C/C++ load module you need to have these libs:
LIBPRFX.SCEERUN2
LIBPRFX.SCEERUN
CLBPRFX.SCLBDLL
CLBPRFX.SCLBDLL2
Greenhouse
 
Posts: 25
Joined: Tue Sep 02, 2008 1:53 pm
Has thanked: 0 time
Been thanked: 0 time

Next

Return to C, C++