<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issue with proc format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987120#M380045</link>
    <description>&lt;P&gt;I can make a graph that sort of looks like that using data like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data gem ;
  length Harvest $9 Variety $4 Wks 8 DTR 8 ;
  input Harvest -- DTR;
cards;
2020-2021 Haas 1 6.5
2020-2021 Haas 3 5.9
2020-2021 Haas 5 5.8
2020-2021 Haas 8 4.3
2020-2021 GEM  3 6.1
2020-2021 GEM  5 5.7
2020-2021 GEM  8 6.2
;

proc sgpanel data=GEM;
  panelby Harvest/ onepanel spacing=5 novarname;
  styleattrs DATACONTRASTCOLORS=(BLUE red);
  vline Wks
    /lineattrs=(pattern=solid thickness=2)
     response=DTR 
     group=Variety 
     grouporder=data 
     markers 
     stat=mean 
  ;
  rowaxis values=(0 to 20 by 2) ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Share your data (use a data step like my example above) so we can see what you are actually working with.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-05-02 at 1.37.41 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114604iECF7A2191E9DBB5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-05-02 at 1.37.41 PM.png" alt="Screenshot 2026-05-02 at 1.37.41 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 May 2026 17:38:26 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2026-05-02T17:38:26Z</dc:date>
    <item>
      <title>Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987091#M380033</link>
      <description>&lt;P&gt;Dear SAS Community,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I needed to alter the order of the months for the variable 'Harvest' (starting with month 11 instead of 1) for a particular Variety when using proc sgpanel so I did it with proc format. However, once I applied this formatting, it applies for the rest of the varieties too, which I don't want. How can I make sure that this formatting only applies for these varieties (I49L and Hass) but not for others?&amp;nbsp; I would greatly appreciate your help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;proc sort data=one out=one; by Harvest; run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;data new;&lt;/DIV&gt;
&lt;DIV&gt;set one;&lt;/DIV&gt;
&lt;DIV&gt;where Variety in('I49L','Hass');&lt;/DIV&gt;
&lt;DIV&gt;if (Harvest eq 11) then tag=1;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 12) then tag=2;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 1) then tag=3;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 2) then tag=4;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 3) then tag=5;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 5) then tag=6;&lt;/DIV&gt;
&lt;DIV&gt;else tag=.;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;proc format;&lt;/DIV&gt;
&lt;DIV&gt;value Harvest 1="Nov"&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 2="Dec"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 3="Jan"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 4="Feb"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 5="Mar"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 6="May";&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; quit;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;proc sgpanel data=new;&lt;BR /&gt;where Season in(1,2,4) and Harvest in(11,12,1,2,3,5) and Variety in('I49L','Hass');&lt;BR /&gt;panelby Season/ onepanel spacing=5 novarname;&lt;BR /&gt;styleattrs DATACONTRASTCOLORS=(BLUE red);&lt;BR /&gt;format tag Harvest.;&lt;BR /&gt;label tag="Harvest";&lt;BR /&gt;vline tag /lineattrs=(pattern=solid thickness=2) response=DTR group=Variety markers stat=mean ;&lt;BR /&gt;rowaxis values=(0 to 12 by 2) ;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 May 2026 22:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987091#M380033</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2026-05-01T22:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987092#M380034</link>
      <description>&lt;P&gt;Not sure what you mean.&lt;/P&gt;
