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: 685
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
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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