MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

JCL Error, DATA SET NOT FOUND, don't know why

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
wolves
Beginner


Joined: 11 Jun 2004
Posts: 17
Topics: 8

PostPosted: Thu Sep 23, 2004 10:11 am    Post subject: JCL Error, DATA SET NOT FOUND, don't know why Reply with quote

Here is the JCL:

Code:

//*-------------------------------------------------------------------*
//STEP01   EXEC  PGM=FORMAT,COND=(0,NE)
//SYSABOUT DD  SYSOUT=*
//SYSDBOUT DD  SYSOUT=*
//SYSUDUMP DD  SYSOUT=*
//SYSOUT   DD  SYSOUT=*
//INFILE    DD  DSN=TEST.FILE,DISP=SHR
//DAFILE   DD  DSN=TEST.FILE.DAFILE(+1),
//            DISP=(NEW,CATLG,DELETE),
//            SPACE=(TRK,(13,3),RLSE),
//            DCB=(RECFM=FB,LRECL=1000)


And the error:

IEF212I XXXX115J STEP01 DAFILE - DATA SET NOT FOUND
IEF272I XXXX115J STEP01 - STEP WAS NOT EXECUTED.


I do not understand. This is the firs time this is running, is the (+1) not found because it is the first time running?
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Sep 23, 2004 10:25 am    Post subject: Reply with quote

I got the same error until I defined the GDG base for 'TEST.FILE.DAFILE', after which the job ran fine.
Back to top
View user's profile Send private message
lcjr2468
Beginner


Joined: 23 Sep 2004
Posts: 3
Topics: 0
Location: Chicago Il

PostPosted: Thu Sep 23, 2004 10:27 am    Post subject: Data Set Not Found Reply with quote

When createing a (+1) you need to add the the DCB MODEL keyword.
DCB=(MODEL,RECFM=FB,LRECL=1000). Ensure the MODEL has been created.
_________________
Larry
Back to top
View user's profile Send private message AIM Address
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Sep 23, 2004 10:43 am    Post subject: Reply with quote

Larry, isn't the use of the MODEL DCB statement optional based on site-specific standards (I can't even find this option mentioned in either the JCL Reference Manuals and MVS/Quickref)?

I never have needed to use it.
Back to top
View user's profile Send private message
lcjr2468
Beginner


Joined: 23 Sep 2004
Posts: 3
Topics: 0
Location: Chicago Il

PostPosted: Thu Sep 23, 2004 10:51 am    Post subject: Reply with quote

We recently converted to z/OS and the person installing it forgot to catalog the MODEL dataset and we got JCL Errors on all our GDG datasets regardless of generation number, as long as it was (+n). Here is the information from the JCL manual.
"DCB attributes can be supplied either: (1) by creating a model data set label on the volume on which the index resides (the volume containing the GDG base) or (2) by referring to a cataloged data set for the use of its attributes." It can be found in teh 'OS/390 V1R1.0 MVS JCL User's Guide'
_________________
Larry
Back to top
View user's profile Send private message AIM Address
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Sep 23, 2004 10:56 am    Post subject: Reply with quote

Fyi....

For SMS managed shops you do NOT need the MODEL parm if the BASE exists.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
lcjr2468
Beginner


Joined: 23 Sep 2004
Posts: 3
Topics: 0
Location: Chicago Il

PostPosted: Thu Sep 23, 2004 11:04 am    Post subject: Reply with quote

I just tried it again. Without the MODEL Dataset and Non-SMS, I still received the JCL error sith the following message. PATTERN DSCB RECORD NOT FOUND IN VTOC'

For SMS managed DSN's, all we get are JCL errors without the MSG mentioned above.
_________________
Larry
Back to top
View user's profile Send private message AIM Address
wolves
Beginner


Joined: 11 Jun 2004
Posts: 17
Topics: 8

PostPosted: Thu Sep 23, 2004 11:24 am    Post subject: Reply with quote

Got it to work Thanks all.

I did have to use the MODEL.
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Thu Sep 23, 2004 12:47 pm    Post subject: Reply with quote

Hmmm. Interesting.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group