&lt;P&gt;Could you share a picture of the result and explain what part is different than what you want?&lt;/P&gt;
&lt;P&gt;Could you share the data you use?&amp;nbsp; Preferable as small as necessary to show the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2026 23:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987092#M380034</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-05-01T23:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987094#M380035</link>
      <description>&lt;P&gt;Thank you for your quick reply Tom!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want the variety I49L to start with Harvest month 11 (Nov) in the graph, so I did modified that with proc format, but if I want the next variety (GEM) to start with Harvest month 1 (Jan) to 8, then SAS keeps using the formatting from the previous variety (I49L), as you can see in the graph. I hope that helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgpanel data=GEM;&lt;BR /&gt;where Harvest in(1,3,4,5,6,8) and Variety in('GEM','Hass');&lt;BR /&gt;panelby Harvest/ onepanel spacing=5 novarname;&lt;BR /&gt;styleattrs DATACONTRASTCOLORS=(BLUE red);&lt;BR /&gt;vline Wks/lineattrs=(pattern=solid thickness=2) response=DTR group=Variety grouporder=data markers stat=mean ;&lt;BR /&gt;rowaxis values=(0 to 20 by 2) ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_0-1777680040676.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114590i6DF84026EB0C049F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_0-1777680040676.png" alt="palolix_0-1777680040676.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2026 00:06:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987094#M380035</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2026-05-02T00:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987098#M380039</link>
      <description>Make two version of code, one for varieties (I49L and Hass)  , another for varieties (others), and make a macro to wrap them up .</description>
      <pubDate>Sat, 02 May 2026 03:02:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987098#M380039</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2026-05-02T03:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987099#M380040</link>
      <description>&lt;P&gt;The format is applied to the values of the variable it is attached to.&amp;nbsp; The values of other variables has no impact.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want the format to display the same values then make sure to code the VARIABLE with the same values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example you might test the values of the other variable when making decisions about how to assign the values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data new;
  set one;
  where Variety in('I49L','Hass');
  if Variety='I49L' then do;
    if (Harvest eq 11) then tag=1;
    else if (Harvest eq 12) then tag=2;
    else if (Harvest eq 1) then tag=3;
    else if (Harvest eq 2) then tag=4;
    else if (Harvest eq 3) then tag=5;
    else if (Harvest eq 5) then tag=6;
    else tag=.;
  end;
  else do;
* Put code to create proper values of TAG for the 'Hass' variety here ;
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2026 04:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987099#M380040</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-05-02T04:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987118#M380044</link>
      <description>&lt;P&gt;Please be more detailed about what you are doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What are the variable names and types? What do the values mean? What role do they play in the graph you want to create?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the code and the picture my GUESS is that in the dataset GEM you have a format attached to the numeric variable HARVEST that converts the values 1 to 'Nov', 3 to 'Jan' , ... 6 to 'May' and 8 to '8'.&amp;nbsp; I make this guess because in the WHERE statement you limit the set of observations to the ones with those values of HARVEST.&amp;nbsp; If you would like to make this graph using a different format for HARVEST then add a FORMAT statement to the graph.&amp;nbsp; If you would like to simply remove the format and have the raw values displayed then do not include a format specification in the FORMAT statement.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format harvest ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But that is just a guess.&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2026 17:26:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987118#M380044</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-05-02T17:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987120#M380045</link>
      <description>&lt;P&gt;I can make a graph that sort of looks like that using data like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data gem ;
  length Harvest $9 Variety $4 Wks 8 DTR 8 ;
  input Harvest -- DTR;
cards;
2020-2021 Haas 1 6.5
2020-2021 Haas 3 5.9
2020-2021 Haas 5 5.8
2020-2021 Haas 8 4.3
2020-2021 GEM  3 6.1
2020-2021 GEM  5 5.7
2020-2021 GEM  8 6.2
;

