<?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: AS/400 Subfile Program</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/subfile-program/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-program/</link>
	<description></description>
	<lastBuildDate>Thu, 20 Jun 2013 01:19:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: The Most-Watched IT Questions: February 1, 2011 - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-program/#comment-87324</link>
		<dc:creator>The Most-Watched IT Questions: February 1, 2011 - ITKE Community Blog</dc:creator>
		<pubDate>Tue, 01 Feb 2011 06:16:25 +0000</pubDate>
		<guid isPermaLink="false">#comment-87324</guid>
		<description><![CDATA[[...] 4. CharlieBrowne, TomLiotta, and PGMBOB help Kaly navigate an AS/400 subfile program. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] 4. CharlieBrowne, TomLiotta, and PGMBOB help Kaly navigate an AS/400 subfile program. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Featured Member: PGMBOB - ITKE Community Blog</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-program/#comment-87019</link>
		<dc:creator>Featured Member: PGMBOB - ITKE Community Blog</dc:creator>
		<pubDate>Tue, 25 Jan 2011 06:51:27 +0000</pubDate>
		<guid isPermaLink="false">#comment-87019</guid>
		<description><![CDATA[[...] AS/400 Subfile Program [...]]]></description>
		<content:encoded><![CDATA[<p>[...] AS/400 Subfile Program [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-program/#comment-86875</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 20 Jan 2011 23:21:05 +0000</pubDate>
		<guid isPermaLink="false">#comment-86875</guid>
		<description><![CDATA[&lt;i&gt;Each record written to the subfile needs a new rrn.&lt;/i&gt;

Sheesh... right. It&#039;s been so long since I&#039;ve looked at that old format that it didn&#039;t even click.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>Each record written to the subfile needs a new rrn.</i></p>
<p>Sheesh&#8230; right. It&#8217;s been so long since I&#8217;ve looked at that old format that it didn&#8217;t even click.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-program/#comment-86872</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 20 Jan 2011 22:36:36 +0000</pubDate>
		<guid isPermaLink="false">#comment-86872</guid>
		<description><![CDATA[&lt;i&gt;3010 referenced would indicate the source line with the error.&lt;/i&gt;

That&#039;s what I thought too, but there&#039;s no way for us to match it up. We could think it was sequence # 30.10, so perhaps count down thirty lines to see what&#039;s near by. There doesn&#039;t seem to be anything obvious above or below for a few lines.

And it looks almost as if the error info was copy/pasted into the post. Yet when I look at OPM or ILE RPG listings with 7030 errors, they don&#039;t look quite the same -- so it might not be a copy.

And if it&#039;s not a copy, then it was typed and might have looked like almost anything.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>3010 referenced would indicate the source line with the error.</i></p>
<p>That&#8217;s what I thought too, but there&#8217;s no way for us to match it up. We could think it was sequence # 30.10, so perhaps count down thirty lines to see what&#8217;s near by. There doesn&#8217;t seem to be anything obvious above or below for a few lines.</p>
<p>And it looks almost as if the error info was copy/pasted into the post. Yet when I look at OPM or ILE RPG listings with 7030 errors, they don&#8217;t look quite the same &#8212; so it might not be a copy.</p>
<p>And if it&#8217;s not a copy, then it was typed and might have looked like almost anything.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pgmbob</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-program/#comment-86857</link>
		<dc:creator>pgmbob</dc:creator>
		<pubDate>Thu, 20 Jan 2011 20:03:39 +0000</pubDate>
		<guid isPermaLink="false">#comment-86857</guid>
		<description><![CDATA[RRN is the subfile record number. Each record written to the subfile needs a new rrn.]]></description>
		<content:encoded><![CDATA[<p>RRN is the subfile record number. Each record written to the subfile needs a new rrn.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pgmbob</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-program/#comment-86855</link>
		<dc:creator>pgmbob</dc:creator>
		<pubDate>Thu, 20 Jan 2011 19:52:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-86855</guid>
		<description><![CDATA[Hello. 
Good find Tom. 
DDS does not define CF03. Also *in07 is tested but I don&#039;t see it defined. The 3010 referenced would indicate the source line with the error. 
Good luck!]]></description>
		<content:encoded><![CDATA[<p>Hello.<br />
Good find Tom.<br />
DDS does not define CF03. Also *in07 is tested but I don&#8217;t see it defined. The 3010 referenced would indicate the source line with the error.<br />
Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tomliotta</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-program/#comment-86795</link>
		<dc:creator>tomliotta</dc:creator>
		<pubDate>Thu, 20 Jan 2011 01:11:41 +0000</pubDate>
		<guid isPermaLink="false">#comment-86795</guid>
		<description><![CDATA[&lt;i&gt;QRG7030 Severity: 30 Number: 1
Message . . . . : The Field or indicator is not defined.
5722WDS V5R3M0 030905
* 7030 07 3010&lt;/i&gt;

The first lines are telling you what the error is. The last line might be telling you where the error is, but I can&#039;t recognize the format. I&#039;m not even sure what compiler you&#039;re using.

In any case, some of your problem is probably related to this line in your subfile:

&lt;i&gt;A FLD001 1 0I 9 4&lt;/i&gt;

I suspect that you want it to be OPT instead of FLD001. But then you have this line in your program:

&lt;i&gt;C Z-ADD 0 OPT 20&lt;/i&gt;

You shouldn&#039;t define OPT in your program if it&#039;s a field from the display file. It&#039;s already defined.

There are other things, like RRN. It looks like you only use it to decide if *IN30 should be set on. But you could just as easily simply set *IN30 on instead of incrementing RRN.

Anyway, without knowing whether this is OPM RPG or it&#039;s ILE RPG that&#039;s just formatted like old OPM RPG, I can&#039;t quite decipher the error. Also, when pasting code, try to select what you pasted and click the {code} button -- that helps preserve the format.

Tom]]></description>
		<content:encoded><![CDATA[<p><i>QRG7030 Severity: 30 Number: 1<br />
Message . . . . : The Field or indicator is not defined.<br />
5722WDS V5R3M0 030905<br />
* 7030 07 3010</i></p>
<p>The first lines are telling you what the error is. The last line might be telling you where the error is, but I can&#8217;t recognize the format. I&#8217;m not even sure what compiler you&#8217;re using.</p>
<p>In any case, some of your problem is probably related to this line in your subfile:</p>
<p><i>A FLD001 1 0I 9 4</i></p>
<p>I suspect that you want it to be OPT instead of FLD001. But then you have this line in your program:</p>
<p><i>C Z-ADD 0 OPT 20</i></p>
<p>You shouldn&#8217;t define OPT in your program if it&#8217;s a field from the display file. It&#8217;s already defined.</p>
<p>There are other things, like RRN. It looks like you only use it to decide if *IN30 should be set on. But you could just as easily simply set *IN30 on instead of incrementing RRN.</p>
<p>Anyway, without knowing whether this is OPM RPG or it&#8217;s ILE RPG that&#8217;s just formatted like old OPM RPG, I can&#8217;t quite decipher the error. Also, when pasting code, try to select what you pasted and click the {code} button &#8212; that helps preserve the format.</p>
<p>Tom</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kaly</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/subfile-program/#comment-86767</link>
		<dc:creator>kaly</dc:creator>
		<pubDate>Wed, 19 Jan 2011 13:14:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-86767</guid>
		<description><![CDATA[A)I have a physical file named E0003 its source code is

UNIQUE 
R E0 
EMID 5 0 
EMNAM 15 
EMDES 15 
EMSAL 5 0 
K EMID 

B) I have another display file name E3 its source code is 
A*%%TS SD 20110118 074242 SURESH400 REL-V5R3M0 5722-WDS 
A*%%EC 
A DSPSIZ(24 80 *DS3) 
A R SFL03 SFL 
A*%%TS SD 20110118 070616 SURESH400 REL-V5R3M0 5722-WDS 
A SFLNXTCHG 
A EMID R O 9 13REFFLD(E0/EMID SURESH4001/E0003
A EMNAM R O 9 24REFFLD(E0/EMNAM SURESH4001/E000
A EMDES R O 9 42REFFLD(E0/EMDES SURESH4001/E000
A EMSAL R O 9 64REFFLD(E0/EMSAL SURESH4001/E000
A FLD001 1 0I 9 4 
A R CTL03 SFLCTL(SFL03) 
A*%%TS SD 20110118 070616 SURESH400 REL-V5R3M0 5722-WDS 
A OVERLAY 
A 30 SFLDSP 
A SFLDSPCTL 
A SFLSIZ(0006) 
A SFLPAG(0005) 
A 3 4&#039;2=edit 5=view&#039; 
A 7 4&#039; OPT EMID EMNAM -
A EMDES EMSAL &#039; 
A 8 7&#039; &#039; 
A R DD 
A*%%TS SD 20110118 071850 SURESH400 REL-V5R3M0 5722-WDS 
A 4 3&#039;emid emnam -
A emdes emsal&#039; 
A EMID R O 5 2REFFLD(E0/EMID SURESH4001/E0003) 
A EMNAM R O 5 18REFFLD(E0/EMNAM SURESH4001/E0003) 
A EMDES R O 5 41REFFLD(E0/EMDES SURESH4001/E0003) 
A EMSAL R O 5 62REFFLD(E0/EMSAL SURESH4001/E0003) 
A R DD1 
A*%%TS SD 20110118 071850 SURESH400 REL-V5R3M0 5722-WDS 
A 4 4&#039;emid emnam emdes-
A emsal&#039; 
A EMNAM R I 5 15REFFLD(E0/EMNAM SURESH4001/E0003) 
A EMDES R I 5 32REFFLD(E0/EMDES SURESH4001/E0003) 
A EMSAL R I 5 55REFFLD(E0/EMSAL SURESH4001/E0003) 
A EMID R O 5 3REFFLD(E0/EMID SURESH4001/E0003) 
A R FOOTER 
A*%%TS SD 20110118 071850 SURESH400 REL-V5R3M0 5722-WDS 
A 20 5&#039;f7=confirm f3=exit&#039;
A R FOOTER1 
A*%%TS SD 20110118 074242 SURESH400 REL-V5R3M0 5722-WDS 
A 20 5&#039;f3=exit&#039; 
C)my subfile program is A60 its source code is

FE0003 UF E K DISK 
FE3 CF E WORKSTN 
F RRN KSFILE SFL03
C Z-ADD 0 RRN 40 
C Z-ADD 0 OPT 20 
C READ E0003 45 
C *IN45 DOWEQ *OFF 
C RRN ADD 1 RRN 
C WRITE SFL03 
C READ E0003 45 
C ENDDO 
C RRN IFGT 0 
C MOVE *ON *IN30 
C ENDIF 
C WRITE FOOTER1 
C EXFMT CTL03 
C READC SFL03 60 
C *IN60 DOWEQ *OFF 
C OPT IFEQ 5 
C EMID CHAIN E0 58
C EXFMT DD 
C ENDIF 
C OPT IFEQ 2 
C EMID CHAIN E0 48
C WRITE FOOTER 
C EXFMT DD1 
C *IN07 IFEQ *ON 
C UPDAT E0 
C ENDIF 
C ENDIF 
C ENDDO 
C SETON LR 
D) the records present in my physical file E0003 are

EMID EMNAM EMDES EMSAL
1 sarikha manager 25,000
2 muthu sweeper 1,200
3 vicky cleaner 1,500
4 ramu operations 4,000
5 edward officeboy 5,000
6 kalyan sales 9,500
7 ramesh fpc 11,500
8 sarikha developer 14,000
9 suresh teamleader 21,000
10 rajesh developer 16,000
11 ganesh programmer 20,000
12 shankar projectmanager 30,000
13 balu driver 6,500
14 rajan cook 9,000
15 thanika steno 4,000
16 sarikha typist 5,000
17 sreesha developer 17,000
18 malathi programmer 21,000
19 amal catering 11,000
20 vimal testengineer 30,000 

when i run my subfile program A60 it Gives severity level 30 error

QRG7030 Severity: 30 Number: 1 
Message . . . . : The Field or indicator is not defined.
5722WDS V5R3M0 030905 
* 7030 07 3010 

i can&#039;t find out the solution please guide me.

Actually my requirement is to load all the records from physical file E0003 to the display file in Subfile record format SFL03 and if we want to view one particular record alone means we should get it in a single record format display file DD,
if we want to change or update records means we should do it in another single record format display file DD1 and using it except EMID we should edit all the fields and the same should be displayed in Subfile record format SFL03 and same should be updated in physical file E0003 also kindly tell me the solution.

My display file E3 record formats are given below


10 SFL03 SFL 01/18/11
20 CTL03 SFLCTL SFL03 01/18/11
30 DD RECORD 01/18/11
40 DD1 RECORD 01/18/11
50 FOOTER RECORD 01/18/11
60 FOOTER1 RECORD 01/18/11]]></description>
		<content:encoded><![CDATA[<p>A)I have a physical file named E0003 its source code is</p>
<p>UNIQUE<br />
R E0<br />
EMID 5 0<br />
EMNAM 15<br />
EMDES 15<br />
EMSAL 5 0<br />
K EMID </p>
<p>B) I have another display file name E3 its source code is<br />
A*%%TS SD 20110118 074242 SURESH400 REL-V5R3M0 5722-WDS<br />
A*%%EC<br />
A DSPSIZ(24 80 *DS3)<br />
A R SFL03 SFL<br />
A*%%TS SD 20110118 070616 SURESH400 REL-V5R3M0 5722-WDS<br />
A SFLNXTCHG<br />
A EMID R O 9 13REFFLD(E0/EMID SURESH4001/E0003<br />
A EMNAM R O 9 24REFFLD(E0/EMNAM SURESH4001/E000<br />
A EMDES R O 9 42REFFLD(E0/EMDES SURESH4001/E000<br />
A EMSAL R O 9 64REFFLD(E0/EMSAL SURESH4001/E000<br />
A FLD001 1 0I 9 4<br />
A R CTL03 SFLCTL(SFL03)<br />
A*%%TS SD 20110118 070616 SURESH400 REL-V5R3M0 5722-WDS<br />
A OVERLAY<br />
A 30 SFLDSP<br />
A SFLDSPCTL<br />
A SFLSIZ(0006)<br />
A SFLPAG(0005)<br />
A 3 4&#8217;2=edit 5=view&#8217;<br />
A 7 4&#8242; OPT EMID EMNAM -<br />
A EMDES EMSAL &#8216;<br />
A 8 7&#8242; &#8216;<br />
A R DD<br />
A*%%TS SD 20110118 071850 SURESH400 REL-V5R3M0 5722-WDS<br />
A 4 3&#8242;emid emnam -<br />
A emdes emsal&#8217;<br />
A EMID R O 5 2REFFLD(E0/EMID SURESH4001/E0003)<br />
A EMNAM R O 5 18REFFLD(E0/EMNAM SURESH4001/E0003)<br />
A EMDES R O 5 41REFFLD(E0/EMDES SURESH4001/E0003)<br />
A EMSAL R O 5 62REFFLD(E0/EMSAL SURESH4001/E0003)<br />
A R DD1<br />
A*%%TS SD 20110118 071850 SURESH400 REL-V5R3M0 5722-WDS<br />
A 4 4&#8242;emid emnam emdes-<br />
A emsal&#8217;<br />
A EMNAM R I 5 15REFFLD(E0/EMNAM SURESH4001/E0003)<br />
A EMDES R I 5 32REFFLD(E0/EMDES SURESH4001/E0003)<br />
A EMSAL R I 5 55REFFLD(E0/EMSAL SURESH4001/E0003)<br />
A EMID R O 5 3REFFLD(E0/EMID SURESH4001/E0003)<br />
A R FOOTER<br />
A*%%TS SD 20110118 071850 SURESH400 REL-V5R3M0 5722-WDS<br />
A 20 5&#8242;f7=confirm f3=exit&#8217;<br />
A R FOOTER1<br />
A*%%TS SD 20110118 074242 SURESH400 REL-V5R3M0 5722-WDS<br />
A 20 5&#8242;f3=exit&#8217;<br />
C)my subfile program is A60 its source code is</p>
<p>FE0003 UF E K DISK<br />
FE3 CF E WORKSTN<br />
F RRN KSFILE SFL03<br />
C Z-ADD 0 RRN 40<br />
C Z-ADD 0 OPT 20<br />
C READ E0003 45<br />
C *IN45 DOWEQ *OFF<br />
C RRN ADD 1 RRN<br />
C WRITE SFL03<br />
C READ E0003 45<br />
C ENDDO<br />
C RRN IFGT 0<br />
C MOVE *ON *IN30<br />
C ENDIF<br />
C WRITE FOOTER1<br />
C EXFMT CTL03<br />
C READC SFL03 60<br />
C *IN60 DOWEQ *OFF<br />
C OPT IFEQ 5<br />
C EMID CHAIN E0 58<br />
C EXFMT DD<br />
C ENDIF<br />
C OPT IFEQ 2<br />
C EMID CHAIN E0 48<br />
C WRITE FOOTER<br />
C EXFMT DD1<br />
C *IN07 IFEQ *ON<br />
C UPDAT E0<br />
C ENDIF<br />
C ENDIF<br />
C ENDDO<br />
C SETON LR<br />
D) the records present in my physical file E0003 are</p>
<p>EMID EMNAM EMDES EMSAL<br />
1 sarikha manager 25,000<br />
2 muthu sweeper 1,200<br />
3 vicky cleaner 1,500<br />
4 ramu operations 4,000<br />
5 edward officeboy 5,000<br />
6 kalyan sales 9,500<br />
7 ramesh fpc 11,500<br />
8 sarikha developer 14,000<br />
9 suresh teamleader 21,000<br />
10 rajesh developer 16,000<br />
11 ganesh programmer 20,000<br />
12 shankar projectmanager 30,000<br />
13 balu driver 6,500<br />
14 rajan cook 9,000<br />
15 thanika steno 4,000<br />
16 sarikha typist 5,000<br />
17 sreesha developer 17,000<br />
18 malathi programmer 21,000<br />
19 amal catering 11,000<br />
20 vimal testengineer 30,000 </p>
<p>when i run my subfile program A60 it Gives severity level 30 error</p>
<p>QRG7030 Severity: 30 Number: 1<br />
Message . . . . : The Field or indicator is not defined.<br />
5722WDS V5R3M0 030905<br />
* 7030 07 3010 </p>
<p>i can&#8217;t find out the solution please guide me.</p>
<p>Actually my requirement is to load all the records from physical file E0003 to the display file in Subfile record format SFL03 and if we want to view one particular record alone means we should get it in a single record format display file DD,<br />
if we want to change or update records means we should do it in another single record format display file DD1 and using it except EMID we should edit all the fields and the same should be displayed in Subfile record format SFL03 and same should be updated in physical file E0003 also kindly tell me the solution.</p>
<p>My display file E3 record formats are given below</p>
<p>10 SFL03 SFL 01/18/11<br />
20 CTL03 SFLCTL SFL03 01/18/11<br />
30 DD RECORD 01/18/11<br />
40 DD1 RECORD 01/18/11<br />
50 FOOTER RECORD 01/18/11<br />
60 FOOTER1 RECORD 01/18/11</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 6/9 queries in 0.012 seconds using memcached
Object Caching 366/369 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-20 01:33:05 -->