IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Access to non cataloged VSAM file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
danik56

New User


Joined: 08 Mar 2017
Posts: 56
Location: Israel

PostPosted: Fri Feb 02, 2024 6:28 pm
Reply with quote

My system is running off the z/Os 2.4 ADCD, and I wanted to access a ZFS filesystem from the
D5PRD1 volume which was downloaded with the 2.5 ADCD.
The volume is mounted and accessible on the 2.,4 system.
However, the VSAM clusters are not cataloged.
This volume has a usercatalog named: 'USERCAT.Z25D.PRODS'

I tried doing the following IMPORT:

IDCAMS SYSTEM SERVICES

IMPORT CONNECT ALIAS -
OBJECTS((USERCAT.Z25D.PRODS VOLUMES(D5PRD1) -
DEVT(3390))) -
CAT(CATALOG.Z24D.MASTER)
IDC0603I CONNECT FOR USER CATALOG USERCAT.Z25D.PRODS SUCCESSFUL
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0

When I do a LISTCAT of the master catalog I see this usercat listed:

LISTCAT NAME CAT(CATALOG.Z24D.MASTER)

USERCATALOG --- USERCAT.Z24D.CICS550
USERCATALOG --- USERCAT.Z24D.CICS560
USERCATALOG --- USERCAT.Z24D.DB2VB
USERCATALOG --- USERCAT.Z24D.DB2VC
USERCATALOG --- USERCAT.Z24D.IMS14
USERCATALOG --- USERCAT.Z24D.IMS15
USERCATALOG --- USERCAT.Z24D.INM14
USERCATALOG --- USERCAT.Z24D.PRODS
USERCATALOG --- USERCAT.Z24D.USER
USERCATALOG --- USERCAT.Z24D.WAS900
USERCATALOG --- USERCAT.Z24D.ZMS120
USERCATALOG --- USERCAT.Z25D.PRODS

But when I try to list the usercat I get:

LISTCAT CATALOG('USERCAT.Z25D.PRODS')
IDCAMS SYSTEM SERVICES
LISTING FROM CATALOG -- USERCAT.Z25D.PRODS
IDC3016I CATALOG IS NOT AVAILABLE
IDC3009I ** VSAM CATALOG RETURN CODE IS 4 - REASON CODE IS IGG0CLAH-108


Any idea what I have done wrong and is there a way to get access to this usercatalog?
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2592
Location: Silicon Valley

PostPosted: Fri Feb 02, 2024 7:35 pm
Reply with quote

searching for "IDC3009I site:ibm.com"

reveals reason code 108:
Quote:
Explanation: A necessary catalog could not be dynamically allocated in the catalog address space, and the catalog parameter list indicated dynamic allocation in the callers address space was not allowed.

Programmer Response: Check for allocation problem determination messages in the job stream output. Follow the programmer response for these messages.


Are there any other messages in your job or syslog?
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1329
Location: Bamberg, Germany

PostPosted: Fri Feb 02, 2024 8:14 pm
Reply with quote

You seem to have a different MCAT active than CATALOG.Z24D.MASTER, right?
Back to top
View user's profile Send private message
danik56

New User


Joined: 08 Mar 2017
Posts: 56
Location: Israel

PostPosted: Fri Feb 02, 2024 9:43 pm
Reply with quote

Joerg.Findeisen wrote:
You seem to have a different MCAT active than CATALOG.Z24D.MASTER, right?


In the system log at the begining of IPL I see:

IOS128I IPL DEVICE: 00A80 VOLUME: D4RES1
IEA370I MASTER CATALOG SELECTED IS CATALOG.Z24D.MASTER

How can I verify what is the actual master catalog if it is not
'CATALOG.Z24D.MASTER' ?
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1329
Location: Bamberg, Germany

PostPosted: Fri Feb 02, 2024 10:39 pm
Reply with quote

See for ex:
Code:
  LISTC UCAT                                                       
