× 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 there,

Have you read Scott's e-book "Working with the IFS in RPG IV"? that manual is very handy and you'll learn some tricks. That book is really good.

http://www.scottklement.com/rpg/ifs_ebook/
http://www.scottklement.com/rpg/ifs_ebook/ifs_ebook.pdf

Jorge Merino
~jmerinoh~


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of jmoreno@xxxxxxxxxxxxxxxx
Sent: Monday, November 07, 2011 3:10 PM
To: Midrange-l@xxxxxxxxxxxx
Subject: Read/Write records from/to IFS of variable length nature in a reliable manner

Hello everyone

I have this question and I have been struggling with this most of the day.


Is there a way to Read IFS files containing variable record length records?

The CPYFRMSTMF is not behaving well against a flat file that has a variable length min (2000) and max (6736) Using the CPYFRMSTMF interface and everyone of the EndOfLine formats has not allowed me to map the file correctly

I have used a simple RPGLE program to read the IFS file, but the data BUFFER length that I used to get to the data was 10,000 and I could not get a reliable control character for the break ( *CR, *LF, *CRLF, *LFCR, *ALL ...)

It should not have to be hard at all. You get an IFS file with or without variable length records and we should be able to map that to a flat database file.
If the file does not exist, ... why not create it! ... (whishing for
much!)

Any recommendations?.

Regards


Jorge Moreno
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-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.