DATA Step, Macro, Functions and more

Convert Oracle SQL code to SAS Code

Reply
Contributor
Posts: 48

Convert Oracle SQL code to SAS Code

create or replace
PROCEDURE AUTO_PREMIUM_INDICATION
(
  START_YEAR IN NUMBER 
, END_YAER IN NUMBER 
) AS
  SOURCE_SYSTEM VARCHAR(500) := '(2,3,4,14,15)';
POLICY_TYPE VARCHAR(500):= '(1,15)';

 

I want to convert this oracle sql code into SAS Code.

NOTE: START_YEAR and END YEAR are fixed constant passed in program,

Source System and Policy_Type are Variable names. 

Super User
Posts: 5,429

Re: Convert Oracle SQL code to SAS Code

There are no SQL procedures like in RDBMS. So please describe what functionality you wish to create, and that impacts any stored data.
Data never sleeps
Contributor
Posts: 48

Re: Convert Oracle SQL code to SAS Code

Hi please find attached file
Super User
Posts: 3,254

Re: Convert Oracle SQL code to SAS Code

Are you going to continue to use Oracle from SAS? If so you can still use the Oracle stored procedure from SAS using SQL passthru.

 

Looks like your attachment didn't work.

Ask a Question
Discussion stats
  • 3 replies
  • 228 views
  • 0 likes
  • 3 in conversation