RPG input
CSR @MAST BEGSR
C Z-ADD0 MRK
C KEY23 CHAINGLSMAST 99
C*
C *IN99 IFEQ '1'
C Z-ADD0 DEB
C Z-ADD0 CRD
C END
C*
C DEB SUB CRD TOT
C TOT MULT PERC MRK
C MRK ADD TOT MRK
CSR ENDSR
Importa's output from the code above is shown below.
Importa output
BegSr @MAST
MRK = 0
Chain GLSMAST Key( KEY23 ) NotFnd( *IN99 )
If ( *IN99 = *On )
DEB = 0
CRD = 0
EndIf
TOT = DEB - CRD
MRK = TOT * PERC
MRK = MRK + TOT
EndSr
You'll notice immediately that Importa outputs an RPG syntax similar to that added to RPG with OS/400 V5.R1. This indented, keyworded RPG blends the best syntactical and language features of CL with RPG. It offers increased readability, indention, and your choice of white-space usage for program clarity. AVR for .NET uses this advanced RPG syntax exclusively.
If you find the indented code above jarring (some even exclaim, "That isn't RPG!"), don't fret! It is RPG--with RPG's most-used idioms and constructs well in place. Nearly all of the RPG operation codes persist--CHAIN, READ, READP, SETLL--are all fully implemented (the ones that don't are mostly related to user interface issues--such as EXFMT). As are RPG's built-in functions, its subroutines and loop constructs, even indicators! AVR for .NET's advanced RPG syntax can be learned by even the most hard-core RPG programmer in a matter of hours. And, it's enhanced syntax brings RPG naturally and effective the object-oriented world of AVR for .NET.">
ASNA Importa is a source code import facility for ASNA's Visual RPG for .NET (AVR). Importa lets you import iSeries RPG source into AVR for .NET. The resulting code can be compiled by AVR for .NET to generate .NET intermediate language assemblies. Importa "snaps" into Visual Studio.NET and can be accessed directly within your AVR for .NET projects. Optionally, you can configure Importa to simply be a stand-alone utility not integrated with Visual Studio. With either installation option, Importa imports RPG code into text files on your PC that you can then include in AVR for .NET projects. Not only was Importa written specifically for use with ASNA's AVR for .NET, Importa is the first commercially-available application written in AVR for .NET. Importa is a 100% native MS Intermediate Language assembly that runs under the Microsoft .NET framework. Importa imports both RPG/400 and ILE RPG source code. The following code shows a quick example of Importa results. The RPG input is a subroutine of your father's RPG/400:
RPG input CSR @MAST BEGSR C Z-ADD0 MRK C KEY23 CHAINGLSMAST 99 C* C *IN99 IFEQ '1' C Z-ADD0 DEB C Z-ADD0 CRD C END C* C DEB SUB CRD TOT C TOT MULT PERC MRK C MRK ADD TOT MRK CSR ENDSR Importa's output from the code above is shown below.
TOT = DEB - CRD MRK = TOT * PERC MRK = MRK + TOT EndSr
You'll notice immediately that Importa outputs an RPG syntax similar to that added to RPG with OS/400 V5.R1. This indented, keyworded RPG blends the best syntactical and language features of CL with RPG. It offers increased readability, indention, and your choice of white-space usage for program clarity. AVR for .NET uses this advanced RPG syntax exclusively.
If you find the indented code above jarring (some even exclaim, "That isn't RPG!"), don't fret! It is RPG--with RPG's most-used idioms and constructs well in place. Nearly all of the RPG operation codes persist--CHAIN, READ, READP, SETLL--are all fully implemented (the ones that don't are mostly related to user interface issues--such as EXFMT). As are RPG's built-in functions, its subroutines and loop constructs, even indicators! AVR for .NET's advanced RPG syntax can be learned by even the most hard-core RPG programmer in a matter of hours. And, it's enhanced syntax brings RPG naturally and effective the object-oriented world of AVR for .NET.
The following are the purchasing options for ASNA Importa for ASNA Visual RPG for .NET. If you require a formal quote, choose one or more products and click on the ""Create an Online Quote"" link at the bottom.
Relevant Products
Customers who bought ASNA Importa for ASNA Visual RPG for .NET also looked for these solutions from LOGON :-
How to buy ASNA Importa for ASNA Visual RPG for .NET ?
If you wish to buy ASNA Importa for ASNA Visual RPG for .NET, you can first generate a quote online or request one via email. Send email to sales@logon-int.com.