Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : All available storage is assigned to the job or jobstep, If REGION is coded 0K or 0M

Google
 
Web mainframegurukul.com

Microfocus to mainframe cobol

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL
  View previous topic :: View next topic  
Author Message
Gourav Agarwal
Member


Joined: 19 Jun 2013
Posts: 3

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jun 19, 2013 11:37 am    Post subject: Microfocus to mainframe cobol Reply with quote

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????
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.

William Collins
Active Member


Joined: 24 May 2012
Posts: 714

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jun 19, 2013 11:59 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Gourav Agarwal
Member


Joined: 19 Jun 2013
Posts: 3

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jun 19, 2013 12:25 pm    Post subject: Reply with quote

Can we implement XOR,AND,OR operation in mainframe cobol???
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Gourav Agarwal
Member


Joined: 19 Jun 2013
Posts: 3

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jun 19, 2013 2:05 pm    Post subject: Reply with quote

Can we do operations(AND,OR) on hexadecimals numbers in maiframe cobol???
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
DikDude
Moderator


Joined: 22 Jul 2011
Posts: 1001
Location: usa

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jun 19, 2013 8:54 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
William Collins
Active Member


Joined: 24 May 2012
Posts: 714

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Wed Jun 19, 2013 11:39 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1631
Location: Mumbai, India

Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Jun 28, 2013 5:43 pm    Post subject: Reply with quote

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/callable-service-manipulating-binary-data-at-the-bit-level.aspx
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
academyindia4
Guest





Answer was approved by Question owner.
Useful Post
0 votes
Not an useful post
Greate Post!! Salute Author
0 salutes

PostPosted: Fri Jan 15, 2016 8:55 pm    Post subject: Topic deleted by Admin Reply with quote

<< Content deleted By Admin >>
Back to top
Click here, If this post answer your question. <-- Click on right mark icon. If this post answer your question.
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> COBOL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts What is the command in mainframe avoid auto signout(TIMEOUT) 10 rajendra.pallala 16895 Wed Feb 03, 2016 12:50 am
academyindia4 View latest post
No new posts Mainframe Simulator 3 Chandra Shekar G R 8845 Sat Jan 30, 2016 11:35 pm
academyindia4 View latest post
No new posts Free Login Id for any Mainframe Server 6 jyoti 10251 Wed Jan 27, 2016 8:34 pm
academyindia4 View latest post
This topic is locked: you cannot edit posts or make replies. Mainframe Positions 5 Kyle 12487 Sun Apr 29, 2012 6:10 pm
NicC View latest post
No new posts Mainframe Openings For A CMM LEVEL 5 COMPANY 0 Doss 6874 Tue Sep 12, 2006 2:55 pm
Doss View latest post
 


Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-7136.html