7.67.3 GROUP_BY Examples

Example 1: Compare the following RDML program:

   L1: REQUEST FIELDS(#A #B #C #D #E #F #G #H #I)
   INSERT  FIELDS(#A #B #C #D #E #F #G #H #I) TO_FILE(TESTFILE)
   GOTO    LABEL(L1)

with the identical RDML program:

       GROUP_BY NAME(#GROUP) FIELDS(#A #B #C #D #E #F #G #H #I)
L1: REQUEST  FIELDS(#GROUP)
   INSERT   FIELDS(#GROUP) TO_FILE(TESTFILE)
   GOTO     LABEL(L1)

Now if fields #J -> #Z were added to file TESTFILE and this function had to be changed to use these new fields, which function would be the easiest to change?

  • No labels