Find File Name

Massimo P

Member
I need to retrieve the name of all files contained in a specific folder on AS/400. Functions FindFirstFile and FindNextFile are market to work only locally.
Does anyone know an alternative solution?
Thanks

Massimo
8.10-8.94 - AS/400
 
MaxP,
I have some BSFN to list the files in Unix, i'm not sure if will work on AS400, but you can try.
I'm using scandir in unix to retrieve the files.

Hope this help.
 

Attachments

  • 93565-FindFileWillcard.zip
    3.3 KB · Views: 200
Find File in Unix server

Hi Camponuevo,

Thanks for sharing the code for Find file using Wildcard in Linux server. Sorry to ask you after 10 years, now only I got the requirement as such.

I am actually in need of such a BSFN.
I created the same BSFN using your code, I made all the JDE Unicode format changes for relevant codes in the BSFN. I could run this BSFN in Local ie Windows machine. But the UNIX part of code doesnt work as expected , I ran the BSFN using an application in server & tried to access a folder in Linux server.But it throws web client exception! Should I make any changes still?

Any idea or suggestions would be very helpful for me!

Mayuri.S
E1 E9.1.5
Linux Enterprise server
 
use the external program business function to call some rpg program on your as400?
 
Back
Top