<?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: proc format picture in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-format-picture/m-p/733006#M228415</link>
    <description>&lt;P&gt;Sorry if i am not able to explain my query correctly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Result for unscheduled visit&amp;nbsp; "without “U999.01”,’U999.02’ etc." means display "U01",'U02" etc. instead&amp;nbsp; of "U999.01","U999.02" (excluding&amp;nbsp; "999.")&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 13:22:36 GMT</pubDate>
    <dc:creator>unnati</dc:creator>
    <dc:date>2021-04-12T13:22:36Z</dc:date>
    <item>
      <title>proc format picture</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-picture/m-p/732617#M228302</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can anyone help me how can I use PROC PICTURE &amp;nbsp;more efficiently for following kind of visit to assign format.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;For example&amp;nbsp; assigning “ U01” , “U02” etc. without “U999.01”,’U999.02’ etc.&amp;nbsp; -- &amp;gt; I know this can be resolve by adding one extra step in data step, but is there any way to do in PROC format code.&lt;/LI&gt;&lt;LI&gt;How to assign&amp;nbsp; range in proc format (for 101- 109 and then 1001 -1401.) rather than assigning individually(as shown below)&lt;/LI&gt;&lt;LI&gt;Thank you.&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1;
length visit $200.;
input visit$1-15 visitnum 16-21;
datalines;
Screening       10
Cycle 01 Day 1	101
Cycle 02 Day 1	201
Cycle 03 Day 1	301
Cycle 04 Day 1	401
Cycle 05 Day 1	501
Cycle 06 Day 1	601
Cycle 07 Day 1	701
Cycle 08 Day 1	801
Cycle 09 Day 1	901
Unscheduled 1	999.01
Unscheduled 2	999.02
Unscheduled 3	999.03
Unscheduled 4	999.04
Unscheduled 5	999.05
Unscheduled 6	999.06
Unscheduled 7	999.07
Unscheduled 8	999.08
Unscheduled 9	999.09
Unscheduled 10	999.1
Unscheduled 12	999.12
Unscheduled 13	999.13
Unscheduled 17	999.17
Unscheduled 30	999.3
Cycle 10 Day 1	1001
Cycle 11 Day 1	1101
Cycle 12 Day 1	1201
Cycle 13 Day 1	1301
Cycle 14 Day 1	1401
Discontinuation	10090
;
run;


proc Format;
	value $visit
		10  =	'Screening'
		101	=	 'V01'
		201	=	 'V02'
		301	=	 'V03'
		401	=	 'V04'
		501	=	 'V05'
		601	=	 'V06'
		701	=	 'V07'
		801	=	 'V08'
		901	=	 'V09'
		1001=	 'V10'
		1101=	 'V11'
		1201=	 'V12'
		1301=	 'V13'
		1401=	 'V14'
		1501=	 'V15'
		1601=	 'V16'
		1701=	 'V17'
		10090=	 'EOT'
       999.01 = 'U01'
       999.02 	= 'U02'
       999.03 	= 'U03'
       999.04 	= 'U04'
       999.05 	= 'U05'
       999.06 	= 'U06'
       999.36 	= 'U36'
	;
run;
proc format lib=library;
 picture visitwin (round)
 10 = 'Screening' (noedit)
 101 = 'V01' (noedit)
 201 = 'V02' (noedit)
 301 = 'V03' (noedit)
 401 = 'V04' (noedit)
 999.01 - 999.99 = 000.99 (prefix='U');
run; 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 09 Apr 2021 19:38:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-picture/m-p/732617#M228302</guid>
      <dc:creator>unnati</dc:creator>
      <dc:date>2021-04-09T19:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc format picture</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-picture/m-p/732633#M228305</link>
      <description>&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;I am not sure I understand what:&lt;/P&gt;
