Assembler program needs to convert into COBOL

Ask/Clarify the questions on ASSEMBLER language.

Moderator: Moderator Group

Post Reply
sekhar.k
Member
Posts: 7
Joined: Tue Oct 12, 2010 11:35 am

Assembler program needs to convert into COBOL

Post by sekhar.k » Wed Oct 13, 2010 9:34 am

Hi...
I have a requirement to convert an assembler program to cobol program.

Please help me regarding this.

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

Post by Anuj Dhawan » Wed Oct 13, 2010 12:56 pm

There are some sites/tool claim to have this kind of conversions: http://www.cornerstone.nl/ and www.caseconsult.com . But I've not verified them.

This is from IBM: http://www.ibm.com/developerworks/syste ... cobol.html
Regards,
Anuj

sekhar.k
Member
Posts: 7
Joined: Tue Oct 12, 2010 11:35 am

I am not able to find any related information

Post by sekhar.k » Wed Oct 13, 2010 2:28 pm

Anuj... I have gone through those links, but i didn't find any related information. Is assembly language code depends on a machine/environment? Actually I don't have any idea about assembly language. how assembly which codeded on Z/OS is same as normal assembly language?
We are calling one assembler program from JCL by passing one parameter. In the IBM link I found that the passing parameters will be receiving by using DSECT. but I didn't find that DSECT in my assembler program.

Thanks....

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Wed Oct 13, 2010 2:40 pm

Since assembler can do so many things that COBOL can not,
attempting to convert the assembler to COBOL per/line of code
I have found to be a waste of time.

One should understand the function/business application of the assembler program,
develop design specs (if not already at hand)
and then develop the COBOL code necessary to perform the business function.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

sekhar.k
Member
Posts: 7
Joined: Tue Oct 12, 2010 11:35 am

Post by sekhar.k » Wed Oct 13, 2010 4:16 pm

thanks brenholtz....

sekhar.k
Member
Posts: 7
Joined: Tue Oct 12, 2010 11:35 am

Post by sekhar.k » Wed Oct 13, 2010 4:16 pm

thanks brenholtz....

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

Post by Anuj Dhawan » Wed Oct 13, 2010 6:05 pm

I agree with Dick and several people recommended that you understand what an assembler module is doing and then re-write it in COBOL. Do not try to convert line for line.
Regards,
Anuj

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