View previous topic :: View next topic
|
Author |
Message |
Machani Hanuprasad
New User
Joined: 06 Jun 2012 Posts: 11 Location: India
|
|
|
|
Please find the below JCL. I'm getting JCL error.
Steps 1 and 2 are executed successfully. In Step3 I'm getting this error It says SYSUT2 dataset not allocated.
Code: |
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
DEFINE GDG( -
NAME(CAPGMA8.TEST.TEST12) -
LIMIT(5) -
SCRATCH -
NOEMPTY)
//*
//STEP2 EXEC PGM=IEFBR14,COND=(4,LE,STEP1)
//SYSPRINT DD SYSOUT=*
//MODEL1 DD DSN=CAPGMA8.TEST.MOD12,
// DISP=(NEW,KEEP,DELETE),UNIT=SYSDA,
// SPACE=(TRK,5),VOL=SER=USER07,
// DCB=(RECFM=FB,LRECL=80,BLKSIZE=800,DSORG=PS)
//*
//STEP3 EXEC PGM=IEBGENER,COND=(4,LE,STEP2)
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD DSN=CAPGMA8.LMS.BKDATA,DISP=SHR
//SYSUT2 DD DSN=CAPGMA8.TEST.TEST12(+1),
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(TRK,5),
// DCB=CAPGMA8.TEST.MOD12
//SYSIN DD DUMMY
// |
|
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
1. You can't create the GDG base and then attempt to use it in the same job.
2. STEP2 is pointless and should be removed. |
|
Back to top |
|
|
Machani Hanuprasad
New User
Joined: 06 Jun 2012 Posts: 11 Location: India
|
|
|
|
Thanks Kevin |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
So, the problem is resolved? |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
you can create a GDG base and use it in tha same job (at least it works for me), I'm more concerned with the DISP in step2.
I bet the dataset is not getting catalogued.
It would be nice to see ALL the output from the job.
Gerry |
|
Back to top |
|
|
NAARAAYANAN
New User
Joined: 13 Aug 2012 Posts: 3 Location: INDIA
|
|
|
|
Hi,
KEEP parameter requires VOL=SER value. unless you pass the VOL info, system cannot display the dataset info.
CATLG for catlog entry, where VOL=SER info is not required. Bcoz system will have those details.
If you see the job spool, where you can see the step wise output. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
this is rubbish
Quote: |
KEEP parameter requires VOL=SER value. unless you pass the VOL info, system cannot display the dataset info.
|
Gerry |
|
Back to top |
|
|
Machani Hanuprasad
New User
Joined: 06 Jun 2012 Posts: 11 Location: India
|
|
|
|
Hi Gerry,
You are right, the dataset is not getting catologed. I changed the DISP as CATLG instead of KEEP. It's working. I'm using now all the steps in single JCL. It works fine.
Thanks |
|
Back to top |
|
|
NAARAAYANAN
New User
Joined: 13 Aug 2012 Posts: 3 Location: INDIA
|
|
|
|
Hi,
Could you please give info about KEEP parameter in short |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
In short - read the manual. To be really short, start with the index. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
The JCL Users Guide provides a good discussion on DISP parms.
The JCL Reference manual provides the syntax of the parms as well as furthering the discussion.
links to both are found at the top of the page under MANUALS
Until you understand these basic ideas (called fundamentals)
you will continue to have problems.
the info in the manuals is easy to read and comprehend.
but, in the event that you are confused
AFTER READING THE MANUAL
come back to the forum and members will help. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
NAARAAYANAN wrote: |
Could you please give info about KEEP parameter in short |
If you need this, where does your last comment come from?! |
|
Back to top |
|
|
Machani Hanuprasad
New User
Joined: 06 Jun 2012 Posts: 11 Location: India
|
|
|
|
Hai Anuj,
Nobody is Masters, we are here to discuss not to argue. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
In a life, apart from Forums, personally, I usually avoid arguments nor did I argue here, it was a statement.
However, the point was that this statement
Quote: |
KEEP parameter requires VOL=SER value. Unless you pass the VOL info, system cannot display the dataset info. |
is not correct, that's why I've asked for the source of it, if there is any.
If you ( "you" refers to a second person, not "you" specifically) provide some "information" and later you, yourself, are asking for some source for the same "information"...well, that does not sound coherent... fwiw. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
,
True, which is why we have the forums (fora for the pedants)
Quote: |
we are here to discuss not to argue. |
Partially true. Principally we are here to provide understandable and accurate help. Actually, being the "Experts" forum, mostly we should be providing hints to get the person with the problem pointed in the right direction.
Sometimes we discuss. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1787 Location: Bloomington, IL
|
|
|
|
NAARAAYANAN wrote: |
Hi,
KEEP parameter requires VOL=SER value. unless you pass the VOL info, system cannot display the dataset info. |
Where did you get "information" that is nearly twenty years out of date? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Wherever did you get this idea? There are quite a few Masters here.
There are far more here that are not masters, but we do have a solid group of masters - many that are not moderators. . . |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
It amazes me that people still believe that there is a place for model or pattern DSCBs associated with a GDS. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Possibly it's sheer ignorance. I happened to be at a shop, where they traditionally kept on doing this, when I enquired - why do you do this? “We had been doing it this way since ages”, was the answer.
And the cycle continues... |
|
Back to top |
|
|
|