LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-12-2006, 08:10 AM   #1
runnerpaul
Member
 
Registered: Mar 2006
Location: Ireland
Distribution: Fedora 5
Posts: 67

Rep: Reputation: 15
rpg programming language


does the rpg programming language exist on linux? If so does IBM have a version of the iseries/as400 which runs on linux? Im brand new to rpg and want to find out a little about it.
 
Old 09-12-2006, 05:07 PM   #2
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
The best advice I can give you if you are brand new to RPG is to run. Run for your life.

AIX runs on AS/400. I don't think anyone runs Linux on them but I really don't know.

If you want to say what you are thinking (and smoking/drinking) about what you wanted to use RPG for maybe we can suggest a better alternative. Actually, if we can't think of a better alternative then it's we who should begin drinking.
 
Old 09-13-2006, 01:32 AM   #3
runnerpaul
Member
 
Registered: Mar 2006
Location: Ireland
Distribution: Fedora 5
Posts: 67

Original Poster
Rep: Reputation: 15
Work needs a rpg programmer. Cant say its my ideal job but they are forking out to train me and I would rather program than test(which is what im currently doing). The company is a rapidly expanding insurance in the UK and Irealnd so there are plenty of opportunities. Im hoping that if I can show I am able to program it will open the door to other areas.

I am just getting into Linux and was wondering if people used iton the OS. To be honest I can think of a load of other languages I would rather use.
 
Old 09-13-2006, 09:58 AM   #4
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Alright man. In that case, check out IBM's bookmanager site and also the IBM Redbook site. I'm sorry I don't have links but you should be able to find them. The first one will get you all the doc on the AS/400 implementation of RPG. Programmer's Guides contain info on how to set up JCL for compiling, linking, and testing, compiler options, JCL requirements for DD statements, etc. The Language Reference is a list of all the features of the language. It's not a how-to but I always read all the doc cover-to-cover for whatever I'm using in IBM-Land because their doc is really really good. It takes a while to figure out where to find things but their system is pretty consistent across zillions of products and languages and systems. Once you learn how it's organized you can find anything.

The Redbooks are about applying technology and products to real problems. If you look on there for RPG you may find some helpful reading.

I think training anyone to write new RPG is a big mistake. If you learn RPG enough to convert it to COBOL that would be a good start. You can certainly do everything that RPG can in COBOL and a lot more. If they don't have other plans for you it sounds like a dead end. I don't know what the job scene is like in your part of the world but RPG is not a growth area. Seriously, if you can do something else, do something else.

I don't have any facts on Linux support for RPG but historically IBM and UNIX were two separate worlds and shared nothing. The tools, languages, and OS had nothing in common and nothing was meaningful on the other guy's platform. RPG has been around for a long time and has been obsolete almost as long. There really isn't any good reason that anyone would port it anywhere new. It would be smarter and cheaper just to replace it. I converted some RPG twenty five years ago so I know some of the history on it

Last edited by Randux; 09-13-2006 at 10:01 AM.
 
Old 09-13-2006, 10:36 AM   #5
mjones490
Member
 
Registered: Sep 2005
Distribution: LFS
Posts: 60

Rep: Reputation: 22
Uh-oh!! OH-NO!! Almost had a carreer in banking software! RPG. COBOL. RPG!! They wanted me to wear a tie. I WOULD HAVE HAD TO WEAR A TIE!! AAAAGH!! NO!! I WON'T DO IT!! C++! I GOTTA HAVE MY C++!! NO NO NO!!
 
Old 09-13-2006, 12:54 PM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi, runnerpaul -

I actually spent a few weeks studying RPG IV ... a long, long, LONG time ago. Never used it. Got an "A+" on the project, though. I wrote the program documentation as a noir detective story, set at the racetrack. No kidding. The teacher loved it. But we digress... ;-)

For years, "RPG" was pretty much synonymous with "AS/400" systems. And in the mid-late 90's, IBM made a *huge* push to "revitalize" their AS/400 line by "going Java".

SUGGESTIONS:
1. Check out this Wikipedia link:
http://en.wikipedia.org/wiki/RPG_programming_language

2. And these additional linkes:
http://ask.slashdot.org/article.pl?s...=thread&tid=99
http://www.californiasoftware.com/InfiniteiSeries.asp
http://www.open-rpg.com/

3. Like Randux correctly pointed out, IBM has a cornucopia of information.
And they are - and remain - heavy supporters of Linux, of Java ... and most definitely of RPG.
So if there's a solution, IBM is likely to have it.

4. Unfortunately, I've never heard of RPG for Linux: I'm doubtful such a thing exists.

I'm certain, however, there are lots of resources for *integrating* RPG (running on an
AS/400, for example) with Linux. And I'm equally certain that Java figures prominently
in the picture. You might have more success pursuing that angle.

Good luck - and 'hope I've been of at least a little help!

Your .. PSM

Last edited by paulsm4; 09-13-2006 at 01:10 PM.
 
Old 09-13-2006, 03:18 PM   #7
runnerpaul
Member
 
Registered: Mar 2006
Location: Ireland
Distribution: Fedora 5
Posts: 67

Original Poster
Rep: Reputation: 15
Cheers guys. I'll keep you posted. If they are going to train me how to do it I may aswell give it a go. At the very worst its another thing for the CV.

I dont actually start for three weeks but I'll keep you posted.
 
Old 09-14-2006, 04:32 AM   #8
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 54
Actually we used to make a joke that there are certain things best kept off the CV. This is indeed one of them

It's easy to understand what RPG is about- Report Program Generator. It's based on the idea that reporting consists of a cycle of reading, processing, and writing. So that's how RPG works. There is a syntax to specify the format of the input and output record types and then what processing (usually totalling of fields, other calcs, etc) is supposed to take place. That's it- everything else is just details.

The sad fact is that there have been quite a few batch report writers (SAS is a famous one, but there are certainly many more, both before and after) that are a bit quicker to deploy and easier to live with. You can even do reporting with DFSORT.

You might gain some points with your employer if you encourage them to pay you to convert the RPG apps to COBOL or whatever language is in use there. You'll find there are benefits to that as well.

Good luck with all that. It's been too long for me to remember much detail but I don't think you'll have any problems except for occasional "omg, why do they do that?" Remember it was designed thirty or more years ago and actually was revolutionary in its day.
 
Old 10-11-2006, 06:48 AM   #9
runnerpaul
Member
 
Registered: Mar 2006
Location: Ireland
Distribution: Fedora 5
Posts: 67

Original Poster
Rep: Reputation: 15
Well what about Cobol. As a recent graduate would it be worth taking a job as a Cobol developer or would I be better off holding out for a job in Java, C++ etc?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
which programming language is used to do tcp/ip programming?? gajaykrishnan Linux - Networking 9 12-21-2012 05:16 AM
the RPG language nadroj Programming 5 07-09-2005 12:16 AM
Best programming language to use cudajaw Linux - Newbie 30 03-12-2005 04:09 AM
What programming language do you know? zikhermm Programming 11 09-15-2001 10:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration