<?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: Variable in Title in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-in-Title/m-p/6463#M2068</link>
    <description>THANK YOU!</description>
    <pubDate>Mon, 21 Jan 2008 20:19:33 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-01-21T20:19:33Z</dc:date>
    <item>
      <title>Variable in Title</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-in-Title/m-p/6461#M2066</link>
      <description>I have having a hard time getting variable data in to the title and the n=&lt;BR /&gt;
I am using the #BYVAR for one part and that is working fine but when I try to use  the  symput to get the value from another column in the data I  am only getting a "."&lt;BR /&gt;
Can you look at my code and tell me what I am doing wrong?&lt;BR /&gt;
&lt;BR /&gt;
   Code generated by SAS Task&lt;BR /&gt;
&lt;BR /&gt;
   Generated on: Monday, January 21, 2008 at 11:57:11 AM&lt;BR /&gt;
   By task: List Data&lt;BR /&gt;
&lt;BR /&gt;
   Input Data: WORK.CUR_PREV_LIB_STUDIES&lt;BR /&gt;
   Server:  SASMain&lt;BR /&gt;
   ------------------------------------------------------------------- */&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
/* Start of custom user code. */&lt;BR /&gt;
options nobyline;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
/* End of custom user code. */&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
%_SASTASK_DROPDS(WORK.SORTTempTableSorted);&lt;BR /&gt;
QUIT;&lt;BR /&gt;
&lt;BR /&gt;
/* -------------------------------------------------------------------&lt;BR /&gt;
   Data set WORK.CUR_PREV_LIB_STUDIES does not need to be sorted.&lt;BR /&gt;
   ------------------------------------------------------------------- */&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
	CREATE VIEW WORK.SORTTempTableSorted&lt;BR /&gt;
		AS SELECT Dept_Course, MscTitle1, SUM_OF_MscMaxSeats, SUM_OF_MscTotalEnrolled1, SUM_OF_MscMaxSeats1, SUM_OF_MscTotalEnrolled, "Seats Remaining"n, Difference, Comment, SemDescrip1, SemDescrip, Group FROM WORK.CUR_PREV_LIB_STUDIES;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
TITLE;&lt;BR /&gt;
TITLE1 "Liberal Studies Maximum Seating Comparison";&lt;BR /&gt;
TITLE2 "#byval(group)";&lt;BR /&gt;
TITLE3 "#byval(semdescrip) VS #byval(semdescrip1)";&lt;BR /&gt;
TITLE4 "%SYSFUNC(DATE(), WORDDATE32.) at %SYSFUNC(TIME(), TIMEAMPM8.);";&lt;BR /&gt;
FOOTNOTE;&lt;BR /&gt;
&lt;BR /&gt;
/* Start of custom user code. */&lt;BR /&gt;
DATA _NULL_;&lt;BR /&gt;
if _N_ = 1 then &lt;BR /&gt;
call symput("PrevSemester", "Spring 2007");&lt;BR /&gt;
if _N_ = 1 then&lt;BR /&gt;
call symput("CurSemester", "Spring 2008");&lt;BR /&gt;
if _N_ = 1 then&lt;BR /&gt;
call symput("Lib_Group", put(group, best.));&lt;BR /&gt;
else  stop;&lt;BR /&gt;
/* End of custom user code. */&lt;BR /&gt;
&lt;BR /&gt;
PROC PRINT DATA=WORK.SORTTempTableSorted&lt;BR /&gt;
	NOOBS&lt;BR /&gt;
	LABEL&lt;BR /&gt;
	SPLIT='*'&lt;BR /&gt;
&lt;BR /&gt;
/* Start of custom user code. */&lt;BR /&gt;
n="TOTAL Classes for this &amp;amp;lib_Group = " &lt;BR /&gt;
style(total)={background=yellow}&lt;BR /&gt;
/* End of custom user code. */&lt;BR /&gt;
	;&lt;BR /&gt;
	VAR Dept_Course MscTitle1 SUM_OF_MscMaxSeats SUM_OF_MscTotalEnrolled1 SUM_OF_MscMaxSeats1 SUM_OF_MscTotalEnrolled "Seats Remaining"n Difference Comment SemDescrip1 SemDescrip&lt;BR /&gt;
