Hello..I'm having a PDS of 300 eazytries, and I have to search these eazytrieves in a PDS of 500 JCLs. Is there any way to automate it?..
I saved the Eazytrieve member list as PS file and thinking of ISRSUPC utility, but I'm not finding correct way to automate it. Any suggestion would be really helpful.
so, is it possible to read each record from PS file and search in the PDS library?
There are about 100500 ways to do this, if you have ever learned ANY zOS programming tools.
1) use DFSORT/SYNCSORT utilities
2) use FileAid utility
3) use any other text-manipulating utility
4) use any script in REXX/CLIST
5) use any program in COBOL, C/C++, PL/I, Assembler, 100,000 other tools
... etc. etc. etc...
Cant post the complete JCL with full Job cards for security purposes, so I have posted only from EXEC. And we know that there are utilities to search the elements, but the requirement is to develop a JCL to search more number of elements like- to search 300 elements in a PDS of 500 JCLs. if anyone has any suggestions it would be really helpful, than pointing other things.
So instead of passing any single string to SRCHFOR, I have a PS File with list of 300 strings that has to be searched in PDS of NEWDD. I need help in knowing if there is any way to pass value from Cobol to JCL and search each string after every read of PS.
You cannot pass info to JCL as such, you can generate records in a program in one JCL step which will be read by a program in a following JCL step. Or you can generate the entire job and write it to internal reader for submission.
In your case I think I would change the whole thing into a REXX program, which can call SUPERC and post-processing as many times as needed.