Compaction dataset ands UPDATE



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

Compaction dataset ands UPDATE

Postby samb01 » Tue Sep 04, 2018 5:39 pm

Hello,

i would like to compact all the dataset of a storage group (COMPACTION = YES in the DATACLASS)

I read the datasets must be extended format.

But in this link : https://www.ibm.com/support/knowledgece ... cocfds.htm

I read :

A compressed format data set cannot be opened for update.

Please could you tell me if i am right. This means that the dataset musn't be in DISP=MOD in a JOB ?

Because, today, in our production, there are many jobs that use the DISP=MOD. This means those batchs would abend if i use the Compaction ?
samb01
 
Posts: 431
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Compaction dataset ands UPDATE

Postby enrico-sorichetti » Tue Sep 04, 2018 5:54 pm

why not run a simple test Yourself ?
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: Compaction dataset ands UPDATE

Postby samb01 » Thu Sep 06, 2018 8:11 pm

I did it and it works so i can't anderstand :


A compressed format data set cannot be opened for update.
 
samb01
 
Posts: 431
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Compaction dataset ands UPDATE

Postby NicC » Fri Sep 07, 2018 12:39 am

Did you actually update it? Or did you just open it?
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: Compaction dataset ands UPDATE

Postby samb01 » Fri Sep 07, 2018 12:24 pm

I used this JCL :


//SNCV0001 EXEC PGM=ICEGENER                                            
//SYSPRINT DD SYSOUT=*                                                  
//SYSIN    DD DUMMY                                                    
//SYSUT1   DD DISP=SHR,DSN=X.DATIN     ==> dataset with compaction
//         DD DISP=SHR,DSN=Y.DATA           ==> dataset with compaction
//SYSUT2   DD DISP=MOD,DSN=Y.DATA     ==> dataset with compaction

 


This JCL work and do not Abend !
samb01
 
Posts: 431
Joined: Mon Nov 16, 2009 7:24 pm
Has thanked: 1 time
Been thanked: 0 time


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post