× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Scott Klement wrote:
...
The following is a trivial example program:

FITMMAST IF A E K DISK

D BEFORE          DS                  LIKEREC(ITMMASTF:*INPUT)  INZ
D AFTER           DS                  LIKEREC(ITMMASTF:*OUTPUT) INZ

/free

// copy an item, changing only the item number and description:

     chain myItem ITMMASTF before;
     after = before;
     after.Item = myNewItem;
     after.Desc = myNewDescription;
     write ITMMASTF after;

*inlr = *on;

/end-free


In addition to what Scott explained, be sure to be fully up to date on RPG PTF's when using these particular V5R2 I/O enhancements.


BTW, watch for some additional improvements in this area in V5R3. The result data structure on externally described I/O can also be an externally described data structure in V5R3, provided it matches the record. Also, under the right circumstances, a result data structure can be coded on an I/O operation to an externally described file name. (For externally described files, V5R2 only allows I/O by record name with a result data structure.)

Cheers! Hans


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.