DATA-INTO is here! PTFs for 7.2 and 7.2 will be available by March 19, 2018
DATA-INTO reads the data from a structured document, such as a JSON document, into a data structure. It's like XML-INTO, except that it handles any type of structured document, not just XML. The reason it can handle any type of document is that you have to supply the parser for the document. See this wiki page, http://ibm.biz/data-into-rpg-opcode-ptfs , in the RPG Cafe for information about The PTFs you need A sample JSON parser... [Continue Reading]
Tags:  rpgcafe rpg |
More 7.2 and 7.3 enhancements for 2017
RPG compiler enhancements for 7.2 and 7.3 are now available through PTFs. The enhancements New built-in function %PROC returns the external name of the current procedure (RFE 93086) Complex qualified names can be used in more places
%ELEM %SIZE DEALLOC (RFE 102087) RESET Support for PCML version 7.0 which allows varying-length subfields and arrays. See the wiki page (link below) for current restrictions as to where you can actually use this... [Continue Reading]
Tags:  rpg |
ALIGN(*FULL), the forgotten 3rd child of the spring 2017 RPG enhancements
I have read several articles about nested data structures, and a few about %MAX and %MIN. I understand why these are more attractive than an enhancement that just changes how ALIGN works. I really do understand. We put "nested data structures" first in the lists of these enhancements because we know that's the most attractive one. But don't ignore ALIGN(*FULL). It can be very important. With just ALIGN, %SIZE(ds_array) might not... [Continue Reading]
|
7.2 and 7.3 enhancements for nested data structures, %MAX & %MIN, ALIGN(*FULL)
The following RPG compiler enhancements for 7.2 and 7.3 are now available through PTFs. The enhancements Nested data structures ( RFE 87967 ) (in free-form declarations only) %MAX and %MIN built-in functions ( RFE 93114 ) ALIGN(*FULL) to cause the size of a data structure to be a multiple of it's alignment. ( RFE 94630 ). This will be of special interest to anyone who uses the regex functions, who may have their regex_t... [Continue Reading]
|
How to compile an RPG module or program with PCML included in the object
To get PCML embedded in your module or program, add the following keyword to your H spec: PGMINFO(*PCML : *MODULE) If you are on 7.1 or later, and have the required PTFs described in this RPG Cafe wiki page, https://ibm.biz/rpgCafe_PCML_enhancements , you can get "nicer" PCML, with mixed-case names, by coding PGMINFO(*PCML : *MODULE : *DCLCASE) What is PCML? If you're wondering what "PCML" is, it stands for "Program... [Continue Reading]
Tags:  rpg pcml rpgcafe iws |
Upcoming RPG enhancements timed with the 7.2 and 7.3 TRs for spring 2017
The IBM i announcements for the 7.2 and 7.3 TRs don't mention the three upcoming RPG enhancements that will be available through PTFs at the same time as the TRs. The PTFs will be available individually, and they will also be part of the upcoming 7.2 and 7.3 DB2 group PTFs . More information about the PTFs will be available in the RPG Cafe wiki when the PTFs are available. Short URL for this blog entry:... [Continue Reading]
Tags:  rpg rpgfree |
Enhancement for 7.2 and 7.3: ON-EXIT section to be run whenever a procedure ends
7.2 and 7.3 PTFs are available today with an enhancement for the ILE RPG compiler that will make it much easier to ensure that your cleanup code runs every time your procedure ends, either normally or abnormally. For more information, see http://ibm.biz/RPG_ON_EXIT_Section.
Tags:  rpgcafe rpg_cafe rpg |
Compile RPG from Unicode source - new TGTCCSID parameter in 7.1, 7.2, 7.3
RPG has delivered its first RFE! https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=92809 Without the PTF that provides the new TGTCCSID parameter for the CRTBNDRPG and CRTRPGMOD commands, it was impossible to compile if the primary source file was a Unicode IFS file. Now, with a PTF for 7.1, 7.2, or 7.3, if you specify TGTCCSID(*JOB) or a specific EBCDIC CCSID such as TGTCCSID(37), you can compile from Unicode source. For... [Continue Reading]
|
What's Brand New in 7.3 for RPG?
Many of the features listed in the What's New section of the 7.3 RPG reference are not actually new in 7.3. Several features are already available through PTFs for 7.1 and 7.2 (see the " What's new since 7.2 " page in the 7.2 reference. Here are the features that are brand new in 7.3 (These are not planned to be made available for earlier releases through PTFs) %SCANR (scan... [Continue Reading]
|
Have you heard of the /SET and /RESTORE directives?
In 7.2, two new directives were added for ILE RPG. /SET temporarily changes the defaults for some D spec keywords from the defaults set by the H spec. /RESTORE undoes the effects of the active /SET directive. http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzasd/cdset.htm http://www-01.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzasd/cdrestore.htm If you code /SET in a /COPY file, there is an implicit /RESTORE at the end of the copy... [Continue Reading]
|