1IDCAMS  SYSTEM SERVICES                                           TIME ..
-                             LISTING FROM CATALOG -- MCAT.SY1.ENVA
0USERCATALOG --- ..
0USERCATALOG --- ..
0USERCATALOG --- ..
0USERCATALOG --- ..


I assume your imported Catalog might not be listed here.
Back to top
View user's profile Send private message
danik56

New User


Joined: 08 Mar 2017
Posts: 56
Location: Israel

PostPosted: Fri Feb 02, 2024 10:54 pm
Reply with quote

Joerg.Findeisen wrote:
See for ex:
Code:
  LISTC UCAT                                                       
1IDCAMS  SYSTEM SERVICES                                           TIME ..
-                             LISTING FROM CATALOG -- MCAT.SY1.ENVA
0USERCATALOG --- ..
0USERCATALOG --- ..
0USERCATALOG --- ..
0USERCATALOG --- ..


I assume your imported Catalog might not be listed here.


Here is the output.

LISTCAT UCAT
IDCAMS SYSTEM SERVICES TIME:
LISTING FROM CATALOG -- CATALOG.Z24D.MASTER
USERCATALOG --- USERCAT.Z24D.CICS550
USERCATALOG --- USERCAT.Z24D.CICS560
USERCATALOG --- USERCAT.Z24D.DB2VB
USERCATALOG --- USERCAT.Z24D.DB2VC
USERCATALOG --- USERCAT.Z24D.IMS14
USERCATALOG --- USERCAT.Z24D.IMS15
USERCATALOG --- USERCAT.Z24D.INM14
USERCATALOG --- USERCAT.Z24D.PRODS
USERCATALOG --- USERCAT.Z24D.USER
USERCATALOG --- USERCAT.Z24D.WAS900
USERCATALOG --- USERCAT.Z24D.ZMS120
USERCATALOG --- USERCAT.Z25D.PRODS

The last one is the one I am trying to access.
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1329
Location: Bamberg, Germany

PostPosted: Fri Feb 02, 2024 10:59 pm
Reply with quote

That means within the 2 level structure it should be available. Please try the LISTC CAT(USERCAT.Z25D.PRODS) in Batch mode. Even a LISTC UCAT ALL might help.
Back to top
View user's profile Send private message
danik56

New User


Joined: 08 Mar 2017
Posts: 56
Location: Israel

PostPosted: Fri Feb 02, 2024 11:17 pm
Reply with quote

Joerg.Findeisen wrote:
That means within the 2 level structure it should be available. Please try the LISTC CAT(USERCAT.Z25D.PRODS) in Batch mode. Even a LISTC UCAT ALL might help.


Output of "LISTCAT CATALOG(USERCAT.Z25D.PRODS)" was included in first post.

In the output of "LISTC UCAT ALL" I found something interesting.

USERCATALOG --- USERCAT.Z24D.PRODS
HISTORY
RELEASE----------------2
ENCRYPTIONDATA
DATA SET ENCRYPTION-----(NO)
VOLUMES
IDCAMS SYSTEM SERVICES
LISTING
VOLSER------------D4SYS1
ASSOCIATIONS
ALIAS----NFS
ALIAS----MVS

USERCATALOG --- USERCAT.Z25D.PRODS
HISTORY
RELEASE----------------2
ENCRYPTIONDATA
DATA SET ENCRYPTION-----(NO)
VOLUMES
VOLSER------------D5PRD1
ASSOCIATIONS--------(NULL)

Seems that the USERCAT.Z24D.PRODS catalog is defined with VOL=D4SYS1 and not D4PRD1
Maybe I need to connect USERCAT.Z25D.PRODS with VOL=D5SYS1 instead of D5PRD1 as I initialy did.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2592
Location: Silicon Valley

PostPosted: Sat Feb 03, 2024 1:15 am
Reply with quote

re: "connect USERCAT.Z25D.PRODS with VOL=D5SYS1 instead of D5PRD1"

