Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us