BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
xxformat_com
Barite | Level 11

Hi,

 

An offset variable is listing in macros dictionary.

I've never seen any other value than offset=0.

Do you know when it could be different? What is this information for?

 

proc sql;
   select *
   from dictionary.macros;
quit;

 

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

Hi @xxformat_com,

 

The column VALUE in dictionary.macros has a fixed length of 200 bytes. So, if the value of a macro variable is longer than 200 characters, it will be split into substrings of up to 200 characters to fit into multiple records of dictionary.macros. The second, third, ... record will then have OFFSET values of 200, 400, etc.

 

Addendum: See the 2020 post Re: When are dictionary tables updated? for a case where this OFFSET column helped to understand how dictionary tables work.

 

View solution in original post

4 REPLIES 4
PaigeMiller
Diamond | Level 26

Example of OFFSET and explanation here: https://www.lexjansen.com/nesug/nesug06/po/po06.pdf

--
Paige Miller
FreelanceReinh
Jade | Level 19

Hi @xxformat_com,

 

The column VALUE in dictionary.macros has a fixed length of 200 bytes. So, if the value of a macro variable is longer than 200 characters, it will be split into substrings of up to 200 characters to fit into multiple records of dictionary.macros. The second, third, ... record will then have OFFSET values of 200, 400, etc.

 

Addendum: See the 2020 post Re: When are dictionary tables updated? for a case where this OFFSET column helped to understand how dictionary tables work.

 

xxformat_com
Barite | Level 11
Thank you @FreelanceReinhard

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
  • 4 replies
  • 907 views
  • 5 likes
  • 3 in conversation