Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

READE to read duplicate key in RPGLE

Status
Not open for further replies.

Nurhidayah

Programmer
Jun 9, 2021
1
0
0
MY
Hi guyss. I need your help.

I'm stuck to get the full output.

Supposedly the output need to look like this
OUTPUT_u50tcd.png


And this is my physical file
Capture_cnh3pn.png


I have three field in physical file which are :

EXGDAT = date
EXGCOD = exchange code
EXGRAT = exchange rate

I try to use this code

read curexg
dow not %eof
date reade curexg
eval date = exgdat
select
exgcod wheneq 'usd'
move exgrat usd
exgcod wheneq 'gbp'
move exgrat gbp
exgcod wheneq 'eur'
move exgrat eur
exgcod wheneq 'usd'
move exgrat aud
exgcod wheneq 'sgd'
move exgrat sgd
endsl


eval rrn = rrn + 1
write sfl01
read curexg
enddo

And this is what i get right now

coddd_prs5gr.png


What should i do? please help me

Thanks in advance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top