Watch out for side-effects - such as downstream sections in the job
expecting the CIERROR to be zero. It won't be after a failed LISTF. I
would do this.
%SETJCW OLDCI,CIERROR
%LISTF FILESET;$NULL
%IF MPEXNUMSUCCEEDED = 0 THEN
% SETJCW CIERROR,OLDCI
%ELSE
% REPEAT
.
.
% FORFILES FILESET
%ENDIF
"Bailie, Jack" wrote:
>
> Thanks, that works.
>
> Jack Bailie
>
> Dave wrote:
>
> However, whether it's the right way or not, I would do a
> LISTF fileset;$NULL
> and then interrogate system variable MPEXNUMSUCCEEDED
>
> > Is there an easy way to tell if a fileset
> > is
> > empty?
> >
> >