Which of those volumes do you actually have mounted? And also verify, using ISPF option 3.4 and specifying the volser, that the catalog is actually on that volume.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2592
Location: Silicon Valley

PostPosted: Sat Feb 03, 2024 1:37 am
Reply with quote

re:
Code:
ASSOCIATIONS
ALIAS----NFS
ALIAS----MVS


Do the data sets on the new volume have the same HLQ as on the existing volume? I am not familiar with having two user catalogs for the same HLQ.

Perhaps you should do:
DEFINE NONVSAM for non-VSAM data sets

and DEFINE VSAM... RECAT for VSAM clusters.

so that the new data sets are cataloged in the old user catalog, allowing access to both at the same time. IMHO, this might open a whole new set of problems.
Back to top
View user's profile Send private message
danik56

New User


Joined: 08 Mar 2017
Posts: 56
Location: Israel

PostPosted: Sat Feb 03, 2024 2:35 am
Reply with quote

Pedro wrote:
re:
Code:
ASSOCIATIONS
ALIAS----NFS
ALIAS----MVS


Do the data sets on the new volume have the same HLQ as on the existing volume? I am not familiar with having two user catalogs for the same HLQ.

Perhaps you should do:
DEFINE NONVSAM for non-VSAM data sets

and DEFINE VSAM... RECAT for VSAM clusters.

so that the new data sets are cataloged in the old user catalog, allowing access to both at the same time. IMHO, this might open a whole new set of problems.


I only have problem accessing VSAM clusters on the new volume. The non VSAM ones I can catlog them eaely via ISPF 3.4.

In order to do "DEFINE VSAM... RECAT", do I need to know the cluster attributes as they were defined to VSAM originally ?
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 730
Location: Denmark

PostPosted: Sat Feb 03, 2024 4:50 pm
Reply with quote

"In order to do "DEFINE VSAM... RECAT", do I need to know the cluster attributes as they were defined to VSAM originally ?"
Only the cluster type INDEXED | NONINDEXED | NUMBERED | LINEAR should be neccessary.

"How can I verify what is the actual master catalog"
I normally just do a listcat of SYS1.PARMLIB as that is always around adn cataloged in the mastercat.
Back to top
View user's profile Send private message
danik56

New User


Joined: 08 Mar 2017
Posts: 56
Location: Israel

PostPosted: Sun Feb 04, 2024 2:36 pm
Reply with quote

Willy Jensen wrote:
"In order to do "DEFINE VSAM... RECAT", do I need to know the cluster attributes as they were defined to VSAM originally ?"
Only the cluster type INDEXED | NONINDEXED | NUMBERED | LINEAR should be neccessary.

"How can I verify what is the actual master catalog"
I normally just do a listcat of SYS1.PARMLIB as that is always around adn cataloged in the mastercat.


This finally worked for me:

IMPORT -
OBJECTS -
((USERCAT.Z25D.PRODS -
VOLUME(D5SYS1) -
DEVICETYPE(3390))) -
CONNECT -
CATALOG(CATALOG.Z24D.MASTER)

DEF PATH -
(NAME(DANIZ25.IGY640.ZFS) -
PATHENTRY( IGY640.ZFS ) -
) -
CATALOG( USERCAT.Z25D.PRODS )

DEFINE ALIAS (NAME(DANIZ25) RELATE('USERCAT.Z25D.PRODS'))

Now I can access 'IGY640.ZFS' via the 'DANIZ25.IGY640.ZFS' path bane
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2127
Location: USA

PostPosted: Sun Feb 04, 2024 9:30 pm
Reply with quote

Please, be polite to your potential readers. Learn this.
danik56 wrote:

This finally worked for me:

