Reference a package in a script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kwartz
    New Member
    • Dec 2007
    • 35

    Reference a package in a script

    I have a package with various functions and I have written a script with various blocks to test the functions in the package. When I run the script on my machine it works fine but wouldn't work on any other machine. It says
    eg. ISNUMERIC must be declared. I am told it's because I don't reference the package in the script. Can anybody help.

    Thanks
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    Are you accessing same database on both the machines ?

    Comment

    • amitpatel66
      Recognized Expert Top Contributor
      • Mar 2007
      • 2358

      #3
      Originally posted by kwartz
      I have a package with various functions and I have written a script with various blocks to test the functions in the package. When I run the script on my machine it works fine but wouldn't work on any other machine. It says
      eg. ISNUMERIC must be declared. I am told it's because I don't reference the package in the script. Can anybody help.

      Thanks
      You need to call the function ISNUMERIC by saying package_name.IS NUMERIC

      Did you do this way?

      Comment

      • kwartz
        New Member
        • Dec 2007
        • 35

        #4
        Tried that and it worked. I had to do that in each of the blocks that I called the functions

        Comment

        • kwartz
          New Member
          • Dec 2007
          • 35

          #5
          Originally posted by debasisdas
          Are you accessing same database on both the machines ?
          Yes, the database is on more than one machine

          Comment

          • amitpatel66
            Recognized Expert Top Contributor
            • Mar 2007
            • 2358

            #6
            Originally posted by kwartz
            Tried that and it worked. I had to do that in each of the blocks that I called the functions
            Yes ofcourse you need to do that...no other option.....

            Comment

            Working...