<html>
<body>
Vamsi<br><br>
Here is some code that should work, has not been tested. Depends on you
having a file defined in your dictionary.<br><br>
*********************<br>
<font face="Courier New, Courier">acc
tempfile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ; tempfile
consists of 1 field temprec
CHAR,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
; size as required (see file_len)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
sel tempfile if temprec[1:1] &lt;&gt;
delim&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
;ignore trailer records<br><br>
; Program Variables<br>
def&nbsp;
file_len&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
=&nbsp;
400&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
; max record length of <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
; tempfile<br>
def&nbsp; delim&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
char*1&nbsp;&nbsp;&nbsp; =&nbsp; &quot;
&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
; or whatever<br>
temp strt<br>
temp endd<br><br>
; User Variables<br>
temp cust-no<br>
temp order-no<br>
temp part-no<br><br>
; Col A&nbsp;&nbsp; Customer number<br>
item strt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
1<br>
item endd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
index(temprec[strt:file_len -strt],delim)<br>
item cust-no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
ncon(temprec[strt:endd -1])<br><br>
; Col B&nbsp;&nbsp; Order Number <br>
item strt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
strt + endd<br>
item endd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
index(temprec[strt:file_len -strt],delim)<br>
item order-no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
ncon(temprec[strt:endd -1])<br><br>
; Col C&nbsp;&nbsp; Part Number<br>
item strt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
strt + endd<br>
item endd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
index(temprec[strt:file_len -strt],delim)<br>
item endd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
file_len - strt &amp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
if endd &lt; 1 else &amp;&nbsp;&nbsp; ; last field could fill the
record<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
; so there may not be a trailing delimiter<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
endd<br>
item part-no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
ncon(temprec[strt:endd -1])<br><br>
subfile wks1&nbsp; keep include &amp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
rego-no, order-no, part-no<br>
; subfile can be an indexed subfile but this could be slow <br>
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if handling a large
number of records<br>
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; depends upon operating
system<br><br>
go<br>
</font>
*****************************************************************<br><br>
Jeff<br><br>
PS&nbsp;&nbsp;&nbsp;   it would help if you could include you environment
details, next time<br><br>
At 03:09 AM 9/03/2007, you wrote:<br>
<blockquote type=cite class=cite cite="">Guys,<br><br>
I tried my best to do this.. but failed..<br><br>
Please find the attached text file.<br><br>
Here's what i need to do..<br><br>
There are three items in the text file:<br><br>
1st:Customer number<br>
2nd: Order Number <br>
3rd: Part Number<br><br>
In the powerhouse dictionary, <br>
Customer number's size is 9<br>
order number's size is 20<br>
Part Number's size is 12 (right Justified with spaces)<br><br>
In the attached file:<br>
Customer number's size is 9<br>
order number's size is 5<br>
Part Number's size is 7 or 6 ( no proper justification)<br><br>
Now i need a subfile which will contain all the three items, and I should
be able to link them with dictionary file (that means subfile should
contain index consisting of all three items) <br><br>
Please if anyone can send me the detailed process to deal with this, that
would be really grateful.<br><br>
Let me know if you have any queries.<br><br>
Thanks and Regards,<br>
Vamsi<br><br>
-- <br>
&quot;Nothing is impossible as impossible itself says i m possible&quot;
<br>
Content-Type: text/plain; name=final.txt; charset=ANSI_X3.4-1968<br>
X-Attachment-Id: f_ez1eakt9<br>
Content-Disposition: attachment; filename=&quot;final.txt&quot;<br><br>
-- <br>
= = = = = = = = = = = = = = = = = = = = = = = = = = = =<br>
Mailing list: powerh-l@lists.sowder.com<br>
Subscribe: &amp;quot;subscribe&amp;quot; in message body to
powerh-l-request@lists.sowder.com<br>
Unsubscribe: &amp;quot;unsubscribe &amp;lt;password&amp;gt;&amp;quot; in
message body to powerh-l-request@lists.sowder.com<br>
<a href="http://lists.sowder.com/mailman/listinfo/powerh-l" eudora="autourl">
http://lists.sowder.com/mailman/listinfo/powerh-l</a><br>
This list is closed, thus to post to the list you must be a
subscriber.<br>
Add 'site:lists.sowder.com powerh-l' to your search terms to search the
list archive at Google.</blockquote></body>
</html>