My Search string wil use some keywords to identify if the member is JCL/PROC etc. Example, if 1st line contains " JOB " then its a JCL and should be copied to OUTPDS.JCL, if 1st line contains " PROC " then its a PROC and needs to be copied to OUTPDS.PROC and so on.
I am searching between REXX/SORT and other utilities to code this. Can someone please advise the shortest/easiest way to do this and possibly what code needs to be put in for this? I searched some topics on the forum but unable to get to something similar to this. Thanks in advance!