Dataset is not in Catalog and can not be accessed err



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Dataset is not in Catalog and can not be accessed err

Postby SKANDA » Thu Dec 29, 2016 12:36 pm

Hi all,

When i am trying to execute my Rexx pgm in batch mode i have got the following error,

DATA SET NNNN.DDD.REXX.INPT.JJJ NOT IN CATALOG OR CATALOG CAN NOT BE ACCESSED
 MISSING DATA SET NAME+
 MISSING NAME OF DATA SET TO BE ALLOCATED
 The input or output file Inpfil is not allocated.It cannot be opened for I/O.
 EXECIO error while trying to GET or PUT a record.

DATA SET NNNN.DDD.REXX.CON.JJJ NOT IN CATALOG OR CATALOG CAN NOT BE ACCESSED
 MISSING DATA SET NAME+
 MISSING NAME OF DATA SET TO BE ALLOCATED
 The input or output file INDD is not allocated.It cannot be opened for I/O.
 EXECIO error while trying to GET or PUT a record

-->actually,the dataset which is to be access is DDD.REXX.INPT.JJJ (INPUT PDS),DDD.REXX.CON.JJJ(CONFIG FILE) ,BUT in the above msg INPUT PDS name AND CONFIG FILE is come along with my id(NNNN).why is that so?
-->inpfil,INDD is the logical name used in alloc statement in the REXX pgm
below is the jcl i have used to call my Rexx Main module,

//STEP1 EXEC PGM=IKJEFT1A,PARM='JCLMAIN'
//SYSEXEC DD DSM=<REXX PDS NAME>, DISP=SHR
//SYSTSPRT DD SYSOUT=A
//SYSTSIN DD DUMMY
//

Where i have went wrong?
please help me to fix this

Thanks all,
Skanda
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time

Re: Dataset is not in Catalog and can not be accessed err

Postby Aki88 » Thu Dec 29, 2016 2:32 pm

Hello,

SKANDA wrote:...
-->actually,the dataset which is to be access is DDD.REXX.INPT.JJJ (INPUT PDS),DDD.REXX.CON.JJJ(CONFIG FILE) ,BUT in the above msg INPUT PDS name AND CONFIG FILE is come along with my id(NNNN).why is that so?
-->inpfil,INDD is the logical name used in alloc statement in the REXX pgm
below is the jcl i have used to call my Rexx Main module,
...


Since you haven't shown your REXX EXEC, hence this is a best fit suggestion against multiple possibilities- check your 'ALLOC' statement and verify if you have specified the DS-name within quotation marks; ISPF substitutes the PREFIX set-up for your PROFILE in case the DSN is not entered within quotation marks.

These users thanked the author Aki88 for the post:
SKANDA (Tue Jan 03, 2017 6:49 pm)
Aki88
 
Posts: 381
Joined: Tue Jan 28, 2014 1:52 pm
Has thanked: 33 times
Been thanked: 36 times

Re: Dataset is not in Catalog and can not be accessed err

Postby SKANDA » Thu Dec 29, 2016 3:09 pm

Hi,

Thanks for your response.
I have checked all alloc statements in that, dsn name was quoted.
Below is the allocation for the input pds.

NEXTFILE = DATASET_PGM_NAME !! '(' !! MEM_NAME !! ')'
" ALLOC DD(INPFIL) DA("NEXTFILE") SHR REUSE"
where,
DATASET_PGM_NAME--> INPUT PDS NAME
MEM_NAEM --> MEMBER OF THE INPUT PDS WHICH IS DYNAMIC

Thanks in advance.
Skanda
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time

Re: Dataset is not in Catalog and can not be accessed err

Postby willy jensen » Thu Dec 29, 2016 3:37 pm

Well, it looks to me as as the data might not be quoted. Suggest that you do a 'say NEXTFILE' just before the allocate, or a 'trace r' / 'trace off' around the statements.

These users thanked the author willy jensen for the post:
SKANDA (Thu Dec 29, 2016 3:51 pm)
willy jensen
 
Posts: 465
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 70 times

Re: Dataset is not in Catalog and can not be accessed err

Postby Robert Sample » Thu Dec 29, 2016 3:41 pm

NEXTFILE = DATASET_PGM_NAME !! '(' !! MEM_NAME !! ')'
I don't see any quote marks around the data set name here.

These users thanked the author Robert Sample for the post:
SKANDA (Thu Dec 29, 2016 3:51 pm)
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Dataset is not in Catalog and can not be accessed err

Postby NicC » Thu Dec 29, 2016 3:41 pm

No - you have not quoted your data set name. Try this:

pull d_s_n
say d_s_n
say 'd_s_n'
Say "'"d_s_n"' "
exit
 


And use the code tags when posting anything that could appear on your screen (as I have).
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

These users thanked the author NicC for the post:
SKANDA (Thu Dec 29, 2016 3:50 pm)
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Dataset is not in Catalog and can not be accessed err

Postby Aki88 » Thu Dec 29, 2016 3:43 pm

Hello,

SKANDA wrote:... NEXTFILE = DATASET_PGM_NAME !! '(' !! MEM_NAME !! ')'
" ALLOC DD(INPFIL) DA("NEXTFILE") SHR REUSE"
where,
DATASET_PGM_NAME--> INPUT PDS NAME
MEM_NAEM --> MEMBER OF THE INPUT PDS WHICH IS DYNAMIC
...


I hope, 'DATASET_PGM_NAME' is not a variable name, but the complete dataset namel; in case it is the variable name, it is also expected to be enclosed within quotation marks.

<Edit: multiple posters at the same moment :) >

These users thanked the author Aki88 for the post:
SKANDA (Thu Dec 29, 2016 3:52 pm)
Aki88
 
Posts: 381
Joined: Tue Jan 28, 2014 1:52 pm
Has thanked: 33 times
Been thanked: 36 times

Re: Dataset is not in Catalog and can not be accessed err

Postby NicC » Thu Dec 29, 2016 8:27 pm

Actually, my previous code was a bit useless: try this

/* rexx */                                                      
Say "Enter one of your own data set names (without your ID)..."
pull d_s_n                                                      
Call sayit                                                      
Say "Now enter the same one WITH your ID..."                    
pull d_s_n                                                      
Call sayit                                                      
exit                                                            
/*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/                          
sayit:                                                          
   Address ISPEXEC                                              
   "BROWSE DATASET("d_s_n")"                                    
   Address TSO                                                  
Return                                                          
 
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic

These users thanked the author NicC for the post:
SKANDA (Tue Jan 03, 2017 6:48 pm)
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Dataset is not in Catalog and can not be accessed err

Postby willy jensen » Fri Dec 30, 2016 1:58 pm

The proper quoting would be something like this: NEXTFILE = "'"DATASET_PGM_NAME !! "(" !! MEM_NAME !! ")'"

These users thanked the author willy jensen for the post:
SKANDA (Tue Jan 03, 2017 6:48 pm)
willy jensen
 
Posts: 465
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 70 times

Re: Dataset is not in Catalog and can not be accessed err

Postby SKANDA » Tue Jan 03, 2017 6:50 pm

Hi all,
Thank you all for your timely help.

Many Thanks,
Skanda
SKANDA
 
Posts: 30
Joined: Thu Aug 04, 2016 7:50 pm
Has thanked: 17 times
Been thanked: 0 time


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post