MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Father's Mainframe - To take or not to take!

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics
View previous topic :: View next topic  
Author Message
Himesh
CICS Forum Moderator
CICS Forum Moderator


Joined: 20 Dec 2002
Posts: 80
Topics: 21
Location: Chicago

PostPosted: Thu Jan 30, 2003 7:20 am    Post subject: Father's Mainframe - To take or not to take! Reply with quote

Pardon me for the title. Smile

Found two articles that i would like to share.

This is your Father's IBM, Only Smarter

It's not your father's mainframe anymore


regards,
Himesh
Back to top
View user's profile Send private message Yahoo Messenger
zatlas
Beginner


Joined: 17 Dec 2002
Posts: 43
Topics: 4

PostPosted: Thu Jan 30, 2003 10:23 pm    Post subject: Reply with quote

There are only two problems with the scheme described in the scond article:
a) There is no ISPF for linux and you have to resort to one of these useless Unix editors like Emacs or Vi. Sad
b) There is no decent COBOL compiler and you have to resort to C or even worse C++ Laughing
Oh, and you do not know the length of text record in advance, you have to look for end of line.

OTH, Perl is available freely on this platform Very Happy
ZA
Back to top
View user's profile Send private message
DaveyC
Moderator


Joined: 02 Dec 2002
Posts: 151
Topics: 3
Location: Perth, Western Australia

PostPosted: Fri Jan 31, 2003 5:02 am    Post subject: Reply with quote

You can use SlickEdit which has a superb ISPF emulator. Best editor on the market...

ZAtlas, for somebody who is a big fan of Perl, you seem to be anti C. Last time I looked Perl had very similar syntax to C/C++. Also, can you give me a good reason why anybody would want to write COBOL code for Linux ?
_________________
Dave Crayford
Back to top
View user's profile Send private message Send e-mail
zatlas
Beginner


Joined: 17 Dec 2002
Posts: 43
Topics: 4

PostPosted: Fri Jan 31, 2003 9:58 am    Post subject: Reply with quote

Hi Dave
1. Actually, I love C, even though it does not show in my postings. I am from the generation that used to code whole business systems in Assembler (the stupid decision to do so was my bosses' not mine.) In any case, C is probably the best Assembler replacement around and if both are available I would use C over Assembler any time.
2. I do not take back my comment about Emacs and Vi, so thank you for the hint. I will have to have a good look at this Slickedit.
3. Here is where I differ from the C camp: While C (and I guess C++ and Java and all the other object oriented objects out there) make great devices for nerdy system programmers (probably like both of us,) there is no justification to code business logic in those cryptic and read-resisting languages. I actually have even problems with any non-static storage allocation for business logic. It could be done behind the scene, Albright - but should not show in the business code. That's why I would like to have COBOL - and you know what - the none object oriented, the straightforward one - in any business logic development environment.
You know what else, we do demand from our compilers to take care of the optimization and push the efficient usage of the CPU. Why don't we demand from our compilers to hide all this s--- about whether we allocate memory from the heap or from the stack or from God only knows where. Why do we care whether we point to an object or just reference it? Why do we have to overload the poor shift operator ('<<') to mean iostream when we may simply issue a read command?
That's why I want COBOL!
ZA
Back to top
View user's profile Send private message
DaveyC
Moderator


Joined: 02 Dec 2002
Posts: 151
Topics: 3
Location: Perth, Western Australia

PostPosted: Mon Feb 03, 2003 6:24 am    Post subject: Reply with quote

Quote:
Why don't we demand from our compilers to hide all this s--- about whether we allocate memory from the heap or from the stack or from God only knows where


Nowhere in the C/C++ standards will you find any reference to a Stack. Some implementations don't have program stacks. That's why the C alloca() function is not portable.

The big reason for using Linux on the mainframe is for web applications. IBMs language of choice for doing that is Java. Java doesn't have the dangerous features of C++ (pointers, memory leaks etc) so is pretty safe to write code with.
Also, reading a Linux directory/file is not well suited to COBOL, which is designed for processing records, not streams or HFS structures.

I personally don't see why COBOL should be considered better for writing business logic, and I used to write COBOL programs. In the last 20 odd years a big emphasis has been put on information hiding (all variables in a COBOL program are global to the file) and loose coupling (all procedures in a COBOL program are coupled). OO COBOL has not taken off (programmers had no interest) and is now only supported by IBM for Java interoperability. IMHO, PL/1 was always a better language anyway. Unfortunately, PL/1 was only a partial success.

If you look at the geneology of COBOL, it's FLOW-MATIC (1957) -> COBOL (1960) and that's where it stops, apart from some features incorporated into PL/1. FORTRAN, the old beast, is still very much alive in many of the features of the most modern programming languages.
_________________
Dave Crayford
Back to top
View user's profile Send private message Send e-mail
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Wed Feb 05, 2003 8:03 am    Post subject: Reply with quote

Dave,

Could you explain what is 'HFS structure'?

Diba
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12380
Topics: 75
Location: San Jose

PostPosted: Wed Feb 05, 2003 5:10 pm    Post subject: Reply with quote

Dibakar,

HFS = Hierarchical File System is a File System with information organized in a tree-like structure of directories. Each directory can contain files or other directories.

Check this link for a detailed explanation of HFS

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT1DI00/4.1.2?DT=20000628153031

Hope this helps...

cheers

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dibakar
Advanced


Joined: 02 Dec 2002
Posts: 700
Topics: 63
Location: USA

PostPosted: Fri Feb 07, 2003 4:36 am    Post subject: Reply with quote

Thanks kolusu,
Diba
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Other Technical Topics All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group