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

How to reduce the GDG limit


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

New User


Joined: 15 Jul 2005
Posts: 47

PostPosted: Mon Feb 26, 2007 2:52 pm
Reply with quote

Hi,

My aim is to reduce the limit of GDG from 10 to 5.

I created a GDG with limit 10 as shown

DEF GDG (NAME(KIRAN.SAMPLE.GDG) LIM (10) NEMP SCR )

and then when i try to reduce the limit to 5 using Alter command

ALTER 'KIRAN.SAMPLE.GDG' LIM (5)

I see a return code of zero but the limit is not getting reduced, it is still 10 only.

Can anyone suggest if i missed out anything or, is there any other way to reduce the limit of GDG.

thanks in advance,
Kiran.
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Mon Feb 26, 2007 4:16 pm
Reply with quote

Kiran,

Quote:
I see a return code of zero but the limit is not getting reduced, it is still 10 only.



Can u please justify this, did u try to alter the GDG to limit 5 when it had already created 10 gen. please let us know.

Thamilzan.
Back to top
View user's profile Send private message
BAJJI

New User


Joined: 15 Jul 2005
Posts: 47

PostPosted: Mon Feb 26, 2007 4:24 pm
Reply with quote

Exactly Thamilzan,

I dont know what went on in that,
but now i found the solution,

when i typed it on command line as

TSO ALTER 'KIRAN.SAMPLE.GDG' LIMIT (5)

and pressed enter, it altered the limit of GDG to 5.

But I still cant figure out why the same alter command didnt workout in a JCL.

thanks for all your support,
Kiran.
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Mon Feb 26, 2007 4:32 pm
Reply with quote

Kiran,
Post u r JCL might be having some issues in the same thats y u got an error , if ya TSO command works u r JCL shd also work, Check u r syntax.

Thamilzan.
Back to top
View user's profile Send private message
BAJJI

New User


Joined: 15 Jul 2005
Posts: 47

PostPosted: Mon Feb 26, 2007 4:38 pm
Reply with quote

//KIRAN JOB (6500,CL),KIRAN,CLASS=L,MSGCLASS=X,REGION=2048K,
// NOTIFY=&SYSUID
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
/* DEF GDG (NAME(KIRAN.SAMPLE.GDG) LIM (10) NEMP SCR )
ALTER 'KIRAN.SAMPLE.GDG' LIM (5)
/*
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Feb 26, 2007 4:46 pm
Reply with quote

"/* DEF GDG (NAME(KIRAN.SAMPLE.GDG) LIM (10) NEMP SCR )"
sysin EOFed before readng the alter.....
Back to top
View user's profile Send private message
prav_06
Warnings : 1

Active User


Joined: 13 Dec 2005
Posts: 154
Location: The Netherlands

PostPosted: Mon Feb 26, 2007 4:46 pm
Reply with quote

Kiran,
An alter JCL can be given for a GDG which has been already created, try to split u r JCL in to two, the first one creating the GDG base and the second one to alter thje same , don't try to club the define st. and the alter st. on to the same JOB , If i am not wrong u would have got a Maxcc=8 , please do the creation in one job and the altering part in the other job.

Thamilzan.
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 Parallelization in CICS to reduce res... CICS 4
No new posts Expand ISPF field up to a limit - is ... TSO/ISPF 9
No new posts Rexx to list generations of GDGs and ... CLIST & REXX 3
No new posts REORG to reduce segment size new DBD IMS DB/DC 2
No new posts Any limit on usage of cursors ? DB2 1
Search our Forums:

Back to Top