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 8339319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:51:14+00:00 2026-06-09T04:51:14+00:00

I’m running a pretty large query against Oracle database using SAS for windows 9.2.

  • 0

I’m running a pretty large query against Oracle database using SAS for windows 9.2. This query is pretty large where in I wrote a sub-query in WITH clause and used it 4 times. This runs fine on SQL PLUS and SQL Developer, but when i run it using SAS, the program hangs up after 20 mins and I can’t even see the log window. I have never worked with SAS and not sure how to proceed but tried following option:

  • I created a SAS code file and ran it from windows batch file hoping to get log written to windows file system, but even this runs in-definitely and I don’t see anything written to log file

Can some one direct me here. How can i use ALTLOG command to get log file written to windows file system so that i can understand the exact error message. By the way DBA’s have mentioned that query runs fine and rows are returned from server side, but for some reason SAS program is not able to show this data. I get about 45,000 records from the query.

Thanks

  • 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-06-09T04:51:16+00:00Added an answer on June 9, 2026 at 4:51 am

    I’ll break it into two points:

    1) running an existing Oracle SQL query in SAS without ever using SAS:
    best way for you is to embed your Oracle SQL code in so called PROC SQL explicit pass-through:

    proc sql;
        connect to oracle as db1 (user=user1 pw=pasw1 path=DB1);
        create table test_table as
        select *
        from connection to db1
            ( /* here we're in oracle */
                      select * from test.table1 where rownum <20 
                    )
        ;
        disconnect from db1;
    quit;
    

    (borrowed from my answer to another question Limiting results in PROC SQL)
    The point is not to try to translate it to SAS SQL (don’t know if you tried or not).

    Also make sure you’re creating a SAS table (as in the example) from query result, not writing it to SAS OUTPUT window.

    2) Regarding getting the log: the log about an action is in general written once it’s done, so if the query is really running for a long time, you won’t see any intermediate logs.
    Anyway, log buffering is the default setting for batch jobs, so log messages are written after the buffer is full.
    To get log messages written immediately to the log file set LOGPARM option:

    -LOGPARM= “WRITE=IMMEDIATE” 
    

    the opposite option is BUFFERED.

    To find out the config file(s) used run following in your SAS session:

    proc options option=config;run;
    

    Then enter the option above on separate line in the config file.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.