Code:
IMPORT -                                             
           OBJECTS -                                 
            ((USERCAT.Z25D.PRODS -                   
             VOLUME(D5SYS1) -                       
             DEVICETYPE(3390))) -                   
           CONNECT -                                 
           CATALOG(CATALOG.Z24D.MASTER)             

  DEF PATH -                                                         
    (NAME(DANIZ25.IGY640.ZFS) -                                       
     PATHENTRY( IGY640.ZFS ) -                                       
    )                    -                                           
    CATALOG( USERCAT.Z25D.PRODS )                                     
                                                                     
 DEFINE ALIAS (NAME(DANIZ25) RELATE('USERCAT.Z25D.PRODS'))


Now I can access 'IGY640.ZFS' via the 'DANIZ25.IGY640.ZFS' path bane
Back to top
View user's profile Send private message
danik56

New User


Joined: 08 Mar 2017
Posts: 56
Location: Israel

PostPosted: Sun Feb 04, 2024 9:31 pm
Reply with quote

sergeyken wrote:
Please, be polite to your potential readers. Learn this.
danik56 wrote:

This finally worked for me:

Code:
IMPORT -                                             
           OBJECTS -                                 
            ((USERCAT.Z25D.PRODS -                   
             VOLUME(D5SYS1) -                       
             DEVICETYPE(3390))) -                   
           CONNECT -                                 
           CATALOG(CATALOG.Z24D.MASTER)             

  DEF PATH -                                                         
    (NAME(DANIZ25.IGY640.ZFS) -                                       
     PATHENTRY( IGY640.ZFS ) -                                       
    )                    -                                           
    CATALOG( USERCAT.Z25D.PRODS )                                     
                                                                     
 DEFINE ALIAS (NAME(DANIZ25) RELATE('USERCAT.Z25D.PRODS'))


Now I can access 'IGY640.ZFS' via the 'DANIZ25.IGY640.ZFS' path bane


I'll be happy to learn how this was done....
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 590
Location: London

PostPosted: Tue Feb 06, 2024 4:21 pm
Reply with quote

FYI - using a PATH to mount a ZFS can result in corrupting the ZFS

ibm-z-hardware-and-operating-systems.ideas.ibm.com/ideas/ZOS-I-3686
Back to top
View user's profile Send private message
danik56

New User


Joined: 08 Mar 2017
Posts: 56
Location: Israel

PostPosted: Tue Feb 06, 2024 4:53 pm
Reply with quote

Pete Wilson wrote:
FYI - using a PATH to mount a ZFS can result in corrupting the ZFS

ibm-z-hardware-and-operating-systems.ideas.ibm.com/ideas/ZOS-I-3686


When mounting READ-ONLY ?
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 590
Location: London

PostPosted: Tue Feb 06, 2024 4:57 pm
Reply with quote

Not sure, I only remembered seeing the entry I posted the link for. It doesn't saying in there if it relates to READ only.

Here's the full content from the link:

When we create an IDCAMS PATH on a zFS, although the IBM documentation says "DON'T DO IT" , it is still allowed.

Plus, zFS allows a PATH to be mounted on mountpoint A while you can still mounthe real zFS to mountpoint B, which lead to corrupt our zFS , and the salvage did not correct the situation .

: Do not use a path entry as the file system name in the MOUNT command. For more information, see

DEFINE PATH in z/OS DFSMS Access Method Services Commands. The mount succeeds but the system

issues messages similar to the following ones:
Back to top
View user's profile Send private message
Joerg.Findeisen

Senior Member


Joined: 15 Aug 2015
Posts: 1329
Location: Bamberg, Germany

PostPosted: Tue Feb 06, 2024 5:27 pm
Reply with quote

Same in our shop, no more PATHs for z/FS. It helped to solve problems with backup from DFHSM.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts how to eliminate null indicator value... DB2 7
No new posts VSAM LISTCAT INFORMATION JCL & VSAM 2
No new posts Format Binary file to EBCDIC JCL & VSAM 4
No new posts Access to macro definitions PL/I & Assembler 4
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
Search our Forums:

Back to Top