BPX1CHD (chdir) example

The following code changes the working directory for the task. For the callable service, see chdir (BPX1CHD, BPX4CHD) — Change the working directory. AMODE 64 callers use BPX4CHD (chdir) example.
                                              
         MVC   BUFFERA(8),=CL8'/usr/inv'                                
         MVC   BUFLENA,=F'8'                                            
         SPACE ,                                                        
         CALL  BPX1CHD,              Change working directory          +
               (BUFLENA,             Input: Pathname length            +
               BUFFERA,              Input: Pathname                   +
               RETVAL,               Return value: 0 or -1             +
               RETCODE,              Return code                       +
               RSNCODE),             Reason code                       +
               VL,MF=(E,PLIST)       ----------------------------------