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



See RNG Input Provider project at www.rpgnextgen.com. There are also examples on that page, http://www.rpgnextgen.com/downloads/rngin01.rpgle . The API documenation can be read at http://iledocs.sourceforge.net/docs/index.php?action=mainmenu&category=5

Mihael

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Chamara Withanachchi
Sent: Thursday, June 09, 2011 1:05 PM
To: RPG programming on the IBM i / System i
Subject: Read a Stream File

Dear All,

I want to read a Text based stream file from RPG, file length is 180 and it
does NOT have any CR or LF

for example file is like

5555IN 111517108002000005

4444IN
111517108001000000001481000000003000000000000000000000000000510118295005

00007108001250000963003A.W.A. Kandy
23000000000000000805000LKR7010001001000075555Test Bene XXXXXXXX
STS01 : 0024641110602003878
00007108001250000458001M. Altaf Hussain
24000000000000000156000LKR7010001001000075556Test Bene XXXXXXXX
STS01 : 0024641110602002976
00007108001010116874001Mohamed Rilha
52000000000000000520000LKR7010001001000075558Test Bene XXXXXXXX
STS01 : 0024641110602005228 4444IN
111517108002000000000170000000002000000000000000000000000000599654117150

00007108002589631593145Mayura Edirisinghe
24000000000000000125000LKR7010001001000075557Test Bene XXXXXXXX
STS01 : 0024641110602002854
00007108002010022524005Mohamed Iqdal
Sathar21000000000000000045000LKR7010001001000075559Test Bene
XXXXXXXX STS01 : 0024641110602003375


How can I do this in RPG, all Ideas highly appreciated.



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