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
 

 

Assembler vs cobol (any other langauage)

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

New User


Joined: 19 May 2005
Posts: 31

PostPosted: Tue Apr 08, 2008 8:13 pm    Post subject: Assembler vs cobol (any other langauage)
Reply with quote

Hi Guys,

Though i have experience in assembler just wanted to know about this.
Can you guys explain why we need to use assembler instead of cobol or any other language.(In terms of I/O process, storage, the things which we cant achieve using cobol and instead we use assembler ......etc)

If you feel this question is very basic sorry for that. explain me your suggestions whatever you have experienced.

please explain me briefly.



Thanks,
Gafur.
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Tue Apr 08, 2008 8:43 pm    Post subject: Re: Assembler vs cobol (any other langauage)
Reply with quote

GAFUR wrote:
Can you guys explain why we need to use assembler instead of cobol or any other language.(In terms of I/O process, storage, the things which we cant achieve using cobol and instead we use assembler ......etc)
Because there are "things which we cant achieve using cobol".....
Back to top
View user's profile Send private message
Phrzby Phil

Active Member


Joined: 31 Oct 2006
Posts: 962
Location: Richmond, Virginia

PostPosted: Tue Apr 08, 2008 8:50 pm    Post subject:
Reply with quote

For a beginner this is a very good question. As a teacher, I feel that every programmer should have had at least a minimal programming course in assembler, because that's what's really running when you run your compiled code.

Some odd programming results (or even compiler bugs) can only be identified by looking at the compiler's output.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Apr 08, 2008 9:00 pm    Post subject:
Reply with quote

Continuing Phil's reply, a CICS/Assembler Macro which I use often is DFHAFCD TYPE=LOCATE,REG=R15.

When used, this Macro can programmatically determine the run-environment (Batch or CICS).

You CAN do this in COBOL, although it would require the hard-coding of operating-system offsets and I would NOT recommend this as if these offsets changed, you'd have to change the COBOL program, whereas, it's a matter of re-assembling the Assembler program and you're done.

Regards,

Bill
Back to top
View user's profile Send private message
Mistermind
Warnings : 2

New User


Joined: 08 Feb 2008
Posts: 46
Location: Dublin

PostPosted: Fri Apr 11, 2008 2:29 am    Post subject:
Reply with quote

A cobol or PL/I program begins with a proglogue of about 3000 assembler instructions to set up the higher level language environment. An assembler program will go straight into action. So if repetition and processing speed is an issue, assembler has the edge.

As previously mentioned, assembler application code can interface with any IBM-supplied system macro as well as other installation-written macros, but cobol and PL/I cannot.
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
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
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Dump analysis of an assembler module monica1 PL/I & Assembler 4 Tue May 09, 2017 10:05 am
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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