Hi
I have a a stream file(comma separated between three fields) in IFS directory(IFS path is /etc/apps/XnP/JPMCS_AccountInfo.txt) as below:
I have to compare the field account# of MMFILE(A PF declared as input) in my RPGLE with first field of above comma separated file(CSFILE),
If I find exact match
I have to evaluate XPRXP as below. If I dont find match I will ve to read next record of CSFILE till end of file....
F MMFILE IF E DISK
C Eval XPRXP = %trim(2nd field of CSFILE) +
%trim(3rd field of CSFILE)
XPRXP is rcdfmt of flat file for which im building record...
Please suggest me how to delcare the IFS file in my RPGLE& how do I process comma separated file and what logic I should use in dealing with above file to meet my requirements.
Thanks for the pointers. Pls help me asap.
Donna.
I have a a stream file(comma separated between three fields) in IFS directory(IFS path is /etc/apps/XnP/JPMCS_AccountInfo.txt) as below:
PHP Code:
,03354,73692845
,03354,73692845
,04324,613350842
,04324,613350842
,05446,57843260
,05446,57843260
,07727,13390062
,07727,13390062
,08726,
,08726,835768193
9370,09370,108404021
10006,10006,4558586
10006,10006,4558586
10028,10028,20003943
If I find exact match
I have to evaluate XPRXP as below. If I dont find match I will ve to read next record of CSFILE till end of file....
F MMFILE IF E DISK
C Eval XPRXP = %trim(2nd field of CSFILE) +
%trim(3rd field of CSFILE)
XPRXP is rcdfmt of flat file for which im building record...
Please suggest me how to delcare the IFS file in my RPGLE& how do I process comma separated file and what logic I should use in dealing with above file to meet my requirements.
Thanks for the pointers. Pls help me asap.
Donna.
Comment