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

Compress Vsam Dataset


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Tue Aug 16, 2005 12:11 pm
Reply with quote

Hi ALL,
Can we compress the vsam dataset if it is out of space. How can we do this.
Back to top
View user's profile Send private message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Tue Aug 16, 2005 5:24 pm
Reply with quote

This is a interview question for my friend in IBM. Can we compress it or not. or Did any faced a problem when VSAM is out of space.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Aug 16, 2005 7:44 pm
Reply with quote

Virtually all VSAM datasets will already be compressed with SMS compression routines. So, if it is not already, yes, it can be. If it is already, then all that can be done is to either free up some space by eliminating or moving old data, or by actually increasing the storage requirements.
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Wed Aug 17, 2005 9:25 am
Reply with quote

Hi SuperK

How to compress it? Is it like something which we used to compress PDS & PS in left extreme as "C"?

am jus searching whether am having any VSAM file...I dint get yet..will try that one...but b4 that please update me..
Back to top
View user's profile Send private message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Wed Aug 17, 2005 2:10 pm
Reply with quote

hi Superk,
can u be mor specific in ur answer. i could nt get u .
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Wed Aug 17, 2005 4:27 pm
Reply with quote

NOT 'C' .....Its 'Z' icon_smile.gif

Bit Confused!
Back to top
View user's profile Send private message
sarath_ibm

New User


Joined: 03 Aug 2005
Posts: 14
Location: hyderabad

PostPosted: Wed Aug 17, 2005 8:50 pm
Reply with quote

hi elonics . its very simple type z in leftside . it will get compressed.
Back to top
View user's profile Send private message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Thu Aug 18, 2005 9:47 am
Reply with quote

I KNOW ,SARATH,THSI IS OK FOR FLATFILES . CAN THIS BE APPLICABLE FOR VSAM DATASETS
Back to top
View user's profile Send private message
Ravi Gopal

New User


Joined: 04 Aug 2005
Posts: 3

PostPosted: Thu Aug 18, 2005 12:17 pm
Reply with quote

Hi,

To avoid this out of space condition of vsam dataset, you need to do REORG.It can be done in the following ways:

Way1:
====
1.Unload the data from VSAM to falt file using REPRO.
2.Then allocate more volumes for the VSAM file using IDCAMS in batch.
3.Then reload the VSAM file from flat file again using REPRO.

Way2:
====
1.You can directly alter the VSAM file using the following command:
//STEP01 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSIN DD *
ALTER VSAM.DATASET ADDVOLUMES(* * * * *)
/*

This will add 5 new candidate volumes to the file and will be taken care by SMS.

*Sometime it may not allow us to do this due to clients restriction on using the space.


Regards
Ravi
Back to top
View user's profile Send private message
shivashunmugam Muthu

Active User


Joined: 22 Jul 2005
Posts: 114
Location: Chennai

PostPosted: Thu Aug 18, 2005 12:36 pm
Reply with quote

hi Ravi

your options are perfect.. But how to compress is the question here. Adding space is something which we do later.....(after all options)

we cud compress by issuing 'z' only with PDS.

For PSDS/VSAM we cant?

any options guyz
Back to top
View user's profile Send private message
elonics

New User


Joined: 05 Jul 2005
Posts: 49
Location: India

PostPosted: Thu Aug 18, 2005 1:57 pm
Reply with quote

Thanx Ravi
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Aug 21, 2005 7:59 am
Reply with quote

I've used DFSORT copy to reorg a vsam file. The seq is:

sort/copy to flat file; delete/define VSAM file; sort/copy to empty VSAM file.

As I recall, what you buy back is the freespace and the partially filled CI/CAs The used freespace is freed but the primary space is used in its stead; really not a savings.

The advantage is supposed to be better performance because the split processing overhead is avoided.
Back to top
View user's profile Send private message
ideas

New User


Joined: 25 May 2005
Posts: 52
Location: India

PostPosted: Mon Aug 22, 2005 5:19 pm
Reply with quote

Compression isnt feasible for VSAM I guess.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Tue Aug 23, 2005 1:35 am
Reply with quote

Products are available from CA and BMC that compress VSAM datasets.

Dave
Back to top
View user's profile Send private message
sendil

New User


Joined: 30 Jun 2005
Posts: 27

PostPosted: Fri Aug 26, 2005 2:04 pm
Reply with quote

When data is compressed, the length of a stored record may change after
an update without any logical record length change.
VSAM compression is done transparently to the application, through the data
class (DC) parameter in SMS data sets. This DC assigned to the data set has
to specify the following DSNTYPE=EXT with a required COMPACTION=Y
(blank defaults to N). The following screen pictures the ISMF list of the DC:

VSAM compression only applies to KSDS in extended format. All the fields to
the left of the key in the logical record are not compressed. In your next data
model, you can define the key field with offset equal to zero.
Compression affects the catalog, VTOC, and SMF information about VSAM
data sets.

DATACLAS EXTENDED MEDIA
NAME DATA SET NAME TYPE ADDRESSABILITY COMPACTION TYPE
--(2)--- -------(26)------- -----(27)----- ---(28)--- -(29)-
DCSMB EXTENDED REQUIRED NO ---- ------
DCSTRIPE EXTENDED REQUIRED NO ---- ------
DCXXXX EXTENDED REQUIRED NO ---- ------
DIRECT ------------------ NO ---- ------
ECCST ------------------ NO YES MEDIA2
EHPCT ------------------ NO YES MEDIA3
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top