Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts pointers on using USS and C programs. Pedro All Other Mainframe Topics 0 Wed Oct 04, 2017 4:38 am
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us