&lt;P&gt;For example assigning “ U01” , “U02” etc. without “U999.01”,’U999.02’ etc. -- &amp;gt; I know this can be resolve by adding one extra step in data step, but is there any way to do in PROC format code.&lt;/P&gt;
&lt;P&gt;really means. If you do not supply a range then Proc format generally displays any values out of the range using a default for type unless you use the OTHER range. So if you do not provide 999.01 - 999.99 (or what ever) in the ranges the values would display as Best12 or so values, 999.01 999.02 and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the second question are you looking for something like:&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;proc Format;
	value $visit
		10  =	'Screening'
		101 - 109=	 'V01'
		201 - 209=	 'V02'
&amp;lt;etc&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;Rules are important as lists of examples do not always describe the situation as carefully.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is complex enough for range/rule combinations you may look at a Cntlin data set to build values with data step logic.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 20:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-picture/m-p/732633#M228305</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-09T20:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: proc format picture</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-picture/m-p/732648#M228306</link>
      <description>&lt;P&gt;For example assigning “ U01” , “U02” etc. without “U999.01”,’U999.02’ etc. -- &amp;gt; I know this can be resolve by adding one extra step in data step, but is there any way to do in PROC format code.&lt;/P&gt;&lt;P&gt;really means ----- &amp;gt; it means when you use PROC format PICTURE it will give you result like&amp;nbsp;“U999.01”,’U999.02 for range of unscheduled visit Please see example at following link&amp;nbsp; &amp;nbsp;&lt;A href="https://www.pharmasug.org/proceedings/2012/IB/PharmaSUG-2012-IB07.pdf" target="_self"&gt;https://www.pharmasug.org/proceedings/2012/IB/PharmaSUG-2012-IB07.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unsch.PNG" style="width: 266px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57254i5AC0E73002DF36C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="unsch.PNG" alt="unsch.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 20:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-picture/m-p/732648#M228306</guid>
      <dc:creator>unnati</dc:creator>
      <dc:date>2021-04-09T20:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc format picture</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-picture/m-p/732658#M228312</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/3676"&gt;@unnati&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;For example assigning “ U01” , “U02” etc. without “U999.01”,’U999.02’ etc. -- &amp;gt; I know this can be resolve by adding one extra step in data step, but is there any way to do in PROC format code.&lt;/P&gt;
&lt;P&gt;really means ----- &amp;gt; it means when you use PROC format PICTURE it will give you result like&amp;nbsp;“U999.01”,’U999.02 for range of unscheduled visit Please see example at following link&amp;nbsp; &amp;nbsp;&lt;A href="https://www.pharmasug.org/proceedings/2012/IB/PharmaSUG-2012-IB07.pdf" target="_self"&gt;https://www.pharmasug.org/proceedings/2012/IB/PharmaSUG-2012-IB07.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="unsch.PNG" style="width: 266px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/57254i5AC0E73002DF36C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="unsch.PNG" alt="unsch.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;Please don't bother describing what you don't want. Do describe what you do want / expect for output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What am I supposed to be looking at in that link? Without knowing what you expect to show given specific values it really sin't clear what you want.&lt;/P&gt;
&lt;P&gt;In discussing Proc Format that means you need to&lt;/P&gt;
&lt;P&gt;1) define clearly the range(s) of values&lt;/P&gt;
&lt;P&gt;2) the final appearance for those ranges.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have mentioned "without “U999.01”,’U999.02’ etc."&amp;nbsp; So what is input range and what is the expected appearance of the result? "Without" could mean 1) nothing at all is displayed such as a blank value 2) Values of U999.011 to U999.0199999 are acceptable but not the U999.01 and U999.02 (excluding ends of intervals) 3) display 999.01 instead of "U999.01" - don't specify a prefix at all.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 21:54:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-picture/m-p/732658#M228312</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-09T21:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: proc format picture</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-format-picture/m-p/733006#M228415</link>
      <description>&lt;P&gt;Sorry if i am not able to explain my query correctly.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Result for unscheduled visit&amp;nbsp; "without “U999.01”,’U999.02’ etc." means display "U01",'U02" etc. instead&amp;nbsp; of "U999.01","U999.02" (excluding&amp;nbsp; "999.")&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 13:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-format-picture/m-p/733006#M228415</guid>
      <dc:creator>unnati</dc:creator>
      <dc:date>2021-04-12T13:22:36Z</dc:date>
    </item>
  </channel>
</rss>

