× 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.



 
If you only wish to add the warehouse code at the end of the present record
then change the FNC to FDC and it should work just fine. 
FNC 41 41 WAREHOUSE CODE   to
FDC 41 41 WAREHOUSE CODE 
 
----------------------------------------------------------
 
If you wish to sort with warehouse code too, you will want to:
Copy your new line up following the FNU line.  (The FD lines are the Data
you are writing to the output file)
You also have to change the 6A to 7A in the H line
 
FNU = FieldNormalsortUnpacked
FNC = FieldNormalsortCharacter
FDU = FieldDataoutputUnpacked
FDP = FieldDataoutputPacked
 
--------------------------------------------------------
Booth Martin   http://www.MartinVT.com
Booth@xxxxxxxxxxxx
---------------------------------------------------------
 
-------Original Message-------
 
From: RPG programming on the AS400 / iSeries
Date: Wednesday, February 26, 2003 16:10:29
To: RPG400-L@xxxxxxxxxxxx
Subject: Help with QFMTSRC
 
I am using the old QFMTSRC and am having a problem adding another field to
the existing source. 
 
*************** Beginning of data ************************************
HFILE 6A 
O C 1 1EQCX 
I 
FNU 8 13 INVOICE NO 
FDU 25 26 SALESPERSON NO 
FDU 30 31 INVOICE MONTH 
FDP 36 39 CREDIT AMOUNT 
FNC 41 41 WAREHOUSE CODE 
 
The existing data ends with CREDIT AMOUNT, and I am adding WAREHOUSE CODE.
Can anyone tell me what the letters to the left mean? FNU / FDU / etc. The
warehouse code is a character field. I don't necessarily want this to be
part of the sort, but just included into the file which is used as a primary
file in the RPG. Any help would be gratefully appreciated.
 
Sue Niccum 


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.