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

Help needed on GDG Base Model and Generation creation


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

New User


Joined: 06 Jun 2012
Posts: 11
Location: India

PostPosted: Mon Aug 13, 2012 5:42 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Aug 13, 2012 5:53 pm
Reply with quote

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
View user's profile Send private message
Machani Hanuprasad

New User


Joined: 06 Jun 2012
Posts: 11
Location: India

PostPosted: Mon Aug 13, 2012 6:08 pm
Reply with quote

Thanks Kevin icon_biggrin.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Aug 13, 2012 7:16 pm
Reply with quote

So, the problem is resolved? icon_eek.gif
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Aug 14, 2012 7:39 am
Reply with quote

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
View user's profile Send private message
NAARAAYANAN

New User


Joined: 13 Aug 2012
Posts: 3
Location: INDIA

PostPosted: Tue Aug 14, 2012 10:24 am
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Tue Aug 14, 2012 10:42 am
Reply with quote

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
View user's profile Send private message
Machani Hanuprasad

New User


Joined: 06 Jun 2012
Posts: 11
Location: India

PostPosted: Tue Aug 14, 2012 10:48 am
Reply with quote

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 icon_biggrin.gif
Back to top
View user's profile Send private message
NAARAAYANAN

New User


Joined: 13 Aug 2012
Posts: 3
Location: INDIA

PostPosted: Tue Aug 14, 2012 11:21 am
Reply with quote

Hi,
Could you please give info about KEEP parameter in short
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Aug 14, 2012 11:24 am
Reply with quote

In short - read the manual. To be really short, start with the index.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Aug 14, 2012 11:46 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 14, 2012 2:36 pm
Reply with quote

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
View user's profile Send private message
Machani Hanuprasad

New User


Joined: 06 Jun 2012
Posts: 11
Location: India

PostPosted: Tue Aug 14, 2012 2:55 pm
Reply with quote

Hai Anuj,
Nobody is Masters, we are here to discuss not to argue.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Tue Aug 14, 2012 3:30 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Aug 14, 2012 3:37 pm
Reply with quote

Quote:
Nobody is Masters
,
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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue Aug 14, 2012 4:36 pm
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Aug 14, 2012 7:26 pm
Reply with quote

Hello,

Quote:
Nobody is Masters
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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Aug 16, 2012 10:30 am
Reply with quote

It amazes me that people still believe that there is a place for model or pattern DSCBs associated with a GDS.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 16, 2012 3:38 pm
Reply with quote

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
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 DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Mainframe Programmer with CICS Skill... Mainframe Jobs 0
No new posts Started task using a generation dataset JCL & VSAM 7
No new posts Help needed to assemble IMS sample co... ABENDS & Debugging 4
No new posts RABBIT HOLE NEEDED - "Live"... All Other Mainframe Topics 0
Search our Forums:

Back to Top