Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

how to handle pointers in cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
sathyashree

New User


Joined: 05 Jul 2007
Posts: 3
Location: chennai

PostPosted: Mon Jul 09, 2007 11:29 am    Post subject: how to handle pointers in cobol
Reply with quote

hi friends,

I am doing assembler to cobol migration,how to handle base registers ,registers and addresses in cobol.i supposes that it should be replaced by pointer variables and i am not sure abt that......


pls some one help me....
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Jul 09, 2007 11:34 am    Post subject:
Reply with quote

You should not have to worry aboutbase registers in COBOL, and general register usage can pretty much ignored to.
Dsect in assembler is where you would use COBOL pointers and the linkage section.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jul 09, 2007 12:25 pm    Post subject:
Reply with quote

Hello,

As i've mentioned in the past when this is asked, one good way to convert assembler to cobol is to determine what business rules the code is supporting and working toward that goal.

Trying to replace assembler with cobol instruction by instruction is most frustrating and unproductive. Working routine by routine will be more effective.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Jul 09, 2007 12:30 pm    Post subject:
Reply with quote

sathyashree wrote:
Thanks for ur reply,but wat to do with that registers,while convering from assembler to cobol instead of registers v should use pointer variable know...?
Registers are used for many reasons, each usage has an equivalent in COBOL.
The general base registers can be ignored since COBOL will take care of that.
Registers can provide dsect addressability, pointers and linkage section items can substitute there.
Registers can be used for incrementing and decrementing, such as indexes and subscripts.
Back to top
View user's profile Send private message
haibrs

New User


Joined: 03 Jan 2007
Posts: 8
Location: Mumbai

PostPosted: Tue Jul 17, 2007 5:01 pm    Post subject:
Reply with quote

Hi,
Conversion from Assembler to COBOL is to make the Application Programming more user friendly. In assembly mostly we use registers, adressing concepts more. Recently i have worked one the same kind of projects. So i can suggest U the best way is try to understand the Businees of the application and extract the "businees rules" and create the new requirements for the same in COBOL. but it requires lot of efforts and also time.
All the best!!!

Regards,
BRS.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us