 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: I want to dump the contents of the DSPFD command to file and then use FNDSTRPDM to find certain text strings</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/i-want-to-dump-the-contents-of-the-dspfd-command-to-file-and-then-use-fndstrpdm-to-find-certain-text-strings/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/i-want-to-dump-the-contents-of-the-dspfd-command-to-file-and-then-use-fndstrpdm-to-find-certain-text-strings/</link>
	<description></description>
	<lastBuildDate>Sat, 25 May 2013 10:29:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Featured Member: AnchorS - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/i-want-to-dump-the-contents-of-the-dspfd-command-to-file-and-then-use-fndstrpdm-to-find-certain-text-strings/#comment-93457</link>
		<dc:creator>Featured Member: AnchorS - ITKE Community Blog</dc:creator>
		<pubDate>Tue, 21 Jun 2011 06:51:44 +0000</pubDate>
		<guid isPermaLink="false">#comment-93457</guid>
		<description><![CDATA[[...] I want to dump the contents of the DSPFD command to file and then use FNDSTRPDM to find certain text... [...]]]></description>
		<content:encoded><![CDATA[<p>[...] I want to dump the contents of the DSPFD command to file and then use FNDSTRPDM to find certain text&#8230; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qa400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/i-want-to-dump-the-contents-of-the-dspfd-command-to-file-and-then-use-fndstrpdm-to-find-certain-text-strings/#comment-93419</link>
		<dc:creator>qa400</dc:creator>
		<pubDate>Mon, 20 Jun 2011 12:31:35 +0000</pubDate>
		<guid isPermaLink="false">#comment-93419</guid>
		<description><![CDATA[Thanks Tom.

I am going to try the CL  programming.  I have done some things in CL but by no means an expert.  My background is MVS - Z/os.   I do not have a development background so things get tricky for me sometimes.]]></description>
		<content:encoded><![CDATA[<p>Thanks Tom.</p>
<p>I am going to try the CL  programming.  I have done some things in CL but by no means an expert.  My background is MVS &#8211; Z/os.   I do not have a development background so things get tricky for me sometimes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/i-want-to-dump-the-contents-of-the-dspfd-command-to-file-and-then-use-fndstrpdm-to-find-certain-text-strings/#comment-93379</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 17 Jun 2011 19:22:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-93379</guid>
		<description><![CDATA[BTW, what is your programming background? A Windows or Unix background might indicate other directions are better.

Tom]]></description>
		<content:encoded><![CDATA[<p>BTW, what is your programming background? A Windows or Unix background might indicate other directions are better.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/i-want-to-dump-the-contents-of-the-dspfd-command-to-file-and-then-use-fndstrpdm-to-find-certain-text-strings/#comment-93377</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Fri, 17 Jun 2011 19:18:30 +0000</pubDate>
		<guid isPermaLink="false">#comment-93377</guid>
		<description><![CDATA[&lt;i&gt;I am testing a software product and I want to be able to easily verify in an automated way that certain attribs are being set correctly...&lt;/i&gt;

In that case, you probably want a basic CL program that does most/all of the work.

Try these two commands to get some background on what happens:&lt;pre&gt;
DSPFD FILE(QAFDPHY)
      TYPE(*ATR)
      OUTPUT(*OUTFILE)
      FILEATR(*PF)
      OUTFILE(QTEMP/ATR)
RUNQRY QRYFILE((QTEMP/ATR))&lt;/pre&gt;
The DSPFD command converts the attributes of one of the system files on your system into an outfile. The RUNQRY command does a basic query of the content of the outfile. The outfile is created in QTEMP, so it will disappear when you sign off of your session.

That system file is one of the &quot;model&quot; files that are supplied with your system. In fact, it&#039;s the model that is used by the DSPFD command when you request TYPE(*ATR) for FILEATR(*PF) files. So the DSPFD command is retrieving the attributes of the file that defines what the output of the DSPFD output will contain -- kind of a circular reference there. (It seemed like a good example to use.)

By looking at what RUNQRY shows, you can see if the attributes that you&#039;re looking for are supplied. If they are, then the rest is fairly straightforward. If they aren&#039;t, then we need to know what else you need to see.

Post back if this is a direction we can go or not.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>I am testing a software product and I want to be able to easily verify in an automated way that certain attribs are being set correctly&#8230;</i></p>
<p>In that case, you probably want a basic CL program that does most/all of the work.</p>
<p>Try these two commands to get some background on what happens:
<pre>
DSPFD FILE(QAFDPHY)
      TYPE(*ATR)
      OUTPUT(*OUTFILE)
      FILEATR(*PF)
      OUTFILE(QTEMP/ATR)
RUNQRY QRYFILE((QTEMP/ATR))</pre>
<p>The DSPFD command converts the attributes of one of the system files on your system into an outfile. The RUNQRY command does a basic query of the content of the outfile. The outfile is created in QTEMP, so it will disappear when you sign off of your session.</p>
<p>That system file is one of the &#8220;model&#8221; files that are supplied with your system. In fact, it&#8217;s the model that is used by the DSPFD command when you request TYPE(*ATR) for FILEATR(*PF) files. So the DSPFD command is retrieving the attributes of the file that defines what the output of the DSPFD output will contain &#8212; kind of a circular reference there. (It seemed like a good example to use.)</p>
<p>By looking at what RUNQRY shows, you can see if the attributes that you&#8217;re looking for are supplied. If they are, then the rest is fairly straightforward. If they aren&#8217;t, then we need to know what else you need to see.</p>
<p>Post back if this is a direction we can go or not.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anchors</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/i-want-to-dump-the-contents-of-the-dspfd-command-to-file-and-then-use-fndstrpdm-to-find-certain-text-strings/#comment-93376</link>
		<dc:creator>anchors</dc:creator>
		<pubDate>Fri, 17 Jun 2011 18:20:29 +0000</pubDate>
		<guid isPermaLink="false">#comment-93376</guid>
		<description><![CDATA[If youi&#039;re looking for the attributes of the file, you&#039;re using the right command, dspfd, just dump it to an *outfile.  You&#039;ll need to provide the file name and library.  Then query the resulting database file.]]></description>
		<content:encoded><![CDATA[<p>If youi&#8217;re looking for the attributes of the file, you&#8217;re using the right command, dspfd, just dump it to an *outfile.  You&#8217;ll need to provide the file name and library.  Then query the resulting database file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qa400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/i-want-to-dump-the-contents-of-the-dspfd-command-to-file-and-then-use-fndstrpdm-to-find-certain-text-strings/#comment-93371</link>
		<dc:creator>qa400</dc:creator>
		<pubDate>Fri, 17 Jun 2011 15:23:08 +0000</pubDate>
		<guid isPermaLink="false">#comment-93371</guid>
		<description><![CDATA[Thanks Phil - I am going to look into the query tool.]]></description>
		<content:encoded><![CDATA[<p>Thanks Phil &#8211; I am going to look into the query tool.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qa400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/i-want-to-dump-the-contents-of-the-dspfd-command-to-file-and-then-use-fndstrpdm-to-find-certain-text-strings/#comment-93370</link>
		<dc:creator>qa400</dc:creator>
		<pubDate>Fri, 17 Jun 2011 15:21:57 +0000</pubDate>
		<guid isPermaLink="false">#comment-93370</guid>
		<description><![CDATA[Tom - I am looking at many different attributes - I am testing a software product and I want to be able to easily verify in an automated way that certain attribs are being set correctly via the software when it creates a file. (alwdlt, alwupt, delpct,expdate,etc)  There will be many tests so I was trying to keep as simple as possible.  I will take a look at the query interface - Thanks for your help]]></description>
		<content:encoded><![CDATA[<p>Tom &#8211; I am looking at many different attributes &#8211; I am testing a software product and I want to be able to easily verify in an automated way that certain attribs are being set correctly via the software when it creates a file. (alwdlt, alwupt, delpct,expdate,etc)  There will be many tests so I was trying to keep as simple as possible.  I will take a look at the query interface &#8211; Thanks for your help</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/i-want-to-dump-the-contents-of-the-dspfd-command-to-file-and-then-use-fndstrpdm-to-find-certain-text-strings/#comment-93358</link>
		<dc:creator>philpl1jb</dc:creator>
		<pubDate>Fri, 17 Jun 2011 09:48:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-93358</guid>
		<description><![CDATA[Since you have a database, you could use the command DSPPFM (Display physical file member) it has a search like find string.  

But the query/400 tool is very easy to use .. WrkQRY command will start it.  Plenty of info on it available on the Web or come back here with your questions.
Phil]]></description>
		<content:encoded><![CDATA[<p>Since you have a database, you could use the command DSPPFM (Display physical file member) it has a search like find string.  </p>
<p>But the query/400 tool is very easy to use .. WrkQRY command will start it.  Plenty of info on it available on the Web or come back here with your questions.<br />
Phil</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/i-want-to-dump-the-contents-of-the-dspfd-command-to-file-and-then-use-fndstrpdm-to-find-certain-text-strings/#comment-93351</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 16 Jun 2011 23:47:03 +0000</pubDate>
		<guid isPermaLink="false">#comment-93351</guid>
		<description><![CDATA[&lt;i&gt;I have no idea what the database looks like...&lt;/i&gt;

You shouldn&#039;t need to know. The query interface will tell you.

Can you explain a little more what file attributes you&#039;re looking at?

Tom]]></description>
		<content:encoded><![CDATA[<p><i>I have no idea what the database looks like&#8230;</i></p>
<p>You shouldn&#8217;t need to know. The query interface will tell you.</p>
<p>Can you explain a little more what file attributes you&#8217;re looking at?</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: qa400</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/i-want-to-dump-the-contents-of-the-dspfd-command-to-file-and-then-use-fndstrpdm-to-find-certain-text-strings/#comment-93341</link>
		<dc:creator>qa400</dc:creator>
		<pubDate>Thu, 16 Jun 2011 19:58:54 +0000</pubDate>
		<guid isPermaLink="false">#comment-93341</guid>
		<description><![CDATA[I am afraid that is beyond my current Iseries skills.  I have no idea what the database looks like, etc.  But thanks for the suggestion!!!]]></description>
		<content:encoded><![CDATA[<p>I am afraid that is beyond my current Iseries skills.  I have no idea what the database looks like, etc.  But thanks for the suggestion!!!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.037 seconds using memcached
Object Caching 393/399 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-25 10:50:56 -->