View previous topic :: View next topic |
Author |
Message |
wolves Beginner
Joined: 11 Jun 2004 Posts: 17 Topics: 8
|
Posted: Thu Sep 23, 2004 10:11 am Post subject: JCL Error, DATA SET NOT FOUND, don't know why |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Sep 23, 2004 10:25 am Post subject: |
|
|
I got the same error until I defined the GDG base for 'TEST.FILE.DAFILE', after which the job ran fine. |
|
Back to top |
|
 |
lcjr2468 Beginner
Joined: 23 Sep 2004 Posts: 3 Topics: 0 Location: Chicago Il
|
Posted: Thu Sep 23, 2004 10:27 am Post subject: Data Set Not Found |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Sep 23, 2004 10:43 am Post subject: |
|
|
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 |
|
 |
lcjr2468 Beginner
Joined: 23 Sep 2004 Posts: 3 Topics: 0 Location: Chicago Il
|
Posted: Thu Sep 23, 2004 10:51 am Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Thu Sep 23, 2004 10:56 am Post subject: |
|
|
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 |
|
 |
lcjr2468 Beginner
Joined: 23 Sep 2004 Posts: 3 Topics: 0 Location: Chicago Il
|
Posted: Thu Sep 23, 2004 11:04 am Post subject: |
|
|
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 |
|
 |
wolves Beginner
Joined: 11 Jun 2004 Posts: 17 Topics: 8
|
Posted: Thu Sep 23, 2004 11:24 am Post subject: |
|
|
Got it to work Thanks all.
I did have to use the MODEL. |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Thu Sep 23, 2004 12:47 pm Post subject: |
|
|
Hmmm. Interesting. |
|
Back to top |
|
 |
|
|