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



Rich,
Creating a file in the IFS is very easy, but if you are on a very tight
deadline, just create a normal PF as a "flat" file (CRTPF Rcdlen(nnn).
In your RPG program, rename the format name (it will be the same as the
file), then format your data field using the pipe (|) character to separate
the fields.
When you are done, use the CPYTOSTMF command to put it in a directory on
the IFS.

Jeff Young
Sr. Programmer Analyst


On Thu, Jul 17, 2014 at 11:58 AM, Richard Reeve <rjrjr64@xxxxxxxxx> wrote:

John,

I am on a tight deadline for this and really need the simplest
approach. I am not adverse to learning new things and as a matter of fact
would welcome that but am in crunch mode.........

Thanks for your willingness to help. I truly appreciate it.

Rich





On Thu, Jul 17, 2014 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.



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.