Sunday, January 27, 2008

To Alter the GDG limit

Here is the command and a JCL to change the GDG limit. It doesn’t matters what was the earlier limit, it will change to the limit specified now.

1. TSO
From any command line:
TSO ALTER 'YOUR.FILE.NAME' LIMIT (30)
or from Option 6:
ALTER 'YOUR.FILE.NAME LIMIT' (30)

2. BATCH
Run an IDCAMS job:
(Supply your own JOB card)
//IDCAMS EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALTER YOUR.FILE.NAME LIMIT (30)
/*
//
(Be sure there is a space before the ALTER in an IDCAMS job)

Also to know more about the ALTER command, please refer the below site. It has many functions apart from limit change for GDG.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2I240/5.0?SHELF=DGT2BK50&DT=20050629061743

1 comment:

larry.conover said...

ALTER 'YOUR.FILE.NAME LIMIT' (30)

Should be:
ALTER 'YOUR.FILE.NAME' LIMIT(30)