<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://greggsmith.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jc.oakgov</id>
		<title>SDU - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://greggsmith.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jc.oakgov"/>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Special:Contributions/Jc.oakgov"/>
		<updated>2026-04-17T15:53:42Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.26.1</generator>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Pdm_deref&amp;diff=3398</id>
		<title>Pdm deref</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Pdm_deref&amp;diff=3398"/>
				<updated>2008-10-20T19:36:21Z</updated>
		
		<summary type="html">&lt;p&gt;Jc.oakgov: /* Overview */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
[[Category:Commands]]&lt;br /&gt;
{{Global Header}}&lt;br /&gt;
{{Global Announcement}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
Use this command to replace data with data found in another table. &lt;br /&gt;
&lt;br /&gt;
For example, lets say you performed the following extract:&lt;br /&gt;
'''pdm_extract -f &amp;quot;SELECT id,category FROM Call_Req&amp;quot; &amp;gt; output.txt.'''&lt;br /&gt;
The resulting extract would have the category entries displayed in their persid format such as pcat:400001. If you wanted to replace the category persid with the sym, the pdm_deref can perform that function.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
pdm_extract [-s] specfile [-c|-e|-r] [-d] [-h] [-n] [-p] [-u] [-v 1|2] &amp;lt;filename&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
! Command&lt;br /&gt;
! Description&lt;br /&gt;
! Remarks&lt;br /&gt;
|-&lt;br /&gt;
| -s specfile&lt;br /&gt;
| file containing SQL statement&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| -c&lt;br /&gt;
| csv output&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| -e&lt;br /&gt;
| csv output with double double quotes&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| -r&lt;br /&gt;
| informal report output&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| -d&lt;br /&gt;
| diagnostics&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| -h&lt;br /&gt;
| Help&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| -p&lt;br /&gt;
| preserve whitespace&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| -u&lt;br /&gt;
| no headers&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
| -v &amp;lt;nowiki&amp;gt;[1|2]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
| verbose. 1 is brief and 2 prints to a log file.&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|-&lt;br /&gt;
| filename&lt;br /&gt;
| file to be processed&lt;br /&gt;
|&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Specfile Example==&lt;br /&gt;
A [[pdm_extract]] in the following format:&lt;br /&gt;
&amp;lt;source lang=text&amp;gt;TABLE Call_Req&lt;br /&gt;
	id category &lt;br /&gt;
	{ &amp;quot;499998&amp;quot; ,&amp;quot;pcat:400001&amp;quot; }&lt;br /&gt;
	{ &amp;quot;499999&amp;quot; ,&amp;quot;pcat:400001&amp;quot; }&amp;lt;/source&amp;gt;...will be change to this format:&lt;br /&gt;
&amp;lt;source lang=text&amp;gt;TABLE Call_Req&lt;br /&gt;
	id category.sym &lt;br /&gt;
	{ &amp;quot;499998&amp;quot; ,&amp;quot;Sofware.Adobe Reader&amp;quot; }&lt;br /&gt;
        { &amp;quot;499999&amp;quot; ,&amp;quot;Softtware.Adobe Writer&amp;quot; }&amp;lt;/source&amp;gt;...by running a specfile containing the following SQL Statement:&lt;br /&gt;
&amp;lt;source lang=sql&amp;gt;Deref&lt;br /&gt;
{&lt;br /&gt;
input = category&lt;br /&gt;
output = category.sym&lt;br /&gt;
rule = &amp;quot;SELECT sym FROM Prob_Category WHERE persid=?&amp;quot;&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
* Deref of a basic text file&lt;br /&gt;
 pdm_deref -s specfile.txt &amp;lt; input.txt &amp;gt; output.txt&lt;/div&gt;</summary>
		<author><name>Jc.oakgov</name></author>	</entry>

	</feed>