{"id":218,"date":"2007-06-24T15:52:01","date_gmt":"2007-06-24T20:52:01","guid":{"rendered":"\/cgi\/wp\/?p=218"},"modified":"2019-12-11T08:37:28","modified_gmt":"2019-12-11T13:37:28","slug":"rpg-programming","status":"publish","type":"post","link":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=218","title":{"rendered":"RPG Programming"},"content":{"rendered":"<div class=\"entry\">\n<p>I have finished reading another book on <strong>RPG<\/strong>, &#8220;<em>RPG II And RPG III Structured Programming<\/em>&#8221; by Nancy Stern, Robert A. Stern, Alden Sager, James Cooper and added a great deal of material to my notes. Now I am turning my attention to <strong>BABY\/400<\/strong> to get some practice writing RPG programs. Over the weekend I finally managed to compile and run a program from the Judy Yaeger book &#8220;<em>Programming In RPG\/400<\/em>&#8220;. I had considerable difficulty accomplishing this task and had to solve many technical problems.<\/p>\n<p>The first problem was getting the RPG compiler to find my externally described data file. I had to post some messages on newsgroups about this and finally learned that I needed to add my library to the library list. Fortunately, I have the book &#8220;<em>AS\/400 Control Language Guide<\/em>&#8221; by Brian Fu which has a chapter on the Library and Library List. The command to add a library to the library list is ADDLIBLE QMYLIB *FIRST. Then I had to make it the current library before attempting to compile my program using the command CHGCURLIB CURLIB(QMYLIB).<\/p>\n<p>After fixing several problems with my Data Description Specifications and RPG source code I finally got my program to compile successfully! Then I figured out how to call my program which generated a report.\u00a0 I&#8217;m cheating by viewing the files directly in a text editor rather than going through the menus in BABY\/400 to view the printer output.<\/p>\n<p>Later on I may add a how to section to my web site on the BABY\/400 because there is absolutely no information on this rare software available on the Internet. So I have had to really struggle to figure out how to do RPG development on the BABY\/400. If I put my notes on my web site it will become the only source of information that anyone else can refer to. I know a lot of local companies still use an AS\/400 and have not upgraded to an System i5 IBM.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I have finished reading another book on RPG, &#8220;RPG II And RPG III Structured Programming&#8221; by Nancy Stern, Robert A. Stern, Alden Sager, James Cooper and added a great deal of material to my notes. Now I am turning my &hellip; <a href=\"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/?p=218\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/218"}],"collection":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=218"}],"version-history":[{"count":2,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions"}],"predecessor-version":[{"id":3428,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions\/3428"}],"wp:attachment":[{"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/williamsportwebdeveloper.com\/cgi\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}