Also known as
"Why you shouldn't be afraid of using VARCHAR in RPGLE"... :)

Charles

On Thu, Dec 4, 2025 at 7:40 AM Vern Hamberg via MIDRANGE-L <
midrange-l@xxxxxxxxxxxxxxxxxx> wrote:

Hi Karl

Just thinking of odd things - does the file name in IFS has trailing
blanks, or is the value of the variable you use to find it have trailing
blanks? Perhaps try a %trim in RPG.

Good luck!

*Regards*

*Vern Hamberg*

IBM Champion 2025 <cid:part1.uOV0dX0y.OG7JUEy4@centurylink.net> CAAC
(COMMON Americas Advisory Council) IBM Influencer 2023


On 12/4/2025 8:21 AM, konsult@xxxxxxxxxxxxxxx wrote:
The problem is:



An RPGLE program creates data in the IFS using the open(), write() and
close() API:s.

This works. The files are created and are visible both when using the ACS
option for working with the IFS and with the WRKLNK command.



A number of commands that work with IFS objects report that the files
cannot
be found. These commands include: CPY, MOV, DSPF and CHGOWN.



The message in all these cases is CPFA0A9.



One thing that should be mentioned is that the system is running V7R1.



Also, files uploaded to the IFS with CPYTOIMPF do not have this problem.
Unfortunately, the IFS files need to have the possibility to have more
than
32K characters per record, so a program has to be able to write directly
to
the IFS.



Ideas? When looking at authorities and attributes (using ACS function)
all
files look similar.









--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2025 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.