Solved

What is RPG, Lansa?

Posted on 2000-04-04
10
1,220 Views
Last Modified: 2008-02-20
Hi!
May somebody tell me what RPG and Lansa are? (i found out that they are related to AS400) I need a short description of these, if it's possible.
...or some good links where I can find information about these.

Many Thanks!
0
Comment
Question by:atti75
10 Comments
 

Expert Comment

by:chansek
ID: 2686036
The RPG or RPG/400 programming language is designed to make it easier for AS400 programmer to create business software applications in AS400 environment.

LANSA is web based development tool for AS400 or AS400e environment.

You could visit www.ibm.com to find out more detail about RPG and LANSA. Just type the RPG or LANSA, the search machine will bring you there.
 

0
 

Expert Comment

by:TGB
ID: 2686935
RPG comes in a few flavours - RPG400, RPG4, and RPGLE.
Most folks tend to develop in RPG4/LE these days, as the support for older RPG400 is lacking, and RPG4/LE is far easier to understand.
LANSA gives the 'Russian TV' appearance of RPG programs a GUI interface, and it looks a hell of a lot better!
0
 
LVL 3

Expert Comment

by:P_S_Price
ID: 2688298
LANSA however has also been around for a fairly long time and started its life as a 4GL Tool. on the S38. RPG also started out as a Report Generating Tool. Its earliest incarnations use a thing called the RPG cycle (Essentially basic report writing is read a record, print a record, read a record, print a record, ..... et al) and so RPG (Report Program Generator) used a cycle so that its users would not have to bother with the reading/writing elements but just define the input and output. This was fine for early machine but when the S3X units (predecessors to AS/400) came along that supported displays it needed to evolve. the latest implementation RPGLE has evolved to make better use of modularised code.
0
Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:atti75
ID: 2706965
Thanks for all these answers!
0
 
LVL 3

Expert Comment

by:P_S_Price
ID: 2726720
WHo gets the points then?
0
 

Author Comment

by:atti75
ID: 2729485
Hy!
you gave me many tehnical information but I am not familiar with any of them (4GL, S38, S3X)...I don't have a background in AS400 ...

I need some extra information:
what prog. language is RPG familiar with?
can I find an online  RPG introductory course?

0
 
LVL 3

Accepted Solution

by:
P_S_Price earned 100 total points
ID: 2734659
RPG is a programming Language in its own right. It is not familiar with anything. The closest I have seen to it is Easitrieve on an IBM Mainframe. With RPG the format of each Code line is critical as is the sequence of specification types. Unlike COBOL where coding info has to be in sectn A or B but is relatively freeformat within those sections with RPG exact info has to be in exact character positions on the source line (eg Posn 6 must contain a specification type, posn 7 must contain a '*' if the line is a comment etc). The specification type defines which part of the program you are providing 'F' - File Specs, 'C' - Calc Specs. a bit like Divisions & sections in COBOL. as I mentioned before RPG is a cyclic language.

If you wrote the following in BASIC

Let A = 10
Print A

The code would execute once and your screen would show 10

A Similar code in RPG could be written as

        MOVEL'10'      A       2      
A       DSPLY                          

However if you did code this in the Cspec you would get a compilation warning which if you allowed to compile would Print

'DSPLY  10'

on your screen repeatedly over and over again. To cause the program to terminate you would have to add a termination instruction as follows :-

        SETON                     LR  

Further terms

4GL - Fourth Generation Language (Synon, Lansa, Genesis, I suppose access qualifies too after a fashion)

3GL - Third Generation Languages (COBOL, FORTRAN, RPG)

To Learn about RPG you need to attend a decent course. Every RPG programmer will probably be able to tell you about the 'Wonderful Learning Experience' that the ATS guided study courses provide. They are not brilliant but are sufficient to get you started.

S38 = IBM System/38 one of the predecessor machines to the AS/400

S3X refers to a family of Midrange Computers that IBM supplied years ago. HIstorically System/32, System/34, System/38, System/36

The AS/400 was supposed to bring together the System 38 & 36 architectures (but it was a Pants way of doing it). Effectively if you could program a S38 then you could program an AS/400.
0
 
LVL 3

Expert Comment

by:P_S_Price
ID: 2734689
Sorry Ommitted Web Site address for ATS RPG Course :-

http://800ibmuser.com/train/dsfolder/arp1ds.htm
0
 

Author Comment

by:atti75
ID: 2734837
Many Thanks P_S_Price!
For me this was an excellent answer...

Bye!
0
 

Expert Comment

by:sharangs042000
ID: 2913674
The information I got was really cool.
Thanks to P_S_Price!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The question appears often enough, how do I transfer my data from my old server to the new server while preserving file shares, share permissions, and NTFS permisions.  Here are my tips for handling such a transfer.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question