And I need sort it and just include the DSNs which follow that mask : TOTO.TITI*TATABut it seems DFSORT don't handle the regular expressions or maybe I didn't understand how it works.It was easy create an include statement like that include cond=(1,44,SS,EQ,C'TOTO.TITI*TATA') but it didn't work...

And as the DSNs have different lengh I don't know how create my mask with the correct include syntax.

Does this mean 'TOTO.TITI' followed by any number of characters followed by 'TATA.TUTU' followed by any number of characters followed by 'TETE''? If so you could use a simialar DFSORT job to do it like this.