BPX4MSY (msync) example

The following code causes the file associated with this mapped area to be updated with the contents of storage. For the callable service, see msync (BPX1MSY, BPX4MSY) — Synchronize memory with physical storage. AMODE 31 callers use BPX1MSY (msync) example.
                                              
       MVC   FILEDESC,..           File descriptor                      
         SPACE ,                                                        
         CALL  BPX4MSY,              synchronize memory with storage   +
               (MAP_ADDRESS,         Input: address of mapped area     +
               MAP_LENGTH,           Input: area length                +
               =A(MS_SYNC),          Input: sync options               +
               RETVAL,               Return value: 0 or -1             +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               MF=(E,PLIST)          ----------------------------------