Example B: Putting a directory path in the DD statement and filename in the INCLUDE statement

As in Example A: Putting the whole path in the DD statement, the same file, hello.o is specified, but in this case, the DD name INPUT specifies what directory it is in, and the file name is specified within parentheses in the INCLUDE statement.

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

The INCLUDE "member" can also contain additional directory information. This means you can specify a directory path in the DD statement, and then a subdirectory and file stemming from that directory in the INCLUDE statement. Example C: Putting a directory path in the DD statement and a subdirectory path in the INCLUDE statement and Example D: Putting a directory path in the DD statement and using dot notation in the INCLUDE statement illustrate this.