It’s been a while since I dealt with this but messing around with entries on the directories on the IFS made me write so interesting little CL’s. There are probably easier ways to do this but here’s what worked for me. First you’ll have to output the entries of all the directories you are concerned with to a file. I have looked through my notes and I can’t remember exactly how I did it. Maybe someone else can help. Then I used a program to read the records in the file of entries. Each time I found an entry that matched my criteria I called a CL that expected the Directory name to be passed as a parm. So you go through the list of entries and if the extenson is TIF you call the CL and pass the directory name. Then you save the name of the directory you just passed in your program. Since the records in the file will be in the order of the directories you skip the following recrds in the directory entry file if it is the same as what you have already passed to the cl to save the directory. This is to avoid saving the directory multiple times when a directoriey has multiple tifs. In the CL you concatenate the directory name passed with ‘/*.tif’.
So if the directory passed to the CL is ‘/abc/xyz/123-456-7777/’ you combine that with ‘/*.tif’ so that your save command looks like
in the CL you’ll have 3 variables.
&indire for inbound directory to be saved. Make it large enough to hold the largest directory name you’ll be dealling with. type *char
&contif for the constant ‘/*.tif’ to be added onto the inbound directory name. length 6 *char
&savdir for the concaenated directory name 6 longer than &indire type *char
Concatenate &indire with &contif into &savdir
then excute command SAV OBJ(&savdir) to the save file you want.
I can’t remember if you can keep adding to a save file without monitoring for an error condition.
Anyway this might be a little long and someone else may have a better answer but I hope this helps.
On the other hand if you simply executed the sav OBJ with the *all it should get all the tifs without the need for programs as talked about above.
Device . . . . . . . . . . . . . > ‘save-file-path-name’
+ for more values
Name . . . . . . . . . . . . . > ‘/abc/*.tif’
Include or omit . . . . . . . *INCLUDE *INCLUDE, *OMIT
+ for more values
Directory subtree . . . . . . . *ALL *ALL, *DIR, *NONE, *OBJ, *STG
Save active . . . . . . . . . . *NO *NO, *YES, *SYNC
Output . . . . . . . . . . . . . *NONE
The directory subtree *all is suposed to mean
Directory subtree (SUBTREE) – Help
The entire subtree of each directory that matches the
object name pattern is included. The subtree includes
all subdirectories and the objects within those subdirectories.
Hope this helps.