Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Help needed on GDG Base Model and Generation creation

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Help needed on GDG Base Model and Generation creation
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

Moderator Team Head


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

PostPosted: Mon Aug 13, 2012 5:53 pm    Post subject: Reply to: Help needed on GDG Base Model and Generation creat
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    Post subject: Help needed on GDG Base Model and Generation creation
Reply with quote

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

Senior Member


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

PostPosted: Mon Aug 13, 2012 7:16 pm    Post subject:
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: 1703
Location: Australia

PostPosted: Tue Aug 14, 2012 7:39 am    Post subject:
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    Post subject: Reply to: Help needed on GDG Base Model and Generation creat
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: 1703
Location: Australia

PostPosted: Tue Aug 14, 2012 10:42 am    Post subject:
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    Post subject: Help needed on GDG Base Model and Generation creation
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    Post subject: Reply to: Help needed on GDG Base Model and Generation creat
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: 1713
Location: UK

PostPosted: Tue Aug 14, 2012 11:24 am    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Tue Aug 14, 2012 2:36 pm    Post subject: Re: Reply to: Help needed on GDG Base Model and Generation c
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    Post subject: Help needed on GDG Base Model and Generation creation
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

Senior Member


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

PostPosted: Tue Aug 14, 2012 3:30 pm    Post subject:
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: 1713
Location: UK

PostPosted: Tue Aug 14, 2012 3:37 pm    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Tue Aug 14, 2012 4:36 pm    Post subject: Re: Reply to: Help needed on GDG Base Model and Generation c
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

Site Director


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

PostPosted: Tue Aug 14, 2012 7:26 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 16, 2012 10:30 am    Post subject:
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

Senior Member


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

PostPosted: Thu Aug 16, 2012 3:38 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts ISPF Tables Creation newsysprg TSO/ISPF 6 Wed Jul 13, 2016 2:21 pm
No new posts Help Needed with View Direct shailesh_do CA Products 2 Wed Jul 13, 2016 10:39 am
No new posts How to detect file creation event? vasanthz All Other Mainframe Topics 5 Fri May 20, 2016 1:33 am
No new posts alphanumeric sequence generation sivaprasad.gadhi COBOL Programming 6 Wed Mar 30, 2016 3:03 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us