×

Good News Everybody!

The new search engine is LIVE!

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




Adam,

You can use an external DS and define an array on it, as long as the fields
are consecutive.

Like (not tested, written on V5R3, compiled back to V5R1):

D CVFILEDS E DS EXTNAME(CVfile)
D Rates1 35 106

D Rates 6S 4 DIM(12)
OVERLAY(Rates1)

With regards,
Carel Teijgeler

*********** REPLY SEPARATOR ***********

On 20-6-2008 at 7:37 Adam West wrote:

HI I have an exchange rate conversion file that is set up as follows:
 
 A            CVCO          
1A       
 A            CVDIV         
2A       
 A            CVYR          
2S 0     
 A            CVDESC       
30A       
 A            CV01          
6S 4     
 A            CV02          
6S 4     
 A            CV03          
6S 4     
 A            CV04          
6S 4     
 A            CV05          
6S 4     
 A            CV06          
6S 4     
 A            CV07          
6S 4     
 A            CV08          
6S 4     
 A            CV09          
6S 4     
 A            CV10          
6S 4     
A            CV11           6S
4       TEXT('CV MTH 11')      
A            CV12           6S
4       TEXT('CV MTH 12')      
A            CVXTR1         8S
0       TEXT('EXTRA 1')        
A            CVXTR2         8S
0       TEXT('EXTRA 2')        
A            CVXTR3        11S
2       TEXT('EXTRA 3')        
A            CVXTR4        11S
2       TEXT('EXTRA 4')        
A            CVXTR5        
3A         TEXT('EXTRA 5')        
A            CVXTR6        
6A         TEXT('EXTRA 6')        
A          K
CVCO                       
                      
A          K
CVDIV                       
                     
A          K
CVYR                       
                      
                        
              
Every month has a different exch rate iow. I have a program that recaps
prev. month sales for foreign tax calculations. The exchange rate I want
to accesss by using the month I am processsing as my index. Am I needing
to recreate the DDS as a data structure and using DIM for my months or is
there a simpler way to do this.
 



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


No virus found in this incoming message.
Checked by AVG.
Version: 8.0.100 / Virus Database: 270.4.1/1510 - Release Date: 19-6-2008
15:21




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