BookmarkSubscribeRSS Feed
yassine_ben
Calcite | Level 5

I have a piece of SAS code that make some calculation, and to finish, add a line to a table "T", when I run the code on sas enterprise guide, gives the error below, after a "proc transpose" step, and no line is added to the table "T"

yassine_ben_1-1701648756297.png

 

 

but when I run a stored process, having the same code, it doesn't return the error, and the line is added to the table "T"

 

anyone ever dealt with the same situation? 

5 REPLIES 5
Sajid01
Meteorite | Level 14

Can you please share the log?

yassine_ben
Calcite | Level 5

hello

 

you mean the stored process execution log?

Sajid01
Meteorite | Level 14

Yes.
After all you are executing a SAS code in STP.
Proc transpose is outputing an error and it is quite possible that the source datasets are different.

andreas_lds
Jade | Level 19

Are you 100% sure that SP and EG (?) are processing the same input files?

Quentin
Super User

No, that should not happen.  Most likely you don't have the same data in scoring_client_p3 for some reason. 

 

That error message means that in your data, there is at least one case where there are multiple records that have the same value for NumDossier and Score_Name.

 

You could add a step to identify these duplicate values:

 

proc sort data=scoring_client_p3;
by NumDossier  Score_Name;
run;

data dups;
  set scoring_client_p3;
  by NumDossier Score_Name;
  if not (first.score_name and last.score_name);
run;

When you run that in EG, you should see at least two records in dups.  Sounds like when you run in it in the stored process, dups will have 0 records.  That will confirm there is a difference in your data, which you would need to investigate.

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
  • 5 replies
  • 790 views
  • 1 like
  • 4 in conversation