HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY



Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems

HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY

Postby dn2012 » Thu Apr 26, 2012 3:59 am

HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY

//STEP1 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//*OUT DD DISP=SHR,DSN=DATASET.WITH.FULL.DIRECTORY
//OUT DD DISP=SHR,DSN=TEST1.CHM45152.PROD.CNTL
//SYSIN DD *
ALTERDIR OUTDD=OUT,BLOCKS=52
But I am getting error as below:
PDF0101I START PDSFAST EXECUTION
PDF0255W FIRST STATEMENT HAS NO OPERATION KEYWORD
PDF0103C ALTERDIR OUTDD=OUT,BLOCKS=52
PDF0290I $
PDF0282A
KEYWORD "ALTERDIR" NOT RECOGNIZED
PDF0165W COPY STEP WILL BE BYPASSED DUE TO ERROR
PDF0189I END OF COPY STEP 1 - RC(8)
PDF0120P JOB PERFORMANCE: .02 ELAPSED, .00 TCB CPU, 0 EXCPS
PDF0199I END OF PDSFAST EXECUTION - RC(8)

Any comments will be appreciated

thanks
dn2012
 
Posts: 114
Joined: Thu Feb 16, 2012 6:10 am
Has thanked: 0 time
Been thanked: 0 time

Re: HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY

Postby Robert Sample » Thu Apr 26, 2012 4:35 am

IBM has one and only one recommended way to increase the size of a PDS directory: copy the PDS to another PDS which has the larger directory.

If your site has the PDS software from the CBT tape at http://www.cbttape.org then you can use it to increase the size of a PDS directory without having to copy it to another PDS. There are also vendor products that can do this. If your site is limited to the IBM utilities, however, there is ABSOLUTELY no way to dynamically change the size of a PDS directory using IBM software.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY

Postby steve-myers » Thu Apr 26, 2012 5:45 am

FWIW, I believe the CA version of IEBCOPY has this capability, but I do not know the command to expand the directory.

It is actually quite difficult to expand a directory; any members on the track or tracks required to expand the directory must be moved out of the way before the directory is expanded.

If it is inconvenient to copy the dataset to a new dataset - and that's sometimes the case, absolutely make a backup copy before you try to expand the directory, just in case the directory expansion damages the dataset. You may discover "lost" space in the track where the last directory block is located after the expansion. A PDS "compress" may recover this space.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY

Postby enrico-sorichetti » Thu Apr 26, 2012 10:13 am

Any comments will be appreciated


wouldn' t it be faster to look Yourself at the PDSFAST manuals
instead of lazily wait for us to do it for You ? :evil:
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 165 times

Re: HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY

Postby NicC » Thu Apr 26, 2012 11:49 am

and once again you have failed to use the code tags.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY

Postby steve-myers » Thu Apr 26, 2012 11:59 am

Actually, I suspect code tags would not help here, since they do not usually preserve a single leading blank, which I suspect dn2012 didn't insert into his PDSFAST command.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY

Postby dn2012 » Wed May 02, 2012 5:43 am

Here is code in tag

//STEP1 EXEC PGM=IEBCOPY
//SYSPRINT DD SYSOUT=*
//*OUT DD DISP=SHR,DSN=DATASET.WITH.FULL.DIRECTORY
//OUT DD DISP=SHR,DSN=TEST1.CHM45152.PROD.CNTL
//SYSIN DD *
ALTERDIR OUTDD=OUT,BLOCKS=52
But I am getting error as below:
PDF0101I START PDSFAST EXECUTION
PDF0255W FIRST STATEMENT HAS NO OPERATION KEYWORD
PDF0103C ALTERDIR OUTDD=OUT,BLOCKS=52
PDF0290I $
PDF0282A KEYWORD "ALTERDIR" NOT RECOGNIZED
PDF0165W COPY STEP WILL BE BYPASSED DUE TO ERROR
PDF0189I END OF COPY STEP 1 - RC(8)
PDF0120P JOB PERFORMANCE: .02 ELAPSED, .00 TCB CPU, 0 EXCPS
PDF0199I END OF PDSFAST EXECUTION - RC(8)
dn2012
 
Posts: 114
Joined: Thu Feb 16, 2012 6:10 am
Has thanked: 0 time
Been thanked: 0 time

Re: HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY

Postby dick scherrer » Wed May 02, 2012 7:47 am

Hello,

PDF0103C ALTERDIR OUTDD=OUT,BLOCKS=52
PDF0290I $
PDF0282A KEYWORD "ALTERDIR" NOT RECOGNIZED
PDF0165W COPY STEP WILL BE BYPASSED DUE TO ERROR

The error appears rather self-explanatory :?

A search of the IEBCOPY manual for alterdir returns:
No search hits found for: alterdir

Where did you get the syntax you used? It is a bad practice to create one's own syntax. . . The utilities are rather picky :)
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY

Postby Robert Sample » Wed May 02, 2012 8:04 am

dn2012, if your site is licensed for PDSFAST then you have access to the manuals. Either they exist somewhere at your site, or they are in an online repository at your site, or you can download them from the vendor. Since the syntax you are using is obviously invalid, you need to read the manual to identify the correct syntax and use it instead of what you used.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY

Postby dn2012 » Thu May 03, 2012 3:46 am

we do have PDSFAST utility. HOW TO EXTEND A PDS DIRECTORY DYNAMICALLY?


OPTION ===>
C - Copy R - Rename Member(s) CM - Copymod B - Browse
M - Move D - Delete Member(s) AM - Altermod E - Edit
Z - Compress RM - Recover Member(s) IP - Info Primary P - Print
V - Verify DS - Directory Size IS - Info Secondary RA - Realloc

PRIMARY DATA SET: SECONDARY DATA SET:
PROJECT ===> ===>
GROUP ===> ===>
TYPE ===> ===>
MEMBER ===> ===>
VOLUME ===> ===>
NEW NAME ==> (REQUIRED FOR RENAME)

OTHER PRIMARY DATA SET: ===>
OTHER SECONDARY DATA SET: ===>

REPLACE EXISTING MEMBERS: (YES OR NO) DISP IF SEQ: (OLD OR MOD)
CONFIRM MEMBER DELETE AND LRECL CHANGES: (YES OR NO)
DEFAULT HIGH LEVEL QUALIFIER: TSSDN PAD CHARACTER:
REALLOC SPACE: (#, 0, blank, +, -) PROCESS MEMBER ALIAS: (YES/NO

thanks
dn2012
 
Posts: 114
Joined: Thu Feb 16, 2012 6:10 am
Has thanked: 0 time
Been thanked: 0 time

Next

Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post