<?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 compute block in proc report in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/compute-block-in-proc-report/m-p/904602#M44891</link>
    <description>&lt;P&gt;Trying to use proc report to get a proc format to resolved but not working.&lt;/P&gt;&lt;PRE&gt;proc format;&lt;BR /&gt;	value grpfmt&lt;BR /&gt;	1	=	"&amp;lt; 6 years "&lt;BR /&gt;	2	=	"6 to &amp;lt; 12 years "&lt;BR /&gt;	3	=	"12 to &amp;lt; 18 years"&lt;BR /&gt;	4	=	"&amp;gt;= 18 years "&lt;BR /&gt;	;&lt;BR /&gt;		value aprd1_ &lt;BR /&gt;		/*0 = " "*/&lt;BR /&gt;		1 = "PK-I Infusion 1"&lt;BR /&gt;		2 = "PK-I Infusion 2"&lt;BR /&gt;		3 = "Period 1"&lt;BR /&gt;		4 = "Period 2"&lt;BR /&gt;		5 = "PK-II Infusion 3"&lt;BR /&gt;		6 = "PK-II Infusion 4"&lt;BR /&gt;		7 = "Period 3"&lt;BR /&gt;		8 = "PK-III Infusion 5"&lt;BR /&gt;		99="End of Study"&lt;BR /&gt;		;&lt;BR /&gt;&lt;BR /&gt;		value $regname&lt;BR /&gt; 'Actual Potency of ADAMTS13 Activity [a]' = 'Actual Potency of ADAMTS13 Activity [a]'&lt;BR /&gt; '3FRETS-VWF73 Potency of ADAMTS13 Activity' = 'FRETS-VWF73 Potency of ADAMTS13 Activity';&lt;BR /&gt; &lt;BR /&gt;run;&lt;/PRE&gt;&lt;PRE&gt;&lt;BR /&gt;** produce report ;&lt;BR /&gt;%odsstart(output_id=1, useods=0); &lt;BR /&gt;&lt;BR /&gt;ods escapechar = "^";&lt;BR /&gt;&lt;BR /&gt;options FORMCHAR="|_---|+|---+=|-/\&amp;lt;&amp;gt;*";&lt;BR /&gt;&lt;BR /&gt;proc report data=finaldsc split="*" spacing=1 center nowindows wrap /*headskip*/ missing headline /*ps=42*/ /*spanrows*/ out=qctlf.&amp;amp;_progname.(drop=_pg _break_) ;&lt;BR /&gt;column ("__" _pg order1 statorder &amp;amp;gByVars. catc paramstat1 c1 c2);&lt;BR /&gt;&lt;BR /&gt;define _pg / order order=internal noprint; &lt;BR /&gt;define order1 / order order=internal noprint;&lt;BR /&gt;define statorder / order order=internal noprint;&lt;BR /&gt;&lt;BR /&gt;define cohortn / order order=internal noprint;&lt;BR /&gt;define cohort / order order=internal noprint; &lt;BR /&gt;define &amp;amp;gGrpVarN. / order order=internal noprint; &lt;BR /&gt;define &amp;amp;gGrpVar. / order order=internal noprint; &lt;BR /&gt;define aperiod / order order=internal noprint;&lt;BR /&gt;define aperiodc / order order=internal noprint; &lt;BR /&gt;define catc / order order=internal noprint;&lt;BR /&gt;&lt;BR /&gt;define paramstat1 / display "" left width=75;&lt;BR /&gt;define c1 / display style(header)= [asis=on] "TAK-755" center width=31 ;&lt;BR /&gt;define c2 / display style(header)= [asis=on] "SoC" center width=31;&lt;BR /&gt;&lt;BR /&gt;break after order1 / skip;&lt;BR /&gt;break after _pg / page;&lt;BR /&gt;&lt;BR /&gt;compute before _page_;&lt;BR /&gt;line @1 "&amp;amp;gPageHeader. " &amp;amp;gGrpVarN. grpfmt. ;&lt;BR /&gt;line @1 "Treatment Cohort: " cohortn cofmt. ;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute before _pg;&lt;BR /&gt;line @1 " " aperiod aprd1_.; &lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute before order1;&lt;BR /&gt;line @1 " " catc $regname./*catn catc.*/;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute after _page_;&lt;BR /&gt;line @1 139* '_';&lt;BR /&gt;endcomp; &lt;BR /&gt;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;%odsstop;&lt;BR /&gt;&lt;BR /&gt;%let list=&amp;amp;_progname..lst;&lt;BR /&gt;&lt;BR /&gt;%odsstart(bundleoptions='toc=no,BookMarkTitleStart=3', metadata=no, outname=&amp;amp;_progname..rtf);&lt;BR /&gt;%collate_list(&amp;amp;list);&lt;BR /&gt;%odsstop;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 Nov 2023 06:52:31 GMT</pubDate>
    <dc:creator>rajredy7172012</dc:creator>
    <dc:date>2023-11-27T06:52:31Z</dc:date>
    <item>
      <title>compute block in proc report</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/compute-block-in-proc-report/m-p/904602#M44891</link>
      <description>&lt;P&gt;Trying to use proc report to get a proc format to resolved but not working.&lt;/P&gt;&lt;PRE&gt;proc format;&lt;BR /&gt;	value grpfmt&lt;BR /&gt;	1	=	"&amp;lt; 6 years "&lt;BR /&gt;	2	=	"6 to &amp;lt; 12 years "&lt;BR /&gt;	3	=	"12 to &amp;lt; 18 years"&lt;BR /&gt;	4	=	"&amp;gt;= 18 years "&lt;BR /&gt;	;&lt;BR /&gt;		value aprd1_ &lt;BR /&gt;		/*0 = " "*/&lt;BR /&gt;		1 = "PK-I Infusion 1"&lt;BR /&gt;		2 = "PK-I Infusion 2"&lt;BR /&gt;		3 = "Period 1"&lt;BR /&gt;		4 = "Period 2"&lt;BR /&gt;		5 = "PK-II Infusion 3"&lt;BR /&gt;		6 = "PK-II Infusion 4"&lt;BR /&gt;		7 = "Period 3"&lt;BR /&gt;		8 = "PK-III Infusion 5"&lt;BR /&gt;		99="End of Study"&lt;BR /&gt;		;&lt;BR /&gt;&lt;BR /&gt;		value $regname&lt;BR /&gt; 'Actual Potency of ADAMTS13 Activity [a]' = 'Actual Potency of ADAMTS13 Activity [a]'&lt;BR /&gt; '3FRETS-VWF73 Potency of ADAMTS13 Activity' = 'FRETS-VWF73 Potency of ADAMTS13 Activity';&lt;BR /&gt; &lt;BR /&gt;run;&lt;/PRE&gt;&lt;PRE&gt;&lt;BR /&gt;** produce report ;&lt;BR /&gt;%odsstart(output_id=1, useods=0); &lt;BR /&gt;&lt;BR /&gt;ods escapechar = "^";&lt;BR /&gt;&lt;BR /&gt;options FORMCHAR="|_---|+|---+=|-/\&amp;lt;&amp;gt;*";&lt;BR /&gt;&lt;BR /&gt;proc report data=finaldsc split="*" spacing=1 center nowindows wrap /*headskip*/ missing headline /*ps=42*/ /*spanrows*/ out=qctlf.&amp;amp;_progname.(drop=_pg _break_) ;&lt;BR /&gt;column ("__" _pg order1 statorder &amp;amp;gByVars. catc paramstat1 c1 c2);&lt;BR /&gt;&lt;BR /&gt;define _pg / order order=internal noprint; &lt;BR /&gt;define order1 / order order=internal noprint;&lt;BR /&gt;define statorder / order order=internal noprint;&lt;BR /&gt;&lt;BR /&gt;define cohortn / order order=internal noprint;&lt;BR /&gt;define cohort / order order=internal noprint; &lt;BR /&gt;define &amp;amp;gGrpVarN. / order order=internal noprint; &lt;BR /&gt;define &amp;amp;gGrpVar. / order order=internal noprint; &lt;BR /&gt;define aperiod / order order=internal noprint;&lt;BR /&gt;define aperiodc / order order=internal noprint; &lt;BR /&gt;define catc / order order=internal noprint;&lt;BR /&gt;&lt;BR /&gt;define paramstat1 / display "" left width=75;&lt;BR /&gt;define c1 / display style(header)= [asis=on] "TAK-755" center width=31 ;&lt;BR /&gt;define c2 / display style(header)= [asis=on] "SoC" center width=31;&lt;BR /&gt;&lt;BR /&gt;break after order1 / skip;&lt;BR /&gt;break after _pg / page;&lt;BR /&gt;&lt;BR /&gt;compute before _page_;&lt;BR /&gt;line @1 "&amp;amp;gPageHeader. " &amp;amp;gGrpVarN. grpfmt. ;&lt;BR /&gt;line @1 "Treatment Cohort: " cohortn cofmt. ;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute before _pg;&lt;BR /&gt;line @1 " " aperiod aprd1_.; &lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute before order1;&lt;BR /&gt;line @1 " " catc $regname./*catn catc.*/;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute after _page_;&lt;BR /&gt;line @1 139* '_';&lt;BR /&gt;endcomp; &lt;BR /&gt;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;%odsstop;&lt;BR /&gt;&lt;BR /&gt;%let list=&amp;amp;_progname..lst;&lt;BR /&gt;&lt;BR /&gt;%odsstart(bundleoptions='toc=no,BookMarkTitleStart=3', metadata=no, outname=&amp;amp;_progname..rtf);&lt;BR /&gt;%collate_list(&amp;amp;list);&lt;BR /&gt;%odsstop;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Nov 2023 06:52:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/compute-block-in-proc-report/m-p/904602#M44891</guid>
      <dc:creator>rajredy7172012</dc:creator>
      <dc:date>2023-11-27T06:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: compute block in proc report</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/compute-block-in-proc-report/m-p/904616#M44892</link>
      <description>&lt;P&gt;PROC REPORT is not an interactive procedure, so QUIT; is the wrong statement to terminate it. Use RUN; instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;NEVER, EVER&lt;/STRONG&gt;&lt;/U&gt; just say "it's not working" without supplying additional information; post the complete log, especially when ERRORs or WARNINGs occur, and if you get a result, state where it does not meet your expectations&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 11:29:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/compute-block-in-proc-report/m-p/904616#M44892</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-27T11:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: compute block in proc report</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/compute-block-in-proc-report/m-p/904639#M44895</link>
      <description>&lt;P&gt;Not getting any error. But, the output doesn't get the formats like below.&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="rajredy7172012_0-1701096082308.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/90215iD1F287DE1990DD34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rajredy7172012_0-1701096082308.png" alt="rajredy7172012_0-1701096082308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 14:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/compute-block-in-proc-report/m-p/904639#M44895</guid>
      <dc:creator>rajredy7172012</dc:creator>
      <dc:date>2023-11-27T14:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: compute block in proc report</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/compute-block-in-proc-report/m-p/904765#M44905</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/303715"&gt;@rajredy7172012&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Not getting any error. But, the output doesn't get the formats like below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What does "doesn't get the formats" mean in this context?&lt;/P&gt;
&lt;P&gt;I don't see any relationship between that picture and the format code shown above. Unfortunately&amp;nbsp; while pictures may be worth a 1000 words the words may not mean anything in relation to solving a problem without details of what the actual problem is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your "code" is practically meaningless. You have multiple macro variables without showing a definition of where they might come from or the values, much less any example of data that would be used by that Proc Report.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 23:33:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/compute-block-in-proc-report/m-p/904765#M44905</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-11-27T23:33:29Z</dc:date>
    </item>
  </channel>
</rss>

