BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
CarlosP73
Fluorite | Level 6

Hi!

 

I'm finding a problem that I think it's not difficult to solve but I think I'm missing something... I have created a diagram in EM 14.2 consisting of a linear regression inbetween a star and end groups, in order to run 2 regressions as per a segment variable (group1 and 2). It seems to be running fine in the EM GUI

 

My goal is to run it in EGuide. To do so, I'm getting the code from the last node (end groups) by right-clicking an selecting export as a sas program. I cannot execute the diagram from Guide, I don't get any error but I do not get any updated output either. What am I doing wrong?

 

Any help would be highly appreciated 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
CarlosP73
Fluorite | Level 6

Hi Amir,

 

I think I know what's happening. The way I was executing in EG (outside EM GUI) is correct, After doing multiple trial runs, the problem is where I was looking at to get the output. The location to look at differs depending on the way of running:

- If running within the EM GUI, the location doesn't change, it's the workspace folder in the directory where one has defined the project

- If running outside the EM GUI (EG in my case), the location is temporary and chahges to consecutive workspaces (EMWS1, EMWS2,...), one per run, that can be found in the log, corresponding to a "proc display"

 

I was not aware ot the new worspaces created everytime I executed within Guide, so I thought I was not getting updated results, becaise I kept on looking at the same folder.

 

Thanks for you help Amir. I hope this may help others.

 

Carlos

 

View solution in original post

6 REPLIES 6
Amir
PROC Star

Please show us the SAS EG log of the code with any messages, using the {i} button when posting to aid readability.

 

Just a thought, does it produce a macro definition and you have to invoke the macro?

 

Amir.

CarlosP73
Fluorite | Level 6

Hi Amid, thank you for your interest.

 

I have attached the log, sorry but don't know what yoou mean by "{i} button".

 

The answer to your thought is almost a yes, I mean, the code I get from right-clicking on the last node consists of a number of datasteps mainly defining the datasource, nodes, properties, etc. of the diagram, and then calling the %em5batch macro, which doesn't need to be compiled or written in advance as it comes within the EM license. (you can see this in the log, the code is autogenerated from right-clicking on the last node and selecting "Export Path as SAS Program")

 

Hope this helps. Thanks again.

 

Amir
PROC Star

1) What are you expecting to see after you run the code and where do you expect it to appear?

 

2) I can't see any issues reported in the log, so I'm wondering if this is some kind of configuration issue.

 

3) Have you ever managed to achieve something similar before?

 

4) Are you able to produce any output (in the way you want to see) with a small data / proc step of your own in EG?

 

 

Amir.

CarlosP73
Fluorite | Level 6

Hi Amir,

 

I think I know what's happening. The way I was executing in EG (outside EM GUI) is correct, After doing multiple trial runs, the problem is where I was looking at to get the output. The location to look at differs depending on the way of running:

- If running within the EM GUI, the location doesn't change, it's the workspace folder in the directory where one has defined the project

- If running outside the EM GUI (EG in my case), the location is temporary and chahges to consecutive workspaces (EMWS1, EMWS2,...), one per run, that can be found in the log, corresponding to a "proc display"

 

I was not aware ot the new worspaces created everytime I executed within Guide, so I thought I was not getting updated results, becaise I kept on looking at the same folder.

 

Thanks for you help Amir. I hope this may help others.

 

Carlos

 

Amir
PROC Star

Good investigation - well done.

 

Asking where you expected the output was part of my first question - so it was worth asking.

 

I recommend you mark your explanation as the solution (not my / this post) to further help others as you have suggested.

 

Amir.

CarlosP73
Fluorite | Level 6

Yes, you were pinpointing the key questions, marked as solution. Thanks Amir

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to choose a machine learning algorithm

Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 6 replies
  • 1918 views
  • 0 likes
  • 2 in conversation