Example D: Putting a directory path in the DD statement and using dot notation in the INCLUDE statement

As in Example C: Putting a directory path in the DD statement and a subdirectory path in the INCLUDE statement, hello.o is a file in subdir, but now DD statement INPUT specifies a directory path to sub2, which is a subdirectory within subdir. The file goodnight.o is in sub2 and it is included by specifying its file name in the INCLUDE statement. The file hello.o is in the parent directory (subdir) to sub2. In this case UNIX dot notation must be used show that hello.o can be found in sub2's parent directory. For more on dot notation, see z/OS V2R2.0 UNIX System Services User's Guide.

//INPUT    DD PATH='/u/userid/subdir/sub2/',PATHDISP=(KEEP,KEEP)          
//SYSLMOD  DD DSN=USERID.PDSE.LOAD,DISP=SHR                               
//SYSLIN   DD *                                                           
  INCLUDE -IMPORTS,-ATTR,INPUT('../hello.o','goodnight.o')                
  NAME TEST(R)                                                            
/*