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




 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:
,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   
  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....
  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 & how do I process comma 
separated file and what logic I should use in dealing with above file.
   
  Thanks for the pointers.
   
  Donna.
  
  
 

                
---------------------------------
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.