<?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: DI Studio 4.21: Formatting in Output in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46180#M415</link>
    <description>Hi Thomas&lt;BR /&gt;
&lt;BR /&gt;
Is it now...&lt;BR /&gt;
&lt;BR /&gt;
Obs zeile&lt;BR /&gt;
&lt;BR /&gt;
space space space space 1 total 1188 &lt;BR /&gt;
space space space space 2 -rw-rw-r-- 1 abc sasuser 235175 Mar 29 17:00 AC33005EX_ExtraktSomethi&lt;BR /&gt;
&lt;BR /&gt;
...as the example you've given or is it:&lt;BR /&gt;
&lt;BR /&gt;
space space space space Obs zeile&lt;BR /&gt;
&lt;BR /&gt;
space space space space 1 total 1188 &lt;BR /&gt;
space space space space 2 -rw-rw-r-- 1 abc sasuser 235175 Mar 29 17:00 AC33005EX_ExtraktSomethi&lt;BR /&gt;
&lt;BR /&gt;
...as your narrative implies.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
If first is the case then I would assume that the values in variable "Zeile" have leading blanks. If so then the easiest way to avoid issues would be to use informat $w. instead of $CHARw. and all the pain should go away.&lt;BR /&gt;
&lt;BR /&gt;
I also found this link: &lt;A href="http://support.sas.com/kb/23/332.html" target="_blank"&gt;http://support.sas.com/kb/23/332.html&lt;/A&gt;&lt;BR /&gt;
So if you're using ODS then probabely the underlying style definition has changed to ASIS=ON as part of the SAS9.2 implementation (someone customized the style).&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
If also the variable headings are not left aligned then I would assume that alignment options have been changed (i.e. the leftmargin option). Run a proc options statement and check what settings there are - and if they are still the same than in the old environment.&lt;BR /&gt;
Again: If you're using ODS then also changes in the underlying style could mess-up your output.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Let us know how you go.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
    <pubDate>Wed, 27 Apr 2011 09:47:18 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2011-04-27T09:47:18Z</dc:date>
    <item>
      <title>DI Studio 4.21: Formatting in Output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46176#M411</link>
      <description>Hi all,&lt;BR /&gt;
&lt;BR /&gt;
since upgrading to DI Studio 4.21 the output contains some leading spaces, which is really annoying sometimes. So instead of this:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
                Obs    zeile&lt;BR /&gt;
&lt;BR /&gt;
1     total 1188                                                                   &lt;BR /&gt;
2     -rw-rw-r--    1 abc  sasuser      235175 Mar 29 17:00 AC33005EX_ExtraktSomething.sas         &lt;BR /&gt;
&lt;BR /&gt;
it looks like this&lt;BR /&gt;
&lt;BR /&gt;
                Obs    zeile&lt;BR /&gt;
&lt;BR /&gt;
space space space space 1     total 1188                                                                   &lt;BR /&gt;
space space space space 2     -rw-rw-r--    1 abc  sasuser      235175 Mar 29 17:00 AC33005EX_ExtraktSomethi&lt;BR /&gt;
ng.sas         &lt;BR /&gt;
&lt;BR /&gt;
(and the file name is split into 2 rows)&lt;BR /&gt;
&lt;BR /&gt;
Why would that happen and can I change it via some setting?&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot!&lt;BR /&gt;
&lt;BR /&gt;
Thomas&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: ThomasH

Message was edited by: ThomasH</description>
      <pubDate>Thu, 07 Apr 2011 08:15:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46176#M411</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2011-04-07T08:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio 4.21: Formatting in Output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46177#M412</link>
      <description>Please specify the column lengths where the data is coming from. From what I see it looks like you require a TRIM function:&lt;BR /&gt;
