Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6249811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:18:26+00:00 2026-05-24T13:18:26+00:00

I am using this oracle connection code in sas and getting this error: ORACLE

  • 0

I am using this oracle connection code in sas and getting this error:

ORACLE prepare error: ORA-06553: PLS-306: wrong number or types of arguments in call to 'get_pat_fix';

my code looks like this:

proc sql;
 connect to oracle(user='XXXXX'orapw='XXXXXX'path='');

  create table work.XXX as select * from connection to oracle (

        select to_char(yy.XXXX) as XXXXXX,
substr(get_pat_fix ('XX', yy.XXXX , 'XX','XX'),1,5)   XXXX,
from XXX;

I have tried to modify it several times but could not get it fixed.
I would extremely appreciate your help regarding the same.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T13:18:27+00:00Added an answer on May 24, 2026 at 1:18 pm

    “I didnt understand the get_pat_fix function explanation.”

    Browse the function in an IDE like TOAD or SQL Developer, or describe it in SQL*Plus like this:

    SQL> desc validate_salary
    FUNCTION validate_salary RETURNS VARCHAR2
     Argument Name                  Type                    In/Out Default?
     ------------------------------ ----------------------- ------ --------
     P_CURRENT_SAL                  NUMBER                  IN
     P_RAISE_PCT                    NUMBER                  IN
     P_JOB                          VARCHAR2                IN
     P_HIREDATE                     DATE                    IN
     P_DEPTNO                       NUMBER                  IN     DEFAULT
    
    SQL>
    

    This shows you the number and datatype of the parameters. We must pass values for every paramater which doesn’t have a default, and we must pass a variable for any OUT or IN OUT parameter. The passed values must match the datatype of the parameter.

    Parameters can be passed by position…

    SQL> select validate_salary (4000, 10, 'MGR', sysdate-720)
      2  from dual
      3  /
    
    VALIDATE_SALARY(4000,10,'MGR',SYSDATE-720)
    --------------------------------------------------------------
    okay
    
    SQL>
    

    … or by named notation…

    SQL> select validate_salary (p_current_sal=> e.sal
      2                              , p_hiredate=> e.hiredate
      3                              , p_deptno => e.deptno
      4                              , p_job => e.job
      5                              , p_raise_pct=> 10 )
      6  from emp e
      7  /
    
    VALIDATE_SALARY(P_CURRENT_SAL=>E.SAL,P_HIREDATE=>E.HIREDATE,P_DEPTNO=>E.DEPTNO,P
    --------------------------------------------------------------------------------
    okay
    okay
    okay  
    ...
    

    Either way, the parameters need to match:

    SQL> select validate_salary (4000, 10, 'MGR')
      2  from dual
      3  /
    select validate_salary (4000, 10, 'MGR')
           *
    ERROR at line 1:
    ORA-06553: PLS-306: wrong number or types of arguments in call to
    'VALIDATE_SALARY'
    
    SQL> select validate_salary (4000, 'MGR', sysdate-720, 40)
      2  from dual
      3  /
    select validate_salary (4000, 'MGR', sysdate-720, 40)
           *
    ERROR at line 1:
    ORA-06553: PLS-306: wrong number or types of arguments in call to
    'VALIDATE_SALARY'
    
    
    SQL> 
    

    Of course, I missed out the most obvious answer: consult your application’s documentation, which will have a detailed description of the GET_PAT_FIX() function including its signature. 😀 Sorry, thought I could keep a straight face while I typed that.

    Alas, in the real world too many of us have to struggle along without decent documentation for our apps. So we have to interrogate the database schema. I don’t think there are any SAS tools for doing this (the ones Google throws up all seem to be just data browsers). So that means you’ll need a database tool. I’m going to suggest Oracle’s SQL Developer not because it’s the best (that’s a matter of taste) but because it is free, and it works. Find it here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have used oracle connection like below. using (OracleConnection connection = OracleHelper.GetConnection(this.ConnectionStringKey)) { //some
When im trying to run this code to establish a connection ...... this error
I have an Oracle account (schema) of a remote Oracle database. By using this
Below is my Oracle Procedure. When i call this procedure using java, it throws
This might be simple but I am new to Oracle. I am using Oracle
I tried to create a file using Oracle UTL_FILE.FOPEN command but i get this
Using this code, i am able to send a notification to my own device.
I'm trying to make a connection to an oracle database using the sample codes
I'm getting an oracle 00911 error (illegal character). I'm hoping someone can help me
I want to make Java code (using Oracle 11g and JDBC also) which will

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.