VARBUFMGT (Variable Buffer Management) Keyword for Intersystem Communications Function Files --Example

Figure 431 shows how to specify the VARBUFMGT keyword.

Figure 431. Specifying the VARBUFMGT Keyword

|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8
00010A          R MULTFMT1
00020A                                      VARBUFMGT
00030A            DATAFLD       32A
00040A          R MULTFMT2
00050A                                      VARLEN(&LENFLD);
00060A                                      VARBUFMGT
00070A            DATAFLD       32A
00080A            LENFLD         5S P

Suppose 42THIS RECORD WILL NOT FIT INTO ONE BUFFER was the data to be sent or received. The VARBUFMGT keyword on the first record format sends or receives the first 32 bytes of data. The second record format sends 10 bytes of data. The data length of 10 is set in LENFLD.