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
 

 

Can i create a gdg with IEFBR14 utility

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
knd_r
Currently Banned

New User


Joined: 18 Mar 2005
Posts: 48

PostPosted: Mon May 23, 2005 11:34 am    Post subject: Can i create a gdg with IEFBR14 utility
Reply with quote

hi,

can i create a gdg with iefbr14 utility?

bye,
ks reddy.
Back to top
View user's profile Send private message

subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Mon May 23, 2005 12:13 pm    Post subject: Re: gdg creation
Reply with quote

Hi,
Yes, you can.
See the following code:
//GDGCRT EXEC PGM=IEFBR14
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
DEFINE GENERATIONDATAGROUP -
(NAME(TEST.GDG.FILE1) -
LIMIT(10))
/*
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Mon May 23, 2005 2:26 pm    Post subject:
Reply with quote

I don't think that you can create a generation data group with IEFBR14. The only utility that can be used, in my opinion and for the IBM Manuals, is the IDCAMS.
IEFBR14 can be used to allocate one new version or delete an existing version but not to define his root.

If you run the sample above you will receive a RC=0 but only for the reason that IEFBR14 allow you to test if your JCL is correct or not.
You can use IEFBR14 also for a SORT or other thing but only for a JCL Test!
But I can be wrong!
Back to top
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Mon May 23, 2005 2:46 pm    Post subject: Re: gdg creation
Reply with quote

Hi MGIndaco,
We can use IEFBR14 for GDG creation. We are using it, and it is working fine.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Mon May 23, 2005 3:50 pm    Post subject:
Reply with quote

I don't know why it works...for me is a mystery!
But..this is neither the first nor the last time that I'm wrong...
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 May 23, 2005 5:50 pm    Post subject: Re: gdg creation
Reply with quote

MGIndaco, you are not wrong. There is no way the IEFBR14 code given can work, as I have verified with a test at my site. The IEFBR14 program does not perform any file I/O operations, so it can't possibly open and process the commands provided in the SYSIN DD. Also, there can't possibly be any output in the SYSPRINT DD.

subhasis_50, I would like to see a sample of the SYSPRINT output from your job. If any of the messages start with IDC*, then you are executing the IDCAMS program.
Back to top
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Mon May 23, 2005 6:00 pm    Post subject: Re: gdg creation
Reply with quote

Hi Superk,
I have not got any messages in sysprint. I have got the following messages in JESYSMSG:
DTM1459I 2005.143 02:42:27 JOB DEFGDG REQUEUED TO CLASS=U PRIORITY=7
ICH70001I Z703905 LAST ACCESS AT 02:42:27 ON MONDAY, MAY 23, 2005
IEF236I ALLOC. FOR DEFGDG GDGCRT
IEF237I JES2 ALLOCATED TO SYSPRINT
IEF237I JES2 ALLOCATED TO SYSOUT
IEF237I JES2 ALLOCATED TO SYSIN
IEF142I DEFGDG GDGCRT - STEP WAS EXECUTED - COND CODE 0000
IEF285I Z703905.DEFGDG.JOB11576.D0000102.? SYSOUT
IEF285I Z703905.DEFGDG.JOB11576.D0000103.? SYSOUT
IEF285I Z703905.DEFGDG.JOB11576.D0000101.? SYSIN
* ** STEP STATISTICS **
* PERFORM GROUP 0 SERVICE UNITS 51 TX. TIME 00.00.00.08
* INIT DELAY 00.00.00.03 VIO PAGE IN 0 VIO PAGE OT 0
ACTEX101 JOBNAME STEPNAME PROCSTEP PROGRAM CONDCODE
ACTEX101 DEFGDG GDGCRT IEFBR14 0
* ** EXCP STATISTICS **
* UADR TYPE COUNT UADR TYPE COUNT UADR TYPE COUNT UADR TYPE
IEF373I STEP/GDGCRT /START 2005143.0242
IEF374I STEP/GDGCRT /STOP 2005143.0242 CPU 0MIN 00.00SEC SRB 0MIN 00.00S
* ** STEP STATISTICS **
IEF375I JOB/DEFGDG /START 2005143.0242
IEF376I JOB/DEFGDG /STOP 2005143.0242 CPU 0MIN 00.00SEC SRB 0MIN 00.00S
* ** JOB STATISTICS **
* CPU SERVICE 50 I/O SERVICE 0 MSU SERVICE
* ** NETT INSTALLATION MESSAGES
NET0004D JOB PERFORMANCE NOT UNDER EXIT MODIFICATION
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 May 23, 2005 7:25 pm    Post subject: Re: gdg creation
Reply with quote

So ... it appears that your job DTM1459I doesn't do anything, except start and end.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Mon May 23, 2005 7:27 pm    Post subject:
Reply with quote

You are right Subhasis... but reading your JESYMSGS I can only understand that your DD statement has been allocated but nothing say that your request has been processed!

Only IDCAMS allow you to allocate a gdg's root...(Thank you superk)
What you have done is a simply jcl test that allow you to know that syntax of your stepjcl is correct and as I have told above it is useful to test all the step of your jcl(it's a different way of JSCAN or TYPRUN=SCAN) to be sure that no JCL error will be found!

To be sure of your test I reccomend you to look in ISPF - 3.4 that your entry was correctly definied!
Back to top
View user's profile Send private message
knd_r
Currently Banned

New User


Joined: 18 Mar 2005
Posts: 48

PostPosted: Mon May 23, 2005 7:53 pm    Post subject:
Reply with quote

thanks superk and mgindaco for your information. This is very helpful.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue May 24, 2005 6:38 am    Post subject:
Reply with quote

Hi Subhasis,

I don't think we've convinced you that you're mistaken on this point. You can try to allocate TEST.GDG.FILE1(+1). I think you'll get an indication that the base doesn't exist.
Back to top
View user's profile Send private message
subhasis_50

Moderator


Joined: 09 Mar 2005
Posts: 363
Location: Earth

PostPosted: Tue May 24, 2005 10:13 am    Post subject: Re: Can i create a gdg with IEFBR14 utility
Reply with quote

Hi,
All of you are correct. I was wrong. That confusion is created as the file which i am going to create is already defined as GDG. Sorry for my previous reply.
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 TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Best IMS DB Unload Utility jjabez10 IMS DB/DC 12 Thu Sep 22, 2016 11:15 pm


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