Page 1 of 1

Compaction dataset ands UPDATE

PostPosted: Tue Sep 04, 2018 5:39 pm
by samb01
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 ?

Re: Compaction dataset ands UPDATE

PostPosted: Tue Sep 04, 2018 5:54 pm
by enrico-sorichetti
why not run a simple test Yourself ?

Re: Compaction dataset ands UPDATE

PostPosted: Thu Sep 06, 2018 8:11 pm
by samb01
I did it and it works so i can't anderstand :


A compressed format data set cannot be opened for update.
 

Re: Compaction dataset ands UPDATE

PostPosted: Fri Sep 07, 2018 12:39 am
by NicC
Did you actually update it? Or did you just open it?

Re: Compaction dataset ands UPDATE

PostPosted: Fri Sep 07, 2018 12:24 pm
by samb01
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 !