proc sgpanel data=GEM;
  panelby Harvest/ onepanel spacing=5 novarname;
  styleattrs DATACONTRASTCOLORS=(BLUE red);
  vline Wks
    /lineattrs=(pattern=solid thickness=2)
     response=DTR 
     group=Variety 
     grouporder=data 
     markers 
     stat=mean 
  ;
  rowaxis values=(0 to 20 by 2) ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Share your data (use a data step like my example above) so we can see what you are actually working with.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2026-05-02 at 1.37.41 PM.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114604iECF7A2191E9DBB5F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2026-05-02 at 1.37.41 PM.png" alt="Screenshot 2026-05-02 at 1.37.41 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 May 2026 17:38:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987120#M380045</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-05-02T17:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987308#M380049</link>
      <description>&lt;P&gt;Thank you so much for your reply Tom.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the problem I am having is due to the format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the first format I have in my file, which applies to all the varieties I have.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt;value Harvest 1 = 'Jan' 2 = 'Feb' 3 = 'Mar' 4 = 'Apr' 5 = 'May' 6 = 'Jun' 7 = 'Jul' 8 = 'Aug' 9 = 'Sept' 10 = 'Oct' 11 = 'Nov' 12 = 'Dec';&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The thing is that when doing the graphs for the variety 'I49L', I want the sequence of the variable Harvest to be 11(Nov), 12(Dec), 1(Jan), 2(Feb), 3(Mar), 5(May), so if I use the following code I can get that, as you can see in the graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;proc sort data=one out=one; by Harvest; run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;data one22;&lt;/DIV&gt;
&lt;DIV&gt;set one;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;if Variety in('I49L','Hass') then do;&lt;/DIV&gt;
&lt;DIV&gt;if (Harvest eq 11) then tag=1;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 12) then tag=2;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 1) then tag=3;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 2) then tag=4;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 3) then tag=5;&lt;/DIV&gt;
&lt;DIV&gt;else if (Harvest eq 5) then tag=6;&lt;/DIV&gt;
&lt;DIV&gt;else tag=.;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;end;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;proc format;&lt;/DIV&gt;
&lt;DIV&gt;value Harvest 1="Nov"&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 2="Dec"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 3="Jan"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 4="Feb"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 5="Mar"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; 6="May";&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; run;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;proc sgpanel data=one22;&lt;BR /&gt;where Season in(1,2,4) and Harvest in(11,12,1,2,3,5) and Variety in('I49L','Hass');&lt;BR /&gt;panelby Season/ onepanel spacing=5 novarname;&lt;BR /&gt;styleattrs DATACONTRASTCOLORS=(BLUE red);&lt;BR /&gt;format tag Harvest.;&lt;BR /&gt;label tag="Harvest";&lt;BR /&gt;vline tag /lineattrs=(pattern=solid thickness=2) response=DTR group=Variety markers stat=mean ;&lt;BR /&gt;rowaxis values=(0 to 12 by 2) ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_0-1778000820064.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114721iBE01EFB5604DD7F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_0-1778000820064.png" alt="palolix_0-1778000820064.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, for the variety 'GEM', I want the sequence of the variable Harvest in the graph to be 1 (Jan), 3 (Mar), 4 (Apr), 5 (May) ,6(Jun), 8(Aug), but even if I do not include the latest format specification I was using for the variety 'I49L' in the code for 'GEM', it will still use it for 'GEM'. Maybe I am not ending the format used for 'I49L' properly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgpanel data=Gem;&lt;BR /&gt;where Harvest in(1,3,4,5,6,8) and Variety in('GEM','Hass');&lt;BR /&gt;panelby Harvest/ onepanel spacing=5 novarname;&lt;BR /&gt;styleattrs DATACONTRASTCOLORS=(BLUE red);&lt;BR /&gt;vline Wks/lineattrs=(pattern=solid thickness=2) response=DTR group=Variety grouporder=data markers stat=mean ;&lt;BR /&gt;rowaxis values=(0 to 20 by 2) ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="palolix_1-1778001050903.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/114722i76600A67428BCF1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="palolix_1-1778001050903.png" alt="palolix_1-1778001050903.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 17:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987308#M380049</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2026-05-05T17:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987313#M380051</link>
      <description>&lt;P&gt;I still do not understand what your data is. Please share some data. And explain it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you have variable named HARVEST that appears to mean either a MONTH number or an ORDER number (or perhaps both?).&amp;nbsp; Perhaps you should split that information into two separate variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have one data step that maps HARVEST into a new variable named TAG.&amp;nbsp; But it only does that for some of the observations.&amp;nbsp; For the other observations you do not give TAG a value. Was TAG an existing variable already?&amp;nbsp; How is it related to HARVEST.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then later you replace the HARVEST/TAG variable in the graph with a third variable named WKS.&amp;nbsp; &amp;nbsp;What is the meaning of WKS?&amp;nbsp; What types of values does it have?&amp;nbsp; From your last picture it seems to have also had the HARVEST. format attached to it and so it looks like it has values of 1,3,4,5,6 and 8.&amp;nbsp; What do those values mean?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 18:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987313#M380051</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-05-05T18:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987324#M380052</link>
      <description>&lt;P&gt;Why do you change the definition of the format HARVEST in your program?&lt;/P&gt;