/* Start of custom user code. */&lt;BR /&gt;
/ STYLE= {Foreground=bigdiff.}&lt;BR /&gt;
/* End of custom user code. */&lt;BR /&gt;
&lt;BR /&gt;
;&lt;BR /&gt;
	BY Group NOTSORTED;&lt;BR /&gt;
	SUMBY Group;&lt;BR /&gt;
	LABEL Dept_Course="DEPT*COURSE_NO"&lt;BR /&gt;
		MscTitle1="_____COURSE_TITLE_____"&lt;BR /&gt;
		SUM_OF_MscMaxSeats="PREV_SEM*MAX_SEATS"&lt;BR /&gt;
		SUM_OF_MscTotalEnrolled1="PREV_SEM*TOTAL_REG"&lt;BR /&gt;
		SUM_OF_MscMaxSeats1="CUR_SEM*MAX_SEATS"&lt;BR /&gt;
		SUM_OF_MscTotalEnrolled="CUR_SEM*TOTAL_REG"&lt;BR /&gt;
		"Seats Remaining"n="SEATS*REMAIN";&lt;BR /&gt;
RUN;&lt;BR /&gt;
/* -------------------------------------------------------------------&lt;BR /&gt;
   End of task code.&lt;BR /&gt;
   ------------------------------------------------------------------- */&lt;BR /&gt;
RUN; QUIT;&lt;BR /&gt;
PROC SQL;&lt;BR /&gt;
%_SASTASK_DROPDS(WORK.SORTTempTableSorted);&lt;BR /&gt;
QUIT;&lt;BR /&gt;
&lt;BR /&gt;
TITLE; FOOTNOTE;</description>
      <pubDate>Mon, 21 Jan 2008 17:03:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-in-Title/m-p/6461#M2066</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-21T17:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Title</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-in-Title/m-p/6462#M2067</link>
      <description>Cheri,&lt;BR /&gt;
&lt;BR /&gt;
Add the following line after DATA _NULL_, as you had no input data set:&lt;BR /&gt;
&lt;BR /&gt;
  SET WORK.SORTTempTableSorted;&lt;BR /&gt;
&lt;BR /&gt;
and the following line (not required, but it makes the code easier to read!) before PROC PRINT:&lt;BR /&gt;
&lt;BR /&gt;
  RUN;&lt;BR /&gt;
&lt;BR /&gt;
You should get something next time............Phil</description>
      <pubDate>Mon, 21 Jan 2008 17:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-in-Title/m-p/6462#M2067</guid>
      <dc:creator>prholland</dc:creator>
      <dc:date>2008-01-21T17:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Title</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-in-Title/m-p/6463#M2068</link>
      <description>THANK YOU!</description>
      <pubDate>Mon, 21 Jan 2008 20:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-in-Title/m-p/6463#M2068</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-21T20:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Variable in Title</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-in-Title/m-p/6464#M2069</link>
      <description>Is the code being restricted to just one GROUP??? This will work for ALL values of GROUP:&lt;BR /&gt;
[pre]&lt;BR /&gt;
TITLE2 "#byval(group)";&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
but this: [pre]&lt;BR /&gt;
if _N_ = 1 then&lt;BR /&gt;
call symput("Lib_Group", put(group, best.));&lt;BR /&gt;
[/pre]&lt;BR /&gt;
will only work for the 1st value for GROUP on the 1st observation?? &lt;BR /&gt;
&lt;BR /&gt;
Or is there only 1 value for GROUP??&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 21 Jan 2008 20:47:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-in-Title/m-p/6464#M2069</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-01-21T20:47:43Z</dc:date>
    </item>
  </channel>
</rss>

