On Fri, 24 Jun 2016 07:09:19 +0000, Sankaranarayanan, Vignesh 
<[email protected]> wrote:

>Hi Folks,
>
>I'm looking to retrieve a list of datasets falling under a wildcard and then 
>creating an OLD enqueue on those datasets.
>While digging through past ibm-main threads, I found that I can use 
>SYS1.SAMPLIB(IGGCSIRX) to retrieve the dataset list.
>I will now use "alloc fi(Fn) da('name-from-list') old" to allocate (OWN) the 
>dataset until the job completion (I'm running this rexx in a job).
>
>Is there a better way to get a wildcarded list of datasets and enqueuer them?

That sounds like a good way to get a list of the data sets, but I'm a bit 
concerned about your plans to allocate them.

First, your TSO allocate commands will fail if anyone else has the data set 
allocated already. That may cause unexpected issues for you later.

Second, it's not clear what the rest of the job will be doing with those data 
sets. Depending on what it's doing, and whether the processing is in the same 
jobstep as your allocations, various error scenarios may occur. So I think you 
should describe your job layout and the processing it's going to do in greater 
detail.

-- 
Walt

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

Reply via email to