× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Qryout file problem
  • From: Rob Berendt <rob@xxxxxxxxx>
  • Date: Tue, 27 Apr 1999 8:16:43 -0500

No problem, write an RPG program to 'denormalize' your database.




John.Taylor@britax-pmg.com on 04/27/99 05:59:20 AM
Please respond to MIDRANGE-L@midrange.com@Internet
To:     MIDRANGE-L@midrange.com@Internet
cc:      

Subject:        Qryout file problem

If anyone can find a way to resolve this problem it would make my week.

I need to generate a file containing part numbers and locations with one
record per part number with multiple locations, from a file containing
multiple records per part number.

eg from this    Part Number     Location
                1234            A001A
                1234            A003C
                1234            C010D
                4567            A009B
                4321            B001A
                4321            B012D

to this         1234            A001A   A003C   C010D
                4567            A009B
                4321            B001A   B012D

I believe I can do this using multiple queries utilising result fields and
summaries but as of now I have not fathomed it out.


Thanks

John 


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>Qryout file problem</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">If anyone can find a way to resolve this problem 
it would make my week.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I need to generate a file containing part numbers 
and locations with one record per part number with multiple locations, from a 
file containing multiple records per part number.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">eg from this&nbsp;&nbsp;&nbsp; Part 
Number&nbsp;&nbsp;&nbsp;&nbsp; Location</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 
FACE="Arial">1234&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&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bsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
A001A&nbsp;&nbsp; A003C&nbsp;&nbsp; C010D</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 
FACE="Arial">4567&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
A009B</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 
FACE="Arial">4321&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
B001A&nbsp;&nbsp; B012D</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I believe I can do this using multiple queries 
utilising result fields and summaries but as of now I have not fathomed it 
out.</FONT></P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Thanks</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">John </FONT>
</P>

</BODY>
</HTML>

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.