<?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: Code book in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/459212#M14225</link>
    <description>&lt;P&gt;Yes, that paper is 8 years old.&amp;nbsp; I would suggest you look at an industry standard - CDISC - in particular define documents, but maybe in this case one of the earlier in the chain models.&lt;/P&gt;</description>
    <pubDate>Wed, 02 May 2018 08:28:29 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-05-02T08:28:29Z</dc:date>
    <item>
      <title>Code book</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/458618#M14198</link>
      <description>&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please assist me in creating a code book.&lt;/P&gt;&lt;P&gt;I have typed out the label and formats.&lt;/P&gt;&lt;P&gt;I need a pdf or word document showing what all the categorical&amp;nbsp;variable values stand for.&lt;/P&gt;&lt;P&gt;I am trying to follow steps on the internet but not winning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I tried to do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname long "P:\RICE Project\Check\MergeProject";&lt;BR /&gt;libname library 'P:\RICE Project\Check\Do files\labels';&lt;BR /&gt;run;&lt;BR /&gt;title1 RICE study codebook;&lt;/P&gt;&lt;P&gt;%let organization=(ID);&lt;BR /&gt;%macro proc codebook(lib=ProjectLong,file1=label_book,fmtlib=work,pdffile= "P:\RICE Project\Check\Do files\labels\ricecb.pdf");&lt;BR /&gt;ods listing close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I actually don't understand what I need to write for %let organization??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will appreciate your help.&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>Mon, 30 Apr 2018 13:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/458618#M14198</guid>
      <dc:creator>eudox</dc:creator>
      <dc:date>2018-04-30T13:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Code book</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/458625#M14200</link>
      <description>&lt;P&gt;I do not know what a code book is.&amp;nbsp; If you want to print the formats list then use the cntlout option in proc format to create a dataset, then proc report that dataset.&amp;nbsp; There is plenty wrong in the code you present:&lt;/P&gt;
&lt;P&gt;libname long "P:\RICE Project\Check\MergeProject";&lt;BR /&gt;libname library 'P:\RICE Project\Check\Do files\labels';&lt;BR /&gt;run; &amp;lt;- not needed&lt;BR /&gt;title1 RICE study codebook; &amp;lt;- titles should be in quotes&lt;/P&gt;
&lt;P&gt;%let organization=(ID);&amp;nbsp; &amp;lt;- this sets organisation macro variable to the string "(ID)"&lt;BR /&gt;%macro proc codebook(lib=ProjectLong,file1=label_book,fmtlib=work,pdffile= "P:\RICE Project\Check\Do files\labels\ricecb.pdf");&lt;/P&gt;
&lt;P&gt;&amp;lt;- in the above you cannot have the word proc, is this a macro definition as I see no code underneath it?&lt;BR /&gt;ods listing close;&amp;nbsp; &amp;lt;- what is this for?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 13:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/458625#M14200</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-04-30T13:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Code book</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/458634#M14201</link>
      <description>&lt;P&gt;Please post what do have, what kind of file is it?&lt;/P&gt;
&lt;P&gt;and describe what do you want to achieve, what kind of output -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is it a sas dataset? an external file or a print listing?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 13:50:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/458634#M14201</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-04-30T13:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Code book</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/458643#M14202</link>
      <description>&lt;P&gt;The code that you are posting isn't functional. Where did you get it? If we have a look at the original document, we might be able to provide some useful information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 14:07:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/458643#M14202</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-04-30T14:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Code book</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/458677#M14204</link>
      <description>&lt;P&gt;Provide either the code for the macro or what you need in your code book.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 15:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/458677#M14204</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-30T15:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Code book</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/459209#M14224</link>
      <description>&lt;P&gt;Hi all thanks for your responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached the document where I got the code.&lt;/P&gt;&lt;P&gt;There is also an example of a code book.&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 08:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/459209#M14224</guid>
      <dc:creator>eudox</dc:creator>
      <dc:date>2018-05-02T08:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Code book</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/459212#M14225</link>
      <description>&lt;P&gt;Yes, that paper is 8 years old.&amp;nbsp; I would suggest you look at an industry standard - CDISC - in particular define documents, but maybe in this case one of the earlier in the chain models.&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 08:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/459212#M14225</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-02T08:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: Code book</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/459301#M14228</link>
      <description>&lt;P&gt;Here's a rejigged program based on your example and on the document that you provided, that might work. I'm not sure if the pdffile parameter is okay, you might have to change it to&amp;nbsp;pdffile=ricecb.pdf and see where the macro puts the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The organization macro variable is supposed to indicate the file organization, in their example it is "One Record per Participant (ID)".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname long "P:\RICE Project\Check\MergeProject";
libname library 'P:\RICE Project\Check\Do files\labels';
run;
title1 RICE study codebook;

%let organization=(ID);
%proc_codebook(lib=long,file1=label_book,fmtlib=work.formats,pdffile="P:\RICE Project\Check\Do files\labels\ricecb.pdf");
run;
ods listing close;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 May 2018 13:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Code-book/m-p/459301#M14228</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2018-05-02T13:30:13Z</dc:date>
    </item>
  </channel>
</rss>

