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



You might find my Open Access IFS handler useful as a starting point. The relevant part of the article starts here: http://www.ibmsystemsmag.com/ibmi/developer/rpg/Getting-a-Handle-on-RPG’s-Open-Access/?page=3

Change it from using DISK to using a printer or display file (to get the multiple record formats) and it should simplify things quite a bit - assuming you are going to have to do more of these in the future. If this is literally a one-off then use any of the on-line articles about writing IFS files (including Scott's of course) as a foundation and write the data out directly.


On 2014-07-17, at 11:56 AM, Richard Reeve <rjrjr64@xxxxxxxxx> wrote:

Alan,

Record type is always the first field, but employee number doesn't
always exist for each record type. I was considering adding employee
number to all record types (possibly hidden).

Being as this whole pipe delimited flat file approach is new to me I
will need some step by
step guidance.

Thanks for your willingness to help.


On Thu, Jul 17, 2014 at 11:36 AM, John Yeung <gallium.arsenide@xxxxxxxxx>
wrote:

Probably the go-to answer for most folks on this list is to write
directly to the IFS using RPG. Scott Klement, as usual, has some
great tutorials and examples on this topic:

http://www.scottklement.com/rpg/ifs.html

If you are even a little open to trying something (slightly) new and
out of the box, I highly recommend using Python instead:

http://www.iseriespython.com

There currently isn't much in the way of documentation or tutorials
for iSeriesPython, though. (There is plenty for Python itself, just
not specifically Python on the i, which is a slightly different
animal.)

John Y.
--
This is the RPG programming on the IBM i (AS/400 and 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.


--
This is the RPG programming on the IBM i (AS/400 and 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.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com





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.