I have a batch job and a couple of scripts that I've used in the past.  

//BPX1     EXEC PGM=BPXBATCH,TIME=NOLIMIT,     
//        PARM='sh /u/myuserid/findpathfiles.sh /'
//STDOUT  DD  SYSOUT=*                         
//STDERR  DD  SYSOUT=*                         
//STDIN  DD PATH='/u/myuserid/findpathfiles.sh'   
//       DD PATH='/u/myuserid/filesystemname'     



The filesystemname:
set -x;                                   
       df -vk $1  | tail -1 | cut -c 16-41
   exit 1                                 
fi                                        

the findpathfiles.sh:

set -x;                                                     
echo searching...                                           
find $1 -type d -print -exec  /u/myuserid/filesystemname {}  \;
 > /u/myuserid/listdirectories                                 


The listdirectories  would be populated if you executed the SH in OMVS.

This starts at /.  All of the output goes into the STDOUT DD



-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Lizette Koehler
Sent: Wednesday, November 01, 2017 1:35 PM
To: [email protected]
Subject: Help with a Unix process

So I am not very good with Unix, and now I need to find any file in a large 
number of directories one directory has 130 directories with the tail .new (yep 
clean up time)

So in OMVS I know the find / -name \*.new could work.  But with the number of 
directories I have to search it is not performing

I am thinking there could be a REXX in Unix written to do this.  ls -al and 
then search through the output

Maybe even using a grep.

But with so many of you other there with really awesome UNIX skills, what 
should I, a novice, look at to be good performing, could be run in batch (Yep 
like that
option) or produce a report in a file I can find that will show me all the 
files in all the directories that have the tail I am looking for.

Thanks




Lizette Koehler

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
[email protected] with the message: INFO IBM-MAIN



-----------------------------------------
CONFIDENTIALITY NOTICE: The Ohio Public Employees Retirement System intends 
this e-mail message, and any attachments, to be used only by the person(s) or 
entity to which it is addressed. This message may contain confidential and/or 
legally privileged information. If the reader is not the intended recipient of 
this message or an employee or agent responsible for delivering the message to 
the intended recipient, you are hereby notified that you are prohibited from 
printing, copying, storing, disseminating or distributing this communication. 
If you received this communication in error, please delete it from your 
computer and notify the sender by reply e-mail.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to