View previous topic :: View next topic
|
Author |
Message |
manitonline
New User
Joined: 17 Sep 2005 Posts: 5 Location: Noida
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Just REPRO the file to a flat file and SMS will automatically decompress it as it unloads. |
|
Back to top |
|
|
manitonline
New User
Joined: 17 Sep 2005 Posts: 5 Location: Noida
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
agkshirsagar
Active Member
Joined: 27 Feb 2007 Posts: 691 Location: Earth
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|