Hi All,
I need to write a JCL which is able to retrieve file names from the catalog using the LISTCAT command.
The file names I need to retrieve from the catalog are something like,
STATIC1.STATIC2.DYNAMIC1.DYNAMIC2.DYNAMIC3
Here as the name indicates, the first 2 qualifiers are STATIC. But the last 3 will vary unpredictable.
I tried the LISTCAT command using IKJEFT01 which is given below.
//PS0010 EXEC PGM=IKJEFT01,REGION=0M
//SYSOUT DD SYSOUT=*
//SYSTSIN DD *
LISTCAT ENTRIES('STATIC1.STATIC2.*')
/*
But when we use astericks as given above, the LISTCAT will look only for 3 qualifiers. It will retrieve only file names like
STATIC1.STATIC2.DYNAMIC1
I tried some other options also like,
LISTCAT ENTRIES('STATIC1.STATIC2.*.*.*')
LISTCAT ENTRIES('STATIC1.STATIC2.**')
But these are also not working. Can somebody please help me telling a method to resolve this?
Thanks
RNTH
I need to write a JCL which is able to retrieve file names from the catalog using the LISTCAT command.
The file names I need to retrieve from the catalog are something like,
STATIC1.STATIC2.DYNAMIC1.DYNAMIC2.DYNAMIC3
Here as the name indicates, the first 2 qualifiers are STATIC. But the last 3 will vary unpredictable.
I tried the LISTCAT command using IKJEFT01 which is given below.
//PS0010 EXEC PGM=IKJEFT01,REGION=0M
//SYSOUT DD SYSOUT=*
//SYSTSIN DD *
LISTCAT ENTRIES('STATIC1.STATIC2.*')
/*
But when we use astericks as given above, the LISTCAT will look only for 3 qualifiers. It will retrieve only file names like
STATIC1.STATIC2.DYNAMIC1
I tried some other options also like,
LISTCAT ENTRIES('STATIC1.STATIC2.*.*.*')
LISTCAT ENTRIES('STATIC1.STATIC2.**')
But these are also not working. Can somebody please help me telling a method to resolve this?
Thanks
RNTH