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

How to decompress a compressed KSDS file?


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
manitonline

New User


Joined: 17 Sep 2005
Posts: 5
Location: Noida

PostPosted: Mon Nov 03, 2008 6:53 pm
Reply with quote

Hi,

I have a VSAM file which is in compressed format and is not mapping correctly to the layout copybook. Ineed to decompress it so that I can map it to the copybook.

Let em know how this can be done using FileAID or JCL?

Thanks
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Nov 03, 2008 7:23 pm
Reply with quote

Just REPRO the file to a flat file and SMS will automatically decompress it as it unloads.
Back to top
View user's profile Send private message
manitonline

New User


Joined: 17 Sep 2005
Posts: 5
Location: Noida

PostPosted: Tue Nov 04, 2008 4:44 pm
Reply with quote

I am already doing the REPRO. The problem is that the COMP-3 fields in the file are being displayed as INVALID when i map the VSAM file to copybook using FileAID.

Also when my batch module tries to read these fields, it is abending with SOC7.

Kindly let me know why I am not able to view the packed COMP-3 fields correctly whicl other fields are comming correctly.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 04, 2008 4:51 pm
Reply with quote

In browse mode, type HEX ON on the command line and all of those naughty little packed fields will become much more readable.
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Tue Nov 04, 2008 5:01 pm
Reply with quote

It is highly likely that you have invalid data in those fields.
It can also be a case where you may be using an older version of copybook for your mapping. I mean the copybook might have undergone some new changes.
File-aid takes care of displaying the comp-3 fields correctly so invalid data can be your problem.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Nov 04, 2008 11:34 pm
Reply with quote

Hello,

How long ago was the data compressed and stored away?

When was the last time the copybook was modified?

If the data is "old" you will need to find/create a copybook that is the same layout as the data as Agkshirsagar suggested.

Looking at the data in HEX as Expat suggested will confirm whether the issue is layout or content.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top