BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
devarayalu
Fluorite | Level 6
Reference IDArm.IDCharacter
25381%ALK+
25381%ALK-
25381%ALK(Unknown)
25381%T790M+
25381%T790M-
25381%T790M(unkown)
25381%CMET+
25381%CMET-
25381%CMET(unknown)
25382%ALK+
25382%ALK-
25382%ALK(Unknown)
25382%T790M+
25382%T790M-
25382%T790M(unkown)
25382%CMET+
25382%CMET-
25382%CMET(unknown)

proc transpose data=transpose_New out=one;

by Reference_ID Arm_id;

Id character;

var value;

run;

ERROR: The ID value "_ALK_" occurs twice in the same BY group.

ERROR: The ID value "_T790M_" occurs twice in the same BY group.

ERROR: The ID value "_CMET_" occurs twice in the same BY group.

NOTE: The above message was for the following by-group:

      Reference ID=2538 Arm.ID=1

ERROR: The ID value "_ALK_" occurs twice in the same BY group.

ERROR: The ID value "_T790M_" occurs twice in the same BY group.

ERROR: The ID value "_CMET_" occurs twice in the same BY group.

NOTE: The above message was for the following by-group:

      Reference ID=2538 Arm.ID=2

ERROR: All BY groups were bad.

NOTE: The SAS System stopped processing this step because of errors.

NOTE: There were 18 observations read from the data set WORK.TRANSPOSE_NEW.

WARNING: The data set WORK.ONE may be incomplete.  When this step was stopped there were 0

         observations and 0 variables.

WARNING: Data set WORK.ONE was not replaced because this step was stopped.

NOTE: PROCEDURE TRANSPOSE used (Total process time):

      real time           0.00 seconds

      cpu time            0.00 seconds

1 ACCEPTED SOLUTION

Accepted Solutions
Fraktalnisse
SAS Employee

In Proc Transpose, the values in the ID variable will be interpreted as variable names in the output data set. Invalid characters will be replaced with underscore. For example, the values %ALK+ and %ALK- will both be transformed into the valid variable name _ALK_. So, this value occurs twice in the same by group.

View solution in original post

1 REPLY 1
Fraktalnisse
SAS Employee

In Proc Transpose, the values in the ID variable will be interpreted as variable names in the output data set. Invalid characters will be replaced with underscore. For example, the values %ALK+ and %ALK- will both be transformed into the valid variable name _ALK_. So, this value occurs twice in the same by group.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 1174 views
  • 0 likes
  • 2 in conversation