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.