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
 

 

Natural to cobol conversion

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
View previous topic :: :: View next topic  
Author Message
magesh23586

Active User


Joined: 06 Jul 2009
Posts: 158
Location: Chennai

PostPosted: Sat Mar 08, 2014 6:08 pm    Post subject: Natural to cobol conversion
Reply with quote

Hi,

I have requirement to convert two online natural db2 program to CICS Cobol db2.

I don't know natural, If some one can help me, how to approach this, will be great.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1713
Location: UK

PostPosted: Sat Mar 08, 2014 10:44 pm    Post subject: Reply to: Natural to cobol conversion
Reply with quote

    Understand the input
    Understand the output
    Understand how the input was converted to the output by looking at the current program and using the manual
    Design program
    Write program
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sun Mar 09, 2014 12:55 am    Post subject: Reply to: Natural to cobol conversion
Reply with quote

what about looking for the application specifications ???
Back to top
View user's profile Send private message
magesh23586

Active User


Joined: 06 Jul 2009
Posts: 158
Location: Chennai

PostPosted: Thu Mar 13, 2014 2:39 pm    Post subject: Reply to: Natural to cobol conversion
Reply with quote

Thanks for the response, is it possible to get a document/manual having cobol syntax for corresponding natural syntax.

Example
Natural code
Code:

0010     1 PARM-DATA
0020     2 PARM-MAIN-MENU-PGM              A    8
0030     2 PARM-ORIG-CALL-PGM              A    8


Cobol code
Code:

       01 PARM-DATA.
         05 PARM-MAIN-MENU-PGM  PIC X(8).
         05 PARM-ORIG-CALL-PGM  PIC X(8).
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Mar 13, 2014 6:40 pm    Post subject:
Reply with quote

a document, probably not.
but, you could sit down with both natural and cobol documentation,
and determine for yourself by comparing the definitions provided.

neither the firm that supports natural nor
any of the firms that provide cobol (ibm in this case)
want to be responsible for maintaining such a document.
that is why you need to have the reference manuals for both languages.
Back to top
View user's profile Send private message
Ralph Zbrog

New User


Joined: 21 Nov 2009
Posts: 58
Location: California

PostPosted: Fri Mar 14, 2014 11:28 am    Post subject: Reply to: Natural to cobol conversion
Reply with quote

I provide such documentation when teaching Natural to COBOL programmers. Creating COBOL code from Natural is much more difficult.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Mar 14, 2014 5:34 pm    Post subject:
Reply with quote

magesh23586


I Have given this post a little thought in the last day.

Nic gave you the best advice.
Ralph has provided you with a reason.

rewritting programs, especially into different languages,
is not a line by line task, nor should it be.

often the program was written some time ago,
things change and new approaches can be used.

simple input/reformat/calculate totals/output can easily been done by a sort product. (often easier, though one must learn how to code the sort cards.
but Kolusu visits this forum and can expand when Bill can not provide a solution - which is rare).

you have input and output (so you know the expected results)
and there should be some document describing the process.
(though often these do not exist in the 'new' data centers that we have encountered lately).

It is actually easier to write a program based on an existing program
than to write a program from scratch.

admittedly this project requires a little thought and research,
but if done properly,
will enhance your worth with your firm - which is what work is all about.
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 -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Natural ADABAS Opening with CTS enikhilk Mainframe Jobs 0 Wed Nov 30, 2016 5:37 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am


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