×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Bryan,

Didn't know you could do that. You're right, it is much more readable.
Thanks for the tip.


Thanks,

Mark


Mark Walter
Sr. Programmer/Analyst
Hanover Wire Cloth a div of CCX, Inc.
mwalter@hanoverwire.com
http://www.hanoverwire.com
717.637.3795 Ext.3040
/"\
\ /
 X
/ \



                                                                                
                                                                    
                    "Merrell, Bryan K.                                          
                                                                    
                    (Artco )"                  To:     "'RPG programming on the 
AS400 / iSeries'" <rpg400-l@midrange.com>                           
                    <BKMerrell@artco.zg        cc:                              
                                                                    
                    ate.com>                   Subject:     RE: %kds            
                                                                    
                    Sent by:                                                    
                                                                    
                    rpg400-l-bounces@mi                                         
                                                                    
                    drange.com                                                  
                                                                    
                                                                                
                                                                    
                                                                                
                                                                    
                    02/11/2003 12:18 PM                                         
                                                                    
                    Please respond to                                           
                                                                    
                    RPG programming on                                          
                                                                    
                    the AS400 / iSeries                                         
                                                                    
                                                                                
                                                                    
                                                                                
                                                                    




Mark...
           Forget the key lists and go

Chain (key_house:key_itnbr:key_location) Slqnty17;

I like it better for readability if you are only making a few chains.
Otherwise to save on writing every key I do a key list.
HTH

Bryan
bkmerrell@artco.zgate.com

-----Original Message-----
From: MWalter@hanoverwire.com [mailto:MWalter@hanoverwire.com]
Sent: Tuesday, February 11, 2003 9:37 AM
To: rpg400-l@midrange.com
Subject: %kds

Hello all,

Since upgrading to V5R2, I've jumped feet first into the world of /FREE.
(sorry, joe). I'm having a problem with a keylist: here are the
particulars:

Logical File Layout:
** Beginning of data **************************
   R SLQNTYSQ                  PFILE(SLQNTY)
   K HOUSE
   K ITNBR
   K LLOCN
***** End of data *****************************

Data structure:

     DkeyFlds          DS
     D key_house                      3    overlay(keyFlds:*next)
     D key_itnbr                     15    overlay(keyFlds:*next)
     d key_location                   7    overlay(keyFlds:*next)

RPG Code and Error:

           chain %kds(keyFlds:2) Slqntyl7;
RNF7071S Number of KFLDs in KLIST is greater than number of key fields in
file.

What am I doing wrong?


Thanks,

Mark


Mark Walter
Sr. Programmer/Analyst
Hanover Wire Cloth a div of CCX, Inc.
mwalter@hanoverwire.com
http://www.hanoverwire.com
717.637.3795 Ext.3040
/"\
\ /
 X
/ \


_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.






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