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

When using the TMPLOUT= option in SGPLOT, the resulting code has COLLATION=BINARY on the BEGINGRAPH statement.

 

   define statgraph sgplot;

   begingraph / collation=binary datacolors=(CXFF0000 CX008000 CXB26306);

   ...

 

I cannot find the option COLLATION in the documentation. Does anybody out there know what it does?

1 ACCEPTED SOLUTION

Accepted Solutions
Jay54
Meteorite | Level 14

This is an undocumented GTL option used for sorting.  Collation can be BINARY or LINGUISTIC (Default).  BINARY collation uses the system encoding.  For ASCII "Z" comes before "a".  For EBCDIC "z" comes before "A".   So the sort order can change based on encoding, and words with upper case and lower case are in separate blocks.  In LINGUISTIC collation, lower and upper case letters come adjascent, so you get expected results, like in a dictionary.

 

See:  http://www2.sas.com/proceedings/forum2007/297-2007.pdf

 

Note, this option is undocumented, so it has not received extensive user level testing.   If you use it, it is at your own risk.

View solution in original post

2 REPLIES 2
Jay54
Meteorite | Level 14

This is an undocumented GTL option used for sorting.  Collation can be BINARY or LINGUISTIC (Default).  BINARY collation uses the system encoding.  For ASCII "Z" comes before "a".  For EBCDIC "z" comes before "A".   So the sort order can change based on encoding, and words with upper case and lower case are in separate blocks.  In LINGUISTIC collation, lower and upper case letters come adjascent, so you get expected results, like in a dictionary.

 

See:  http://www2.sas.com/proceedings/forum2007/297-2007.pdf

 

Note, this option is undocumented, so it has not received extensive user level testing.   If you use it, it is at your own risk.

ShaneRosanbalm
Obsidian | Level 7

this option is undocumented

No wonder I couldn't find it!

Thanks for the explanation. This confirms my suspicion that I can simply ignore (or even delete) this option when capturing GTL code produced by the TMPLOUT option of SGPLOT.

 

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 912 views
  • 1 like
  • 2 in conversation