Difference between revisions of "RPG 4"

From MidrangeWiki
Jump to: navigation, search
(+Fully Free RPG)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Programming]]
+
Note that '''RPG IV''' can do just about anything that could be done by earlier versions of [[RPG]] such as [[RPG/400]] and an enormous volume of additional capabilities.
[[Category:RPG]]
+
 
Note that '''RPG 4''' can do just about anything that could be done by earlier versions of [[RPG]] such as [[RPG/400]] and an enormous volume of additional capabilities.
+
== Free-format RPG ==
== References ==
+
* [https://www.ibm.com/developerworks/ibmi/library/i-ibmi-rpg-support/ Free-format RPG] on DeveloperWorks
[http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508402.htm RPG IV with free format op codes]<br>
+
** 7.2: Integrated with the base OS
[[Built In Functions]]<br>
+
** 7.1: Requires compiler PTF SI51094 or its supercedes, as well as DB2 group PTF SF99701 level 26 or higher.
[[Program To System Fields]]<br>
+
** 7.1 PTF first became available in Nov 2013.
[[FKey AID Bytes| Function Key AID Bytes]]<br>
+
 
[[Free Form Calcs | Free form calculation specifications]]<br>
+
== Fully free-form RPG ==
 +
RPG now allows for a syntax which contains no columns at all; it is fully free-form, beginning in column 1.  To use, the first line of code must be '''**free''' starting in column 1.  There is no predefined final column.  There is one limitation: the program does not allow ANY columnar (fixed form) RPG, including comments with an asterisk in column 7.  RDi 9.5 recognises this new syntax.  It is provided as a PTF, but is not in a group or TR - it must be ordered separately.  First available in November 2015.
 +
 
 +
* [https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/We13116a562db_467e_bcd4_882013aec57a/page/Fully%20free-form%20RPG%20-%20new%20in%207.1%20and%207.2 Fully Free-form RPG]
 +
<p dir="ltr">7.1:</p>
 +
 
 +
* SI58136 (compiler, target-release *CURRENT only)
 +
* DB2 group PTF SF99701 level 38 (SQL precompiler)
 +
 
 +
<p dir="ltr">7.2:</p>
 +
 
 +
* SI58137 (compiler, target-release *CURRENT)
 +
* SI58110 (compiler, target-release *PRV)
 +
* DB2 group PTF SF99702 level 9 (SQL precompiler)
 +
 
  
=== Books on RPG IV ===
 
  
* Bryan Meyers http://www.bmeyers.net/
 
  
=== Other sites ===
+
== References ==
 +
[http://publib.boulder.ibm.com/iseries/v5r2/ic2924/books/c092508402.htm RPG IV with free format op codes]
 +
* [[Built In Functions]]
 +
* [[Program To System Fields]]
 +
* [[FKey AID Bytes| Function Key AID Bytes]]
 +
* [[Free Form Calcs | Free form calculation specifications]]
  
* Midware http://midwareservices.com/RPGIV/intro.htm
+
=== Books on RPG IV ===
* "A Sorcerer's Guide to System Access and More" [Redbook SG24-5402-00 http://www.vtmug.org/Links/2000/Article2.htm]
 
* [RPG Developer's Network http://wiki.midrange.com/index.php/Category:RPG#RPG_Developer_Network]
 
  
 +
*{{Redbook
 +
| pubnumber=SG245402
 +
| title=Who Knew You Could Do That with RPG IV? A Sorcerer's Guide to System Access and More
 +
}}
 
== Data Structure Information ==
 
== Data Structure Information ==
[[Program Status Data Structure]]<br>
+
* [[Program Status Data Structure]]
[[Workstation Data Structure]]<br>
+
* [[Workstation Data Structure]]
  
 
== Code Samples ==
 
== Code Samples ==
[[Locate field value field name]]<br>
+
* [[Locate field value field name]]
[[SQLSTATE Constants]]<br>
+
* [[SQLSTATE Constants]]
  
 +
== FAQ ==
 +
* [[What does BINARY(4) mean in API documentation?]]
  
 +
=== External Links ===
  
== FAQ ==
+
* Midware http://midwareservices.com/RPGIV/intro.htm
 +
* Bryan Meyers http://www.bmeyers.net/
  
[[What does BINARY(4) mean in API documentation?]]
+
==Categories==
 +
[[Category:Programming languages]]
 +
[[Category:RPG]]

Latest revision as of 18:08, 7 December 2015

Note that RPG IV can do just about anything that could be done by earlier versions of RPG such as RPG/400 and an enormous volume of additional capabilities.

Free-format RPG

  • Free-format RPG on DeveloperWorks
    • 7.2: Integrated with the base OS
    • 7.1: Requires compiler PTF SI51094 or its supercedes, as well as DB2 group PTF SF99701 level 26 or higher.
    • 7.1 PTF first became available in Nov 2013.

Fully free-form RPG

RPG now allows for a syntax which contains no columns at all; it is fully free-form, beginning in column 1. To use, the first line of code must be **free starting in column 1. There is no predefined final column. There is one limitation: the program does not allow ANY columnar (fixed form) RPG, including comments with an asterisk in column 7. RDi 9.5 recognises this new syntax. It is provided as a PTF, but is not in a group or TR - it must be ordered separately. First available in November 2015.

7.1:

  • SI58136 (compiler, target-release *CURRENT only)
  • DB2 group PTF SF99701 level 38 (SQL precompiler)

7.2:

  • SI58137 (compiler, target-release *CURRENT)
  • SI58110 (compiler, target-release *PRV)
  • DB2 group PTF SF99702 level 9 (SQL precompiler)



References

RPG IV with free format op codes

Books on RPG IV

Data Structure Information

Code Samples

FAQ

External Links

Categories