BPX1UMT (umount) example

The following code removes virtual file system TESTLIB.FILESYS1 from the file tree. For the callable service, see umount (BPX1UMT, BPX4UMT) — Remove a virtual file system. For the data structure, see BPXYMTM — Map the modes for mount and unmount. AMODE 64 callers use BPX4UMT (umount) example.
                                              
         MVC   FSNAME(44),=CL44'TESTLIB.FILESYS1'                       
         XC    MTM(MTM#LENGTH),MTM                                      
         MVI   MTM1,MTMUMOUNT        Unmount request                    
         SPACE ,                                                        
         CALL  BPX1UMT,              Remove a virtual file system      +
               (FSNAME,              Input: File system name (44 char) +
               MTM,                  Input: Flags, BPXYMTM             +
               RETVAL,               Return value: 0 or -1             +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               VL,MF=(E,PLIST)       ----------------------------------