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
 

 

File-aid reformat to decompress comp-3 data

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Compuware & Other Tools
View previous topic :: :: View next topic  
Author Message
Deepika Pai

New User


Joined: 13 May 2010
Posts: 7
Location: India

PostPosted: Wed Jan 05, 2011 10:53 am    Post subject: File-aid reformat to decompress comp-3 data
Reply with quote

Hello,

I have a extract which I have download it and load into a open systems database. So I need to decompress the comp-3 fields to readable data and add delimiter. If we use the file-aid reformat option how can I convert the comp-3 fields to readable preferably file-aid batch.

Thanks for your help!
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: Wed Jan 05, 2011 10:58 am    Post subject:
Reply with quote

Hello,

Suggest you change the extract to generate a delimited file with all of the numeric fields edited to formats readily usable on the target system.

Tab (x'05') works well for a delimiter and numeric fields work best when they are "complete". For example a negative value of dollars and cents ( pic s9(3)v99 ) would be edited to contain the value 123.45- for use on the target system.
Back to top
View user's profile Send private message
Deepika Pai

New User


Joined: 13 May 2010
Posts: 7
Location: India

PostPosted: Wed Jan 05, 2011 11:18 am    Post subject: Reply to: File-aid reformat to decompress comp-3 data
Reply with quote

Hi Dick,

Thanks for the quick response!!

I was able to achieve the adding delimiter part with file-aid reformat option. I was trying to see if the decompressing the comp-3 to readable can be achieved through the same file-aid reformat option.
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: Wed Jan 05, 2011 8:57 pm    Post subject:
Reply with quote

Hello,

How is the data being "extracted"?

To me, it would be better to create the download file as part of the extract rather than some extra pass/copy of the data to re-format/edit. . . icon_confused.gif
Back to top
View user's profile Send private message
Deepika Pai

New User


Joined: 13 May 2010
Posts: 7
Location: India

PostPosted: Thu Jan 06, 2011 11:11 am    Post subject: Reply to: File-aid reformat to decompress comp-3 data
Reply with quote

Hello,

My input fields has a as is extract from the database so all numeric fields are comp-3 field. Even if I define them as Comp-3 display in file-aid output formatting it only expands the field leaving the sign character as is.

Is there way I can numeric edit them in file aid reformatting efficiently ?
In the example you have quoted above if we want file-aid to generate 123.45- in file-aid reformatting if the input extract has a field definition of pic s9(3)v99 comp-3.

Thanks!
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: Thu Jan 06, 2011 7:57 pm    Post subject:
Reply with quote

Hello,

Is there some reason you are determined to use File-Aid? None of the "extracts" any of the teams i've worked with use a File-Aif reformat/copy of the data. They read the database and generate the delimited file with the numeric values edited for ease-of-use on the target system.

There must be something i am completely missing. . . icon_confused.gif
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 -> Compuware & Other Tools 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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm


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