&lt;BR /&gt;
TRIM(column1) || ' ' || TRIM(column2) || ' ' || TRIM(column3)&lt;BR /&gt;
&lt;BR /&gt;
SAS suggests to use the functions otherwise SAS takes the full length of the column by pedding the white space.&lt;BR /&gt;
&lt;BR /&gt;
Hope that helps.&lt;BR /&gt;
&lt;BR /&gt;
Misbah.</description>
      <pubDate>Thu, 07 Apr 2011 14:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46177#M412</guid>
      <dc:creator>Halaku</dc:creator>
      <dc:date>2011-04-07T14:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio 4.21: Formatting in Output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46178#M413</link>
      <description>Hi Misbah,&lt;BR /&gt;
&lt;BR /&gt;
actually I am talking about the output tab in DI Studio, that display e.g. a&lt;BR /&gt;
&lt;BR /&gt;
proc print data=work.W5LUMTKV;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I cant trim that one and still it also starts with the column names like 20 spaces to the right.&lt;BR /&gt;
&lt;BR /&gt;
Thomas</description>
      <pubDate>Fri, 08 Apr 2011 09:25:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46178#M413</guid>
      <dc:creator>ThomasH</dc:creator>
      <dc:date>2011-04-08T09:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio 4.21: Formatting in Output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46179#M414</link>
      <description>This is not really a DI Studio issue, it is more of a base SAS issue and can be controlled via proc print options.  You can find the online doc here, and a search for proc print revealed lots of related information:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000064126.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/viewer.htm#a000064126.htm&lt;/A&gt;  &lt;BR /&gt;
&lt;BR /&gt;
The discussion on column width may answer the question:&lt;BR /&gt;
&lt;BR /&gt;
Column Width&lt;BR /&gt;
By default, PROC PRINT uses a variable's formatted width as the column width. (The WIDTH= option overrides this default behavior.) If the variable does not have a format that explicitly specifies a field width, PROC PRINT uses the widest data value for that variable on that page as the column width.&lt;BR /&gt;
&lt;BR /&gt;
If the formatted value of a character variable or the data width of an unformatted character variable exceeds the line size minus the length of all the ID variables, PROC PRINT might truncate the value. Consider the following situation:&lt;BR /&gt;
&lt;BR /&gt;
The line size is 80.&lt;BR /&gt;
&lt;BR /&gt;
IdNumber is a character variable with a length of 10. It is used as an ID variable.&lt;BR /&gt;
&lt;BR /&gt;
State is a character variable with a length of 2. It is used as an ID variable.&lt;BR /&gt;
&lt;BR /&gt;
Comment is a character variable with a length of 200.&lt;BR /&gt;
&lt;BR /&gt;
When PROC PRINT prints these three variables on a line, it uses 14 print positions for the two ID variables and the space after each one. This arrangement leaves 80-14, or 66, print positions for COMMENT. Longer values of COMMENT are truncated.&lt;BR /&gt;
&lt;BR /&gt;
WIDTH= controls the column width.&lt;BR /&gt;
&lt;BR /&gt;
Note:   Column width is affected not only by variable width but also by the length of column headings. Long column headings might lessen the usefulness of WIDTH=.</description>
      <pubDate>Mon, 25 Apr 2011 19:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46179#M414</guid>
      <dc:creator>nar_sas</dc:creator>
      <dc:date>2011-04-25T19:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio 4.21: Formatting in Output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46180#M415</link>
      <description>Hi Thomas&lt;BR /&gt;