&lt;P&gt;Originally it was defined with information on displaying the integers 1 to 12. Then later you replaced it with a version that only display the integers from 1 to 6.&amp;nbsp; And it displays them in different ways.&amp;nbsp; You should probably define two different formats in that case.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Remember that a FORMAT converts values into text.&amp;nbsp; So it is used when you want to display the values in a particular way.&amp;nbsp; If you want to display the values in another way then I would consider that a different format.&lt;/P&gt;
&lt;P&gt;So perhaps something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value Months 
  1='Jan' 2='Feb' 3='Mar'  4='Apr'  5='May'  6='Jun' 
  7='Jul' 8='Aug' 9='Sep' 10='Oct' 11='Nov' 12='Dec'
;
value Months_I49L
  1="Nov" 2="Dec" 3="Jan" 4="Feb" 5="Mar" 6="May"
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 18:42:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987324#M380052</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-05-05T18:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987325#M380053</link>
      <description>&lt;P&gt;The variable Harvest is the month the fruit was harvested. What I want to change is the order those months appear in the graph for some fruit varieties like 'I49L'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use tag only as a way to change the order of the months&amp;nbsp; in the case of 'I49L'. So the specification&lt;STRONG&gt; if (Harvest eq 11) then tag=1&lt;/STRONG&gt; will mean that the month 11 (Nov) will appear as the first month in the graph.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wks (Week) is another variable in the model, which I do not want to modify. It can be week 1, 3 or 6.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 18:45:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987325#M380053</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2026-05-05T18:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987326#M380054</link>
      <description>&lt;P&gt;Month 1 should be Jan for all varieties. The only thing I want to change is the order these months appear in the graph for some varieties&amp;nbsp; because in the case of the variety 'I49L', the harvesting season starts in Nov, therefore I would like the graph for this variety to show Nov as the first month instead of Jan. For the variety GEM, the harvesting season starts in Jan, therefore, I would like the graph to show Jan as the first month. This is the the only thing I want to change, but maybe I should have a format for each variety like you and Ksharp are suggesting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much Tom, and sorry for all the confusion&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 May 2026 19:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987326#M380054</guid>
      <dc:creator>palolix</dc:creator>
      <dc:date>2026-05-05T19:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987377#M380056</link>
      <description>&lt;P&gt;Then why did you use WKS in your graph code as the XAXIS?&lt;/P&gt;
&lt;P&gt;Shouldn't that be a variable that has the month (or the re-coded month)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess is that you want to use the PANELBY feature of PROC SGPLOT to make multiply graphs on a single page where the individual graphs use different ranges of XAXIS values and different orders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that is NOT true then do what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;said and just run two PROC SGPLOT statements.&amp;nbsp; One with the set of values that use the JAN -- DEC axis and another that uses the NOV--OCT axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or you might want to use the ability of ODS itself to organize multiple "pages" into one page.&amp;nbsp; Check out ODS LAYOUT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;If you want someone to help you work out the details then provide some example data, does not need to be the real data.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2026 21:07:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Issue-with-proc-format/m-p/987377#M380056</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-05-05T21:07:29Z</dc:date>
    </item>
  </channel>
</rss>

