BookmarkSubscribeRSS Feed
sateh
Fluorite | Level 6

Is there a way to create a FEDSQL PROC with the INTO statement for macro variables?

I need to do exactly the same as in the image but with PROC FEDSQL, because then I will use the document and c variables, underlined in yellow

 

sateh_1-1667417632327.png

I need PROC FEDSQL because the FROM table is too big and if I use PROC SQL this procedure falls short and resets my session.

8 REPLIES 8
sateh
Fluorite | Level 6

because I need to take the document variable to create tables for each document, and the c variable to apply in a formula

sateh
Fluorite | Level 6


I don't understand when you refer to BY, could you provide me with an example please?

PeterClemmensen
Tourmaline | Level 20

I'm not a FewSQL expert, but I think the interaction with the SAS macro facility is not avaibale in Proc FEDSQL in the same way as Proc SQL.

data_null__
Jade | Level 19

"Falls short" is a bit vague.

 

Perhaps you just need the NOPRINT option on PROC SQL.  

 

When your "solution" does not scale you need a different approach.

 

Give details about what you are trying to do.

Quentin
Super User

Can you show the error messages you get from running the PROC SQL step?

The Boston Area SAS Users Group (BASUG) is hosting our in person SAS Blowout on Oct 18!
This full-day event in Cambridge, Mass features four presenters from SAS, presenting on a range of SAS 9 programming topics. Pre-registration by Oct 15 is required.
Full details and registration info at https://www.basug.org/events.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 8 replies
  • 1014 views
  • 0 likes
  • 5 in conversation