Page 1 of 1

IGGCSIRX filter key

PostPosted: Mon Dec 19, 2016 11:13 pm
by Wilscat
I am using IGGCSIRX to find datasets with a wildcard. Is there a way to find more than one at a time?

My JCL looks like:

//STEP10 EXEC PGM=IKJEFT01
//SYSPROC DD DSN=SYS1.SAMPLIB,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
%IGGCSIRX
*.ABC.F34634.FSE
/*
//

But, I have many datasets that I need to look for with wildcards and would prefer not to run the job multiple times. Does the filter key have a continuation syntax?

Thank you!

Re: IGGCSIRX filter key

PostPosted: Mon Dec 19, 2016 11:41 pm
by Pedro
I was able to repeat the input lines in the same step:
//STEP10 EXEC PGM=IKJEFT01
//SYSPROC DD DSN=SYS1.SAMPLIB,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
%IGGCSIRX        
PEDRO.CLIST.CLIST
%IGGCSIRX        
PEDRO.JCL.CNTL  
/*
 


And IGGCSIRX is a sample program. You can make a copy of it to modify. It currently issues only one PULL statement (one line from the input file). To meet your criteria, you could add a loop so that it keeps PULL-ing until it gets a null.

Re: IGGCSIRX filter key

PostPosted: Mon Dec 19, 2016 11:51 pm
by Wilscat
Ok, that works. Thank you for the suggestion. I'm a rookie so will continue to use the sample program :-)