&lt;BR /&gt;
Is it now...&lt;BR /&gt;
&lt;BR /&gt;
Obs zeile&lt;BR /&gt;
&lt;BR /&gt;
space space space space 1 total 1188 &lt;BR /&gt;
space space space space 2 -rw-rw-r-- 1 abc sasuser 235175 Mar 29 17:00 AC33005EX_ExtraktSomethi&lt;BR /&gt;
&lt;BR /&gt;
...as the example you've given or is it:&lt;BR /&gt;
&lt;BR /&gt;
space space space space Obs zeile&lt;BR /&gt;
&lt;BR /&gt;
space space space space 1 total 1188 &lt;BR /&gt;
space space space space 2 -rw-rw-r-- 1 abc sasuser 235175 Mar 29 17:00 AC33005EX_ExtraktSomethi&lt;BR /&gt;
&lt;BR /&gt;
...as your narrative implies.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
If first is the case then I would assume that the values in variable "Zeile" have leading blanks. If so then the easiest way to avoid issues would be to use informat $w. instead of $CHARw. and all the pain should go away.&lt;BR /&gt;
&lt;BR /&gt;
I also found this link: &lt;A href="http://support.sas.com/kb/23/332.html" target="_blank"&gt;http://support.sas.com/kb/23/332.html&lt;/A&gt;&lt;BR /&gt;
So if you're using ODS then probabely the underlying style definition has changed to ASIS=ON as part of the SAS9.2 implementation (someone customized the style).&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
If also the variable headings are not left aligned then I would assume that alignment options have been changed (i.e. the leftmargin option). Run a proc options statement and check what settings there are - and if they are still the same than in the old environment.&lt;BR /&gt;
Again: If you're using ODS then also changes in the underlying style could mess-up your output.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Let us know how you go.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Wed, 27 Apr 2011 09:47:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46180#M415</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2011-04-27T09:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio 4.21: Formatting in Output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46181#M416</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
it is actually like in your second example - I missed the spaces in the header in my first post.&lt;BR /&gt;
&lt;BR /&gt;
So I checked proc options and all margins - especially leftmargin - are like "0.0000 IN".&lt;BR /&gt;
&lt;BR /&gt;
No ODS in use.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Thomas</description>
      <pubDate>Wed, 27 Apr 2011 11:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46181#M416</guid>
      <dc:creator>thomash123</dc:creator>
      <dc:date>2011-04-27T11:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio 4.21: Formatting in Output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46182#M417</link>
      <description>Hi Thomas&lt;BR /&gt;
&lt;BR /&gt;
Looking at the code the "List Data" transformation generates in DIS4.21 you're actually using ODS LISTING.&lt;BR /&gt;
&lt;BR /&gt;
   %else %do;&lt;BR /&gt;
      ODS listing;&lt;BR /&gt;
   %end;   &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I've run the following code in my very default SAS9.2 installation...&lt;BR /&gt;
&lt;BR /&gt;
ods listing ;&lt;BR /&gt;
proc print data=sashelp.air;&lt;BR /&gt;
run;&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
&lt;BR /&gt;
... and got a result in the listing output similar to what you're describing.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
But when using option "NOCENTER" my output suddenly was left-aligned.&lt;BR /&gt;
&lt;BR /&gt;
My assumption is:&lt;BR /&gt;
The SAS default installation setting for SAS9.2 is "CENTER". In your previous environment the option was set to "NOCENTER".&lt;BR /&gt;
&lt;BR /&gt;
You could ask your SAS Admin to set "NOCENTER" as default as it was before - or you set the option yourself in the "List Data" transformation under "options/Other options/System options" - or even as job pre-code.&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Wed, 27 Apr 2011 12:41:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46182#M417</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2011-04-27T12:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: DI Studio 4.21: Formatting in Output</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46183#M418</link>
      <description>Hi Patrick,&lt;BR /&gt;
&lt;BR /&gt;
thanks for the reply. I am not using the list data transformation, but some self generated code.&lt;BR /&gt;
&lt;BR /&gt;
However, the "options nocenter" thing works. I should have a close look at all the options one can set - is there an exhaustive list somewhere?&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot!&lt;BR /&gt;
Thomas</description>
      <pubDate>Wed, 27 Apr 2011 15:18:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/DI-Studio-4-21-Formatting-in-Output/m-p/46183#M418</guid>
      <dc:creator>thomash123</dc:creator>
      <dc:date>2011-04-27T15:18:21Z</dc:date>
    </item>
  </channel>
</rss>

