com.ibm.dbb.dependency

Class LinkEditScanner

  • java.lang.Object
    • com.ibm.dbb.dependency.LinkEditScanner
    • Constructor Summary

      Constructors 
      Constructor and Description
      LinkEditScanner() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getExcludeFilter()
      Returns the current excludeFilter used by the load module scanner.
      java.lang.String getLibpath()
      Get the value of LIBPATH used for this instance of the Link Edit Scanner.
      java.lang.String getScannerOutput()
      Retrieve the raw output from the module scanner
      LogicalFile scan(java.lang.String file)
      Scan and collect logical dependency of a load module
      LogicalFile scan(java.lang.String file, java.lang.String loadPDS)
      Scan and collect logical dependency of a load module
      LogicalFile scan(java.lang.String file, java.lang.String loadPDS, java.lang.String member)
      Scan and collect logical dependency of a load module
      void setExcludeFilter(java.lang.String filter)
      Set filter used to exclude certain information from the link edit scanning.
      void setLibpath(java.lang.String libpath)
      Override the default, /usr/lib, LIBPATH for this instance of the Link Edit Scanner.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LinkEditScanner

        public LinkEditScanner()
    • Method Detail

      • scan

        public LogicalFile scan(java.lang.String file)
                         throws BuildException,
                                java.io.IOException
        Description copied from interface: ILinkEditScanner
        Scan and collect logical dependency of a load module
        Specified by:
        scan in interface ILinkEditScanner
        Parameters:
        file - - HFS file that is being built (ex. MortgageApp/link/epsmlist.lnk)
        Returns:
        LogicalFile for scanned output
        Throws:
        BuildException - an exception occurred
        java.io.IOException - an exception occurred
      • scan

        public LogicalFile scan(java.lang.String file,
                                java.lang.String loadPDS)
                         throws BuildException,
                                java.io.IOException
        Description copied from interface: ILinkEditScanner
        Scan and collect logical dependency of a load module
        Specified by:
        scan in interface ILinkEditScanner
        Parameters:
        file - - HFS file that is being built (ex. MortgageApp/link/epsmlist.lnk)
        loadPDS - - name of PDS containing the load module
        Returns:
        LogicalFile for scanned output
        Throws:
        BuildException - an exception occurred
        java.io.IOException - an exception occurred
      • scan

        public LogicalFile scan(java.lang.String file,
                                java.lang.String loadPDS,
                                java.lang.String member)
                         throws BuildException,
                                java.io.IOException
        Scan and collect logical dependency of a load module
        Specified by:
        scan in interface ILinkEditScanner
        Parameters:
        file - - HFS file that is being built (ex. MortgageApp/link/epsmlist.lnk)
        loadPDS - - name of PDS containing the load module
        member - - name of the load PDS member
        Returns:
        LogicalFile for scanned output
        Throws:
        BuildException - an exception occurred
        java.io.IOException - an exception occurred
      • getScannerOutput

        public java.lang.String getScannerOutput()
        Retrieve the raw output from the module scanner
        Specified by:
        getScannerOutput in interface ILinkEditScanner
        Returns:
        raw output from load module parser
      • setExcludeFilter

        public void setExcludeFilter(java.lang.String filter)
        Set filter used to exclude certain information from the link edit scanning. The value contains a comma separated list of patterns. example: A filter of *.SUB1, *.SUB2 will exclude modules SUB1 and SUB2 from any dataset. To exclude member HELLO in PDS TEST.COBOL will be matched by the pattern TEST.COBOL.HELLO. The pattern TEST.COBOL.* will match any member in the data set TEST.COBOL. If the exclude filter is not set via this method, the scanner will use the build property dbb.LinkEditScanner.excludeNameFilter as the pattern.
        Specified by:
        setExcludeFilter in interface ILinkEditScanner
        Parameters:
        filter - - new exclude filter
      • getExcludeFilter

        public java.lang.String getExcludeFilter()
        Returns the current excludeFilter used by the load module scanner.
        Specified by:
        getExcludeFilter in interface ILinkEditScanner
        Returns:
        the exclude filter in effect for this scanner
      • getLibpath

        public java.lang.String getLibpath()
        Get the value of LIBPATH used for this instance of the Link Edit Scanner.
        Specified by:
        getLibpath in interface ILinkEditScanner
        Returns:
        LIBPATH
      • setLibpath

        public void setLibpath(java.lang.String libpath)
        Override the default, /usr/lib, LIBPATH for this instance of the Link Edit Scanner.
        Specified by:
        setLibpath in interface ILinkEditScanner
        Parameters:
        libpath - - the new value of LIBPATH. One can specify "$LIBPATH:/user/lib" as the new LIBPATH in order to add /user/lib to the existing environment's LIBPATH. Other substitution variables will be ignored.

<IBM Copyright © 2018 IBM Corp. All Rights Reserved.