Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to decompress a compressed KSDS file?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to decompress a compressed KSDS file?
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: 8593
Location: Back in jolly old England

PostPosted: Mon Nov 03, 2008 7:23 pm    Post subject:
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    Post subject: Reply to: How to decompress a compressed KSDS file?
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: 8593
Location: Back in jolly old England

PostPosted: Tue Nov 04, 2008 4:51 pm    Post subject:
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: 686
Location: Earth

PostPosted: Tue Nov 04, 2008 5:01 pm    Post subject:
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

Site Director


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

PostPosted: Tue Nov 04, 2008 11:34 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us