Microfocus to mainframe cobol

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
Gourav Agarwal
Member
Posts: 3
Joined: Wed Jun 19, 2013 11:31 am

Microfocus to mainframe cobol

Post by Gourav Agarwal » Wed Jun 19, 2013 11:37 am

How to implement LOGICAL OPERATOR (OR,AND,XOR) microfocus cobol commands in mainframe cobol??

Is there any way to map microfocus cobol command to maiframe cobol????

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Wed Jun 19, 2013 11:59 am

If you look at your documentation, you'll find how to tell the compiler to do different things. Micro Focus COBOL "knows" about Mainframe COBOL.

However, there is no way to get Mainframe COBOL to understand syntax which Mainframe COBOL does not support.

Mainframe COBOL manuals are available from IBM. Find them. Look for XOR in the index. Then show the code that you have, for suggestions on how to do what you want on the Mainframe.

When writing COBOL for a "target" compiler, you should always find out FIRST what that compiler supports.

Gourav Agarwal
Member
Posts: 3
Joined: Wed Jun 19, 2013 11:31 am

Post by Gourav Agarwal » Wed Jun 19, 2013 12:25 pm

Can we implement XOR,AND,OR operation in mainframe cobol???

Gourav Agarwal
Member
Posts: 3
Joined: Wed Jun 19, 2013 11:31 am

Post by Gourav Agarwal » Wed Jun 19, 2013 2:05 pm

Can we do operations(AND,OR) on hexadecimals numbers in maiframe cobol???

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Wed Jun 19, 2013 8:54 pm

Probably not as you wish . . .

The last time i used MicroFocus COBOL, the documentation was rather clear about what was mainframe compatible and what was not.

When you mention these functions you Are talking about bit-level operations? Someone could probably write callable assembler code to do what you want.
Have a good one

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Wed Jun 19, 2013 11:39 pm

As I already said, show what you have done, sample inputs, expected output, and you'll get some suggestions. No, there is no direct IBM COBOL support currently for bit operations.

Or just poke this into your preferred internet search, enterprise cobol bit manipulation, and continue your extensive research.

Although IBM COBOL has no support for it, we've managed to do it for many years, when needed.

You just need to think of the affects of AND, OR and XOR, and work out how to achieve the same result using maths, for instance. There is now also some support from Language Environment Callable Services.

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Fri Jun 28, 2013 5:43 pm

Your best bet appears to be 'CEESITST', as it exist in z/OS COBOL - see if this helps you:

http://esj.com/articles/2000/09/01/call ... level.aspx
Regards,
Anuj

academyindia4

Topic deleted by Admin

Post by academyindia4 » Fri Jan 15, 2016 8:55 pm

<< Content deleted By Admin >>

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others