• Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

BSFN Find File with wildcards on AIX

xxpeta

Active Member
Hi All,

we need to find files using wildcards on AIX. How do you solve it? Standard BSFN doesn´t work.

Thanks for reply.

Petr
 

johndanter

Legendary Poster
Do you files have a structure to the naming format?

I'm not sure if this will work, but you could try a AIX command using Call External command B34A1030 and see if SV Error Status comes back with an exception?
 

xxpeta

Active Member
It´s not good solution, because I only know a part of file name and need to get correct file name for next processing.
 

johndanter

Legendary Poster
B9600471 FindFirstFileMatchingWildcard uses tfindfirst but it looks like it's aimed at ESUs only.

But still have a play as it is also has a module called FindNextFileMatchingWildcard
 

craig_welton

Legendary Poster
That is a client only function, I'm afraid. We had to write our own that used the native API on the iSeries. I'm sure the same could be done on the Unix host.

Craig
 

xxpeta

Active Member
Craig´s right, on server it doesn´t work. Unfortunately Aix has some specifics and standard Unix function doesn´t work.
 
Top