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

Hello,

I'm using PROC SURVEYFREQ in SAS EG, but when the results come through I'm getting blank cells next to the respond options. What am I doing wrong?

Picture1.JPG

(in the first column of the 2nd table, under 'REGSAM' I would expect the various response options, in this case 1,2,3...)

Regards

1 ACCEPTED SOLUTION

Accepted Solutions
data_null__
Jade | Level 19

Change it to something with smaller W best3. perhaps.  or just remove it completly.  In your proc step add FORMAT regsam;

View solution in original post

5 REPLIES 5
data_null__
Jade | Level 19

What is the FORMAT associated with REGSAM?

Silvertreetops
Obsidian | Level 7

Hi data_null_;

Thanks for helping out. The format is BEST12.

Picture2.jpg


data_null__
Jade | Level 19

Change it to something with smaller W best3. perhaps.  or just remove it completly.  In your proc step add FORMAT regsam;

Silvertreetops
Obsidian | Level 7

Bingo - thank you for your help. I guess then that there were effectivly 11 spaces after the single digits, pushing them out of view?

ballardw
Super User

actually more like trying to right justify 12 characters in space for fewer though I haven't seen this happen in BASE SAS so it may be an EG thing with different display characteristics.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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
  • 1040 views
  • 0 likes
  • 3 in conversation