 




<?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: OS/400 physical file overridden</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/file-overridden/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/file-overridden/</link>
	<description></description>
	<lastBuildDate>Thu, 23 May 2013 01:41:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: The Most-Watched IT Questions: January 25, 2011 - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-overridden/#comment-87015</link>
		<dc:creator>The Most-Watched IT Questions: January 25, 2011 - ITKE Community Blog</dc:creator>
		<pubDate>Tue, 25 Jan 2011 06:41:22 +0000</pubDate>
		<guid isPermaLink="false">#comment-87015</guid>
		<description><![CDATA[[...] 8. CharlieBrowne, TomLiotta, CLKelly, and YuVa47 talked out overridden OS/400 physical files. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 8. CharlieBrowne, TomLiotta, CLKelly, and YuVa47 talked out overridden OS/400 physical files. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-overridden/#comment-86657</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 18 Jan 2011 01:09:45 +0000</pubDate>
		<guid isPermaLink="false">#comment-86657</guid>
		<description><![CDATA[&lt;i&gt;...just had to override the file with a new file name(filex) which does not exist yet. &lt;/i&gt;

If FILEX is the F-spec name, it needs to exist unless you &lt;i&gt;override the compile&lt;/i&gt; to point to another file that does exist.

Further, if you override to another file, that file must have the same format-level identifier that FILEX will have. Otherwise there will be a level-check error when the program runs. That&#039;s why you would use a duplicate of the file description -- to ensure a format-level match.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>&#8230;just had to override the file with a new file name(filex) which does not exist yet. </i></p>
<p>If FILEX is the F-spec name, it needs to exist unless you <i>override the compile</i> to point to another file that does exist.</p>
<p>Further, if you override to another file, that file must have the same format-level identifier that FILEX will have. Otherwise there will be a level-check error when the program runs. That&#8217;s why you would use a duplicate of the file description &#8212; to ensure a format-level match.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sangay</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-overridden/#comment-86619</link>
		<dc:creator>sangay</dc:creator>
		<pubDate>Mon, 17 Jan 2011 09:39:14 +0000</pubDate>
		<guid isPermaLink="false">#comment-86619</guid>
		<description><![CDATA[hi All,

the approach was simple, just had to override the file with a new file name(filex) which does not exist yet. RPG program will be compiled. For overhead of overidding again and again, created a new CL which overrides the file and then compile the programs.

Thanks all for your responses and suggestion.

Best,
Sangay]]></description>
		<content:encoded><![CDATA[<p>hi All,</p>
<p>the approach was simple, just had to override the file with a new file name(filex) which does not exist yet. RPG program will be compiled. For overhead of overidding again and again, created a new CL which overrides the file and then compile the programs.</p>
<p>Thanks all for your responses and suggestion.</p>
<p>Best,<br />
Sangay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-overridden/#comment-86481</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Wed, 12 Jan 2011 23:29:26 +0000</pubDate>
		<guid isPermaLink="false">#comment-86481</guid>
		<description><![CDATA[&lt;i&gt;Both file objects do not exists on the system.&lt;/i&gt;

Is this still true? If the objects don&#039;t exist, there is no way to override to point to them. The objects need to exist. The names don&#039;t matter; they only need to have the appropriate file descriptions. Then you can use overrides.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>Both file objects do not exists on the system.</i></p>
<p>Is this still true? If the objects don&#8217;t exist, there is no way to override to point to them. The objects need to exist. The names don&#8217;t matter; they only need to have the appropriate file descriptions. Then you can use overrides.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yuva47</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-overridden/#comment-86436</link>
		<dc:creator>yuva47</dc:creator>
		<pubDate>Wed, 12 Jan 2011 06:29:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-86436</guid>
		<description><![CDATA[Hi Sangay,

Here is an example that you can use/test:

&lt;pre&gt;
FFILE1        IF   E           K DISK    EXTFILE(fileY ) 
FFILE2        IF   E           K DISK    EXTFILE( fileX) 
F                                                        Prefix(x_) Rename(Rfile2: xRfile2) 

D fileY                s             21a   Inz(&#039;LIB1/FILE1&#039;) 
D fileX                s             21a   Inz(&#039;LIB2/FILE2&#039;) 

&lt;/pre&gt;

In this way you don&#039;t need to make any OVRDBF in the CL because its done in your RPG program.

Good luck,
YuVa]]></description>
		<content:encoded><![CDATA[<p>Hi Sangay,</p>
<p>Here is an example that you can use/test:</p>
<pre>
FFILE1        IF   E           K DISK    EXTFILE(fileY ) 
FFILE2        IF   E           K DISK    EXTFILE( fileX) 
F                                                        Prefix(x_) Rename(Rfile2: xRfile2) 

D fileY                s             21a   Inz('LIB1/FILE1') 
D fileX                s             21a   Inz('LIB2/FILE2') 

</pre>
<p>In this way you don&#8217;t need to make any OVRDBF in the CL because its done in your RPG program.</p>
<p>Good luck,<br />
YuVa</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sangay</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-overridden/#comment-86429</link>
		<dc:creator>sangay</dc:creator>
		<pubDate>Wed, 12 Jan 2011 03:31:40 +0000</pubDate>
		<guid isPermaLink="false">#comment-86429</guid>
		<description><![CDATA[HI Tom,

Your approach is what i was looking for but i am afraid that i am not able to figure the steps to Override the files during compilation. 

Any help.

Thanks,
Siddharth]]></description>
		<content:encoded><![CDATA[<p>HI Tom,</p>
<p>Your approach is what i was looking for but i am afraid that i am not able to figure the steps to Override the files during compilation. </p>
<p>Any help.</p>
<p>Thanks,<br />
Siddharth</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-overridden/#comment-86408</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Tue, 11 Jan 2011 20:31:51 +0000</pubDate>
		<guid isPermaLink="false">#comment-86408</guid>
		<description><![CDATA[&lt;i&gt;Can you please tell me if there is any option to change the file name in the program during compilation.&lt;/i&gt;

There are two separate times to pay attention to when you are using externally-described files.

First is when a program is compiled. The compiler uses the name on the F-spec to locate the external description. If there is no *FILE object with that name, the compiler cannot create the necessary structures to process the F-spec.

So either you create a *FILE object with that name or you provide an override with OVRDBF in the job that runs the compilation. You can temporarily create a *FILE object with the F-spec name by running the CRTDUPOBJ command. This duplicate does not need any of the data; it is only a small container for the description of the file. When you create a duplicate file description, you don&#039;t need overrides.

The only options &quot;to change the file name in the program during compilation&quot; are creating duplicate files with names that match the F-specs and running OVRDBF in the job that runs the compile. If the compile is submitted to batch, then any overrides must be submitted in the same job -- that usually requires writing a CL program that does the OVRDBFs and the compile in a single program.

The second time that the F-spec file name is important is when the program runs. And again there are two options. You can run OVRDBF commands in the same job that runs the program or you can use the F-spec keywords to provide the external name and library.

Any OVRDBF commands may be run in the job before the program is called or they may be run by the program by passing them to an API before the program opens the file. Files that are overridden by the RPG program must be specified with USROPN. This lets you delay opening the file until after the override is done.

If the external name is changed by using a variable in the EXTFILE() keyword, then the file also must be specified as USROPN. This again lets you delay opening the file until after the variable value is set.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>Can you please tell me if there is any option to change the file name in the program during compilation.</i></p>
<p>There are two separate times to pay attention to when you are using externally-described files.</p>
<p>First is when a program is compiled. The compiler uses the name on the F-spec to locate the external description. If there is no *FILE object with that name, the compiler cannot create the necessary structures to process the F-spec.</p>
<p>So either you create a *FILE object with that name or you provide an override with OVRDBF in the job that runs the compilation. You can temporarily create a *FILE object with the F-spec name by running the CRTDUPOBJ command. This duplicate does not need any of the data; it is only a small container for the description of the file. When you create a duplicate file description, you don&#8217;t need overrides.</p>
<p>The only options &#8220;to change the file name in the program during compilation&#8221; are creating duplicate files with names that match the F-specs and running OVRDBF in the job that runs the compile. If the compile is submitted to batch, then any overrides must be submitted in the same job &#8212; that usually requires writing a CL program that does the OVRDBFs and the compile in a single program.</p>
<p>The second time that the F-spec file name is important is when the program runs. And again there are two options. You can run OVRDBF commands in the same job that runs the program or you can use the F-spec keywords to provide the external name and library.</p>
<p>Any OVRDBF commands may be run in the job before the program is called or they may be run by the program by passing them to an API before the program opens the file. Files that are overridden by the RPG program must be specified with USROPN. This lets you delay opening the file until after the override is done.</p>
<p>If the external name is changed by using a variable in the EXTFILE() keyword, then the file also must be specified as USROPN. This again lets you delay opening the file until after the variable value is set.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: clkelly</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-overridden/#comment-86401</link>
		<dc:creator>clkelly</dc:creator>
		<pubDate>Tue, 11 Jan 2011 17:56:31 +0000</pubDate>
		<guid isPermaLink="false">#comment-86401</guid>
		<description><![CDATA[Sangay,

You can type the override command(s) and then compile the program interactively rather then in batch.  You could also write a CL program that does the overrides and then run the appropriate compile command.

Carolyn]]></description>
		<content:encoded><![CDATA[<p>Sangay,</p>
<p>You can type the override command(s) and then compile the program interactively rather then in batch.  You could also write a CL program that does the overrides and then run the appropriate compile command.</p>
<p>Carolyn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sangay</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-overridden/#comment-86358</link>
		<dc:creator>sangay</dc:creator>
		<pubDate>Tue, 11 Jan 2011 05:03:47 +0000</pubDate>
		<guid isPermaLink="false">#comment-86358</guid>
		<description><![CDATA[Can you please tell me if there is any option to change the file name in the program during compilation. Suppose File1 to FileX during compilation and object Filex should not exist in the system.]]></description>
		<content:encoded><![CDATA[<p>Can you please tell me if there is any option to change the file name in the program during compilation. Suppose File1 to FileX during compilation and object Filex should not exist in the system.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: charliebrowne</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/file-overridden/#comment-86357</link>
		<dc:creator>charliebrowne</dc:creator>
		<pubDate>Tue, 11 Jan 2011 04:54:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-86357</guid>
		<description><![CDATA[If you are compiling a RPG program and the files are externally defined. They must be on the system or you will not be able to compile. If they are internally defined. that is not a problem.]]></description>
		<content:encoded><![CDATA[<p>If you are compiling a RPG program and the files are externally defined. They must be on the system or you will not be able to compile. If they are internally defined. that is not a problem.</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.035 seconds using memcached
Object Caching 393/399 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-23 04:54:39 -->