IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

COBOL for System Programming


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
yaju4ever
Warnings : 1

New User


Joined: 30 Sep 2006
Posts: 19
Location: mumbai

PostPosted: Thu Dec 07, 2006 12:05 pm
Reply with quote

DEAR GROUP MEMBERS PLEASE LET ME KNOW WHETHER COBOL IS PLATFORM INDEPENDENT LIKE JAVA AND WHAT ARE DISADVANTAGES OF USING COBOL AS PROGRAMMING LANGUAGE.

Warning: Title Edited
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Thu Dec 07, 2006 12:25 pm
Reply with quote

Java and c are programing language used to code system programing but cobol is mainly used for buisiness applications in which there is no question of
platform.Cobol cannot be used in the system programing

know me if i am wrong
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Dec 08, 2006 12:54 am
Reply with quote

Are you serious?

O.
Back to top
View user's profile Send private message
muthukannan

New User


Joined: 03 Aug 2006
Posts: 42
Location: Chennai

PostPosted: Fri Dec 08, 2006 9:01 am
Reply with quote

Hi,
COBOL Purely a Business language. It can't be used to code any system program.


Know me if am wrong.
Thank you,
MK
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Fri Dec 08, 2006 9:57 am
Reply with quote

ofer71 wrote:
Are you serious?

O.


absolutely not
Back to top
View user's profile Send private message
muthukannan

New User


Joined: 03 Aug 2006
Posts: 42
Location: Chennai

PostPosted: Fri Dec 08, 2006 4:28 pm
Reply with quote

Yeah i do.

Thank you, icon_rolleyes.gif
MK
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Dec 08, 2006 4:33 pm
Reply with quote

muthukannan -

Please check your resources again. I've seen many system programmers using COBOL for their needs; from the other hand, there are many business application written in Java and C.

O.
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Fri Dec 08, 2006 4:36 pm
Reply with quote

hello ofer71 can you please explain what needs of system programers is satisfied by cobol
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Fri Dec 08, 2006 6:12 pm
Reply with quote

cobolunni wrote:
Java and c are programing language used to code system programing but cobol is mainly used for buisiness applications in which there is no question of
platform.Cobol cannot be used in the system programing

know me if i am wrong

Poppycock icon_rolleyes.gif
C is the system code for unix, I doubt much about Java and COBOL is more oriented to business applications but generally once it has been compiled it is all equivalent to assembler, i.e., machine specific code.
Back to top
View user's profile Send private message
yaju4ever
Warnings : 1

New User


Joined: 30 Sep 2006
Posts: 19
Location: mumbai

PostPosted: Fri Dec 08, 2006 8:26 pm
Reply with quote

as per the above discussion still i am not able to understand whether cobol is platform independent,,,,let me know abt this point....
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Fri Dec 08, 2006 8:47 pm
Reply with quote

Uncompiled COBOL is almost platform independant.

The major platform dependency lies in the input-output section, the program's interface with the hardware.

Cobol written without taking advantage of the compiler's extentions should compile under most if not all compilers and run on most if not all platforms.
Back to top
View user's profile Send private message
yaju4ever
Warnings : 1

New User


Joined: 30 Sep 2006
Posts: 19
Location: mumbai

PostPosted: Fri Dec 08, 2006 10:27 pm
Reply with quote

well as per my knowledge cobol can not be used for developing system applications....coz there are no provisions for hardware interactions like in c we can use assembly language using ASM option in the coding sheet....so it is possible to opreate hardwares through language commands....correct me if i am wrong....
Back to top
View user's profile Send private message
William Thompson

Global Moderator


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

PostPosted: Fri Dec 08, 2006 10:37 pm
Reply with quote

What does this have to do with platform independence?

Just about all things doable can be done with COBOL, maybe not the best tool for some things but doable.

What "hardware interactions" are you referring to?

COBOL can also use assembly language.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Dec 10, 2006 9:54 am
Reply with quote

COBOL pgms cannot modify system cntl blks and data areas.

Only recently, with the advent of the POINTER facility has COBOL been able to access (but not modify) system cntl blks, etc.

So I'd have to agree that COBOL doesn't lend itself to syspgming. Assembler is the tool of choice for that in the current zOS environment.
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Mon Dec 11, 2006 10:34 am
Reply with quote

No program can be platform independent even java is not platform independent without JVM . So without a virtual machine to run that program it will not be a platform independent language


Quote:
Uncompiled COBOL is almost platform independant.

william uncompiled program is like a text in text editor there is no question for platform for a text

Also cobol is not a platform independent language
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
Search our Forums:

Back to Top