I found the cause of the problem. The user defined the dsn in a specific USER CAT. In his JCL he specified the USER CAT name. He broke the house rules of letting the system decide which USER CAT to has to be allocated. Hence when the LISTCATs failed because the system was looking at the default USER CAT. The REPRO MERGECAT of the ALIAS fixed the problem.
I thought that moving the the DSN with a DELETE & RANAMEUNC would work however I couldn't run the job because of STEPCAT not being supported. Does anyone know of a way of doing what I tried to do i.e. force the system to look at a specific USER CAT (using DFDSS) so that in the future a drastic measure of MERGECAT wouldn't be necessary? I know that I was able to do this in the past when using the DFDSS COPY command. Thanks again to all who responded to my post. -------------------------------------------- On Fri, 6/13/14, Elardus Engelbrecht <[email protected]> wrote: Subject: Re: DFDSS QUESTION - SEMI URGENT To: [email protected] Received: Friday, June 13, 2014, 8:13 AM Lizette Koehler wrote: >Please Provide a LISTC ENT(/) ALL of the vsam dataset Good request! With that command, the standard search order is used, but according to Willie it is not there. Willie, please try out the command and post the results. >It is really hard (in my opinion) to catalog VSAM in the wrong Catalog unless you were not working from the target system. Indeed. This is where RACF comes in to prevent such errors. Willie Bunter wrote: >> I have a SMS manged VSAM (linear) dsn cataloged in the wrong USER CAT. How do you know in the first place it is cataloged in the wrong User Catalog? Is it a naming issue or result of an incorrect IDCAMS command? Or is your VSAM dataset perhaps a duplicate? VVDS/VTOC issue? >> Is there a way to change it to use the correct catalog? Only if you specify the right catalog while using it. >> I looked at using DFDSS COPY command however since the dsn is not cataloged in the STANDARD ORDER OF SEARCH it did not work. >> Can I use IDCAMS to rectify the error? Yes. REPRO to a temporary VSAM dataset. Get rid of the catalog entry and the actual allocated spaces. Then do a proper DEFINE using Standard Search Order and then REPRO back. HTH! Groette / Greetings Elardus Engelbrecht ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
