View previous topic :: View next topic
|
Author |
Message |
Grant Goodale
New User
Joined: 13 Nov 2010 Posts: 67 Location: Brampton, Ontario, Canada
|
|
|
|
We have a legacy Cobol program that calls an Assembler routine dynamically for table handling functions. We want to convert this Assembler routine to C/C++. That is no big problem. the problem comes in when the C++ is running in 64 bit mode. This requires that the C++ be set up as XPLINK. However, the Language Environment manuals state that a Cobol dynamic call of an XPLINK function is not supported.
I have tried creating a small Assembler module as "glue" code but the parameters passed into C++ end up being junk.
Has anyone addressed any similar problems of mixing Cobol and C++ dynamically?
TIA |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
why C++ and why 64bits
do You have a <doctors> prescription for that ?
in one of Your previous post we discussed about C not C++ |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
HLASM can run above the bar, so why C or C++?
COBOL will NEVER be above the bar in the near future but perhaps, one day.
Is this a management directive?
Bill |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
/sillyness on
C++ is for lame programmers
they can legally tell that they did not make errors... they just inherited them
/sillyness off |
|
Back to top |
|
|
Grant Goodale
New User
Joined: 13 Nov 2010 Posts: 67 Location: Brampton, Ontario, Canada
|
|
|
|
We have already converted the Assembler to 64 bit and that runs just fine.
They want to convert to C so that future maintenance might be easier. Us old Assembler types are starting to die off and they are thinking down the road.
They have no desire to have Cobol above the bar. This is a table handling subourtine and it now handles some very big tables -3GB plus. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Well, I can't help from here. I'm not that literate in C.
This sounds like one of those management decisions, like "If our Assembler person gets hit by a bus, who will maintain this routine".
Of course, these are the builtin-in scare tactics that they use for justification.
But, as I eluded to, COBOL will never be above the bar and won't go beyond AMODE 31. However, never versions of Enterprise PL/I can go above the bar.
Assembler will always be around, long after we're all dust in the wind, so this seems like an overreaction.
You could pass this on to your next Journeyman?
Bill |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Bill O'Boyle wrote: |
This sounds like one of those management decisions, like "If our Assembler person gets hit by a bus, who will maintain this routine". |
This sentence was actually told in some of your meetings, Bill...or...?
I had a good laugh, however... |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hi Anuj,
Quote: |
This sentence was actually told in some of your meetings, Bill...or...? |
This is often heard in meetings and in one-on-one converstion.
When someone has knowledge that would be needed but has not been distributed (meeting or e-mail or other document) they might say something like: "If i get hit by a bus, the cd with the data is in my cabinet".
They don't really expect to get hit by a bus, but this is used generically to refer to a sudden unexpected absence |
|
Back to